Could not load file or assembly 'xxx' or one of its dependencies.
在使用Visual Studio Build 程式碼時,電腦顯示器突然白屏閃爍,我無奈之下強制關閉電腦,然後開啟visualstudio,重新ReBuild,發現無法啟動應用程式,並報告錯誤: Server Error in '/' Application.
Could not load file or assembly 'DocumentFormat.OpenXml' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
百般折騰後無果,通過bing搜尋查詢類似條目,被我發現一條有用的資訊: 作者描述說應該是Visual Studio 快取檔案出了問題,我們需要將該檔案刪除,重新編譯我們的工程檔案即可恢復正常:
到該目錄下刪除快取檔案: C:users\username\AppData\Local\temp\Temporary ASP.NET Files\ 這裡面的所有檔案,包括\root*檔案
相關文章
- Could not load file or assembly or one of its dependencies 試圖載入格式不正確的程式
- Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.EnterpException
- configuration error-could not load file or assembly crystaldecisions.reportappserver.clientdocErrorAPPServerclient
- Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'HTTP
- Could not load file or assembly 'System.ServiceModel.DomainServices.Hosting'.系統找不到指定檔案AI
- Visual Studio 2017 Could not load file or assembly Microsoft.VisualStudio.VC.Interfaces的解決方法ROS
- C#反射中Assembly.Load及Assembly.Load.CreateInstance方法介紹C#反射
- PL/SQL Developer啟動時報錯,Initialization error could not load xxxx\oci.dllSQLDeveloperError
- sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.SQLServer
- 有關The Requested Item Or One Of Its Components Is Not Collected
- su - xxx Could not create sessionSession
- Xamarin.iOS專案編譯提示Could not AOT the assemblyiOS編譯
- vue Cannot find module @/xxx/xxx.ts or its corresponding typeVue
- Process W000 died, see its trace file
- // @require file://C:xxxxxxxxx.jsUIJS
- ssis multiple table to one file
- could not connect to redis Instance at xxx.xxx.xxx.xxx:6379Redis
- could not autowire. No beans of 'xxxx' 問題解決Bean
- Could not find first log file name in binary log index fileIndex
- MySQL server PID file could not be found!MySqlServer
- 除錯記錄:The public type must be defined in its own file除錯
- mysql Incorrect key file for table ‘/xxxxxxxx/xxxx.MYI'; try to repair itMySqlAI
- vue3 Could not find a declaration file for moduleVue
- a commponent required a bean of type XXXXXX that could not be found-2022新專案UIBean
- Unreal: Dynamic load map from Pak fileUnreal
- J2SE - Could not find the main class: xxx.xxx.Program will exitAI
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- VueX Vue: Could not find a declaration file for module vuex.Vue
- More than one file was found with OS independent path
- 高手sos!!! Unable to load document from file...
- WebLogic啟動報Could not get the server file lockWebServer
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- Application failed to start because it could not find or load the QT platform plugin “windows”APPAIQTPlatformPluginWindows
- Error: Could not load module '/usr/local/nagios/bin/ndo2ErroriOS
- Load of cache file failed. rc=1301AI
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- rsau/max_diskspace/per_file - Maximum size of one single security audit file
- Mysql啟動錯誤-server PID file could not be foundMySqlServer