System.IO.FileNotFoundException: 找不到文件或程序集名称“aybbu-lg.dll”,或找不到它的一个依赖项。
文件名: “aybbu-lg.dll”
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
   at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
   at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
   at System.Xml.Serialization.Compiler.Compile()
   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
   at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings)
   at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
   at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)=== Pre-bind state information ===
LOG: Where-ref bind. Location = D:\WINNT\TEMP\aybbu-lg.dll
LOG: Appbase = file:///D:/Inetpub/wwwroot/ERP_WebUI
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///D:/WINNT/TEMP/aybbu-lg.dll.

解决方案 »

  1.   

    aybbu-lg.dll,依错误是bin缺少这个dll,是不是你的程序没有引入这个dll
      

  2.   

    不是的
    程序编译都ok
    运行也没问题
    只有调用webservices的地方才会报错
      

  3.   

    不是的
    程序编译都ok
    运行也没问题
    只有调用webservices的地方才会报错
      

  4.   

    是不是在重装系统的时候丢失了某些文件?!===============================================
    .NET?才入门而已!!!
    ===============================================
    不要问我是谁,茫茫人海中我们曾擦肩而过。
    不要问我是谁,滚滚红尘中我们曾经相识过!
    不要问我是谁,茫茫人海中那一抹蓝色就是我的星座,
    不要问我是谁,我也不知我们相识相知到底是对是错!
    ===============================================
      

  5.   

    aybbu-lg.dll此assembly原来是注册在GAC里面的,你重装之后,GAC里面后来安装的assembly都没有了(只有一些默认安装.NET的时候安装的一些),所以会出现这个问题,你可以将这个文件在安装一遍(找到其安装程序直接安装),或者将这个文件copy到本地的bin下面重新引用即可。
      

  6.   

    D:/WINNT/TEMP/aybbu-lg.dll
    这个提示找不到的dll文件每次报错都会发生变化的
    应该是运行时复制或者生成的一个临时dll
      

  7.   

    你的WINXP是什么版本的?有几个D版的WINXP缺斤短两的我自己也遇到过同样的问题
      

  8.   

    是 WEBSERVICE的 组件 错误了!!
    我也有这样的 经历过!
    重新安装
      

  9.   

    ==>这个提示找不到的dll文件每次报错都会发生变化的
    你的意思是每次这个文件的名字都不相同么?你在运行时是否要动态的LoadAssembly么?
    可能是及时编译时出错了。在你的web.config里面查找一下看看是否有“D:\WINNT\TEMP\”。
      

  10.   

    今天终于解决了在网上查了一天,终于找到了类似的问题
    在系统盘D:\WINNT\TEMP目录添加aspnet帐户的权限就可以了问题一旦解决了回头再想想其实挺简单的啊,呵呵