Could not load file or assembly "App_Licenses.dll"的问题
2010-03-30 13:17
1121 查看
今天在AspDotNetStorefront做定制化开发,编译的时候莫名其妙地报告Could not load file or assembly 'App_Licenses, Version=0.0.0.0, Culture=neutral, ... (Exception from HRESULT: 0x80070057 (E_INVALIDARG))的错误,检查文件系统,发现文件还在,然后查看文件夹权限,也没有发现任何异样。于是Google。网上很多网友给出解决方案,比如:重启/重装ASP.NET,设置Network Service权限等等,结果无功而返。
后来我发现,不仅仅是这个App_Licenses.dll无法加载,就算我从References中删去这个引用,仍然会提示其它的DLL也无法加载的情况。而且,我重新安装一份新的AspDotNetStorefront应用也出现同样的问题。很明显,不是我解决方案本身的问题。
突然想起之前有过机器异常重启的经历,我估计是在异常重启的过程中造成了文件丢失或者损坏,于是先用iisreset/stop停止IIS服务,然后打开ASP.NET的临时文件夹(在32bit,.NET 2.0中,是%Windows Install Folder%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files),删除所有的文件和文件夹,再iisreset/start后,编译解决方案,一切正常。
这问题其实不复杂,但真正碰到这样的问题解决起来也挺难的。在此随笔一下,也希望能够帮到遇到同样问题的网友。
相关文章推荐
- Could not load file or assembly "App_Licenses.dll"的问题
- Could not load file or assembly "App_Licenses.dll"的问题
- Could not load file or assembly "App_Licenses.dll" " Could not load file or assembly App_Web_"
- 用Fusion Log诊断"Could not load file or assembly"问题
- 解决Could not load file or assembly CefSharp.Core.dll的问题
- 解决Could not load file or assembly CefSharp.Core.dll的问题
- wcf web service遇到"Could not load file or assembly App_Web..."问题
- 用Fusion Log诊断"Could not load file or assembly"问题
- Could not load file or assembly "\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.
- [Exception] – Could not load file or assembly App_Web_*** ASP.NET
- Crystal Reports & Framework 4 (Could not load file or assembly crdb_adoplus.dll)
- Solution to "Could not load file or assembly or one of its dependencies. Access is denied"
- 关于在IISserver上执行asp.net Web程序出现以下 “Could not load file or assembly。。。”问题的
- Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies
- [Exception] – Could not load file or assembly App_Web_*** ASP.NET
- “Could not load file or assembly 。。。试图加载格式不正确的程序”的问题解决
- Asp.Net 关于Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.问题的解决方法。
- Could not load file or assembly "Microsoft.DataTransformationServices.Design,Version=12.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91" or one of its dependencies.
- Could not load file or assembly 'vjscor, Version=2.0.0.0, Culture=neutral, 问题解决方法
- Could not load file or assembly "xxx" or one of its dependencies. The system cannot find the file sp