Could not load file or assembly 'XXX' or one of its dependencies. Access is denied.
老外的一篇文章:http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx
我项目中的文件:
webconfig下的配置节:
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
文件AssemblyInfo.cs:
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("abc")]
我把[assembly: AssemblyCulture("abc")]改为[assembly: AssemblyCulture("")],其他的没变。
webconfig文件也没改动。
或者把
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
删掉也行