调试项目时,Visual studio显示了一些error.And,当我试图在数据库文件(.mdf扩展名)中添加表时,VisualStudio会自动重新启动。错误列表-->
System.IO.FileNotFoundException: Error reading the C:\Windows\TEMP\ directory.
at System.IO.FileSystemWatcher.StartRaisingEvents()
at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
at Microsoft.IisExpress.SysTray.TrayAppHiddenForm.TrayAppHiddenForm_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
请帮我解决这个错误。
发布于 2020-06-11 08:27:42
嘿,它也发生在我身上,当我转到目录C:\Windows\TEMP中direct时,问题解决了,系统要求我访问这个文件夹,我为此单击了yes,这样当前用户就有了该文件夹的权限,错误就消失了。这是我的windows更新后的访问权限问题
发布于 2013-03-26 11:01:21
这篇博文确实解决了我们面临的问题(这将描述我们面临的问题)。- http://devatheart.azurewebsites.net/2011/04/18/troubleshooting-xmlserializer-failure/
我们有一段代码
这是生成IE进程的System.Diagnostics.Process.Start(RetrievedURL);(因为IE是was服务器上的默认浏览器),在后台点击按钮并打开网页。
这不是一件聪明的事情,但我们删除了该代码,它肯定会在后台停止IE进程。
上面的帖子解释了它是如何链接到XML序列化失败的。感谢你的研究和这篇博文Slobodan Stipic,又名。Slobo。
希望这个解决方案能有所帮助。
https://stackoverflow.com/questions/14571157
复制