在调试项目Visual Studio时显示一些错误。当我尝试在数据库文件(.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)
请帮我解决此错误。
答案 0 :(得分:1)
嘿,我也遇到了这种情况,当我直接进入目录C:\ Windows \ TEMP时,问题解决了,系统要求我访问该文件夹,然后单击“是”,以便当前用户对该文件夹拥有权限,并且出现错误没了这是我的Windows UPDATE之后的访问权限问题
答案 1 :(得分:0)
这篇博文绝对解决了我们所面临的问题(这将描述我们面临的问题)。 - http://devatheart.azurewebsites.net/2011/04/18/troubleshooting-xmlserializer-failure/
我们有这段代码
System.Diagnostics.Process.Start(RetrievedURL); 这是在按钮点击和打开网页的后台生成IE进程(因为IE是网络服务器上的默认浏览器)。
不是很聪明,但我们删除了该代码,它肯定已经在后台停止了IE进程。
如何链接到XML序列化失败在上面的帖子中解释。感谢您的研究和本博客文章Slobodan Stipic,a.k.a。Slobo。
希望这个解决方案有所帮助。