我在使用新的ASP.NET Core MVC時遇到了問題。我製作一個空的項目或使用Web應用程序模板。我每次更改保存在Visual Studio 2015年的文件瀏覽器或我每次啓動應用程序有或沒有調試時間任何文件,IIS錯誤彈出:每次啓動ASP.NET Core MVC應用程序時出現IIS錯誤
"Unhandled exception has occurred in your application: The directory name C:\Users\COMPUTERNAME=ZENBOOK is invalid".
什麼可能這個路徑是什麼?在任何可能觸發此類事件的設置中都不會更改任何內容。
錯誤的其餘部分:
************** Exception Text **************
System.ArgumentException: The directory name C:\Users\vouCOMPUTERNAME=ZENBOOK\ is invalid.
at System.IO.FileSystemWatcher.set_Path(String 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.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)
該網站呈現只是任何刷新罰款。但是這個錯誤不斷出現 - 在兩臺不同的機器上。它從來沒有發生過MVC 4項目,但是...我的朋友,但沒有任何與ASP.NET Core MVC類似的問題。
我覺得它可能與環境變量有關,但我檢查,他們似乎很好。任何想法都表示讚賞。
「Zenbook」只是機器的名稱,這就是我,是的。 它只是任何默認的Web應用程序模板。所以,這是一個web應用程序項目,並不真正知道WinForms是如何參與的...... – telegrammae
好吧,它有點難以說我沒有真正看到它,但我建議你嘗試找到該代碼。從查看dll或安裝的nugent包開始。 –
**************例外文本************** System.IO.IOException:目錄名稱無效。 在System.IO .__ Error.WinIOError(的Int32的errorCode,字符串maybeFullPath) 在System.IO .__ Error.WinIOError() 在System.IO.Path.InternalGetTempFileName(布爾checkHost) ...... – telegrammae