一个很奇怪的问题。很奇怪很奇怪

ganzengshuen 2010-11-02 04:16:11
错误页面如下

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'ZPY.BLL' or one of its dependencies. 参数不正确。 (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.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'ZPY.BLL' or one of its dependencies. 参数不正确。 (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'ZPY.BLL' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace:


[FileLoadException: Could not load file or assembly 'ZPY.BLL' or one of its dependencies. 参数不正确。 (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]

[FileLoadException: Could not load file or assembly 'ZPY.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 参数不正确。 (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +50
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'ZPY.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 参数不正确。 (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3614809
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +3578709
System.Web.Compilation.BuildManager.CompileGlobalAsax() +51
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462

[HttpException (0x80004005): Could not load file or assembly 'ZPY.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 参数不正确。 (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +520

[HttpException (0x80004005): Could not load file or assembly 'ZPY.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 参数不正确。 (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3559279
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279



这个错误是我电脑自动重启之后发生的。。
但是重启之前项目是可以运行的。一点问题都没有

它说'ZPY.BLL' 引用的问题。 但是 ZPY.BLL这个引用文件存在啊。而且 我把ZPY.BLL的引用删掉 也一样报错。
项目里没有一个地方用到了这个引用。

燥死了。。 各位大虾给我解决下呗。。 不甚感谢。。
...全文
119 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
jqq322323 2010-11-02
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 net_lover 的回复:]
你可以删除

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
或者
C:\WINDOWS\Microsoft.NET\Framework\你使用的aspnet版本\Temporary ASP.NET Files\

然后再测试
[/Quote]
应该可以
ganzengshuen 2010-11-02
  • 打赏
  • 举报
回复
咋都这么坏呢`. 哈哈`. 搞定了 搞定了`..
generhappy 2010-11-02
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 hongjiaoli 的回复:]
把本地C盘文件 夹下面的删了,看看
[/Quote]
够狠。。。。
hongjiaoli 2010-11-02
  • 打赏
  • 举报
回复
把本地C盘文件 夹下面的删了,看看
ganzengshuen 2010-11-02
  • 打赏
  • 举报
回复
net_lover 是不是把文件夹里的删掉呀...?
早安您好 2010-11-02
  • 打赏
  • 举报
回复
ganzengshuen 2010-11-02
  • 打赏
  • 举报
回复
文件夹里的东西全删了·。。?
孟子E章 2010-11-02
  • 打赏
  • 举报
回复
你可以删除

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
或者
C:\WINDOWS\Microsoft.NET\Framework\你使用的aspnet版本\Temporary ASP.NET Files\

然后再测试

62,050

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧