Web Service 问题

milp 2004-08-26 08:53:55
写好的Web Service,在某一台机器上出错,就是运行一个简单的Hello World的Service也是如此,
这些Web Service在其他的机器上都没有问题。
这台出错的机器运行ASPX页面也没有问题,是不是和操作系统有关?
有没有哪位碰到过这个问题,怎么解决的?


System.IO.FileNotFoundException: File or assembly name 2oez_dj3.dll, or one of its dependencies, was not found.
File name: "2oez_dj3.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.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
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 = C:\WINNT\TEMP\2oez_dj3.dll
LOG: Appbase = file:///c:/inetpub/wwwroot/WebService1
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:///C:/WINNT/TEMP/2oez_dj3.dll.
...全文
144 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
milp 2004-08-26
  • 打赏
  • 举报
回复
我重装过.net了,是不是操作系统的问题呢,有没有哪位碰到过这种问题然后解决了的呢?
sy246 2004-08-26
  • 打赏
  • 举报
回复
我也遇到过这种问题,我在自己的机器上使用的好好的,可拿到别人的机器上就没发用,而且还打不开!

我的初步怀疑是机器的问题,或者是.net的问题
sy246 2004-08-26
  • 打赏
  • 举报
回复
我也遇到过这种问题,我在自己的机器上使用的好好的,可拿到别人的机器上就没发用,而且还打不开!

我的初步怀疑是机器的问题,或者是.net的问题
milp 2004-08-26
  • 打赏
  • 举报
回复
忘记补充一句了,每次报的DLL名称都不一样,肯定不是引用的问题。
速马 2004-08-26
  • 打赏
  • 举报
回复
aspnet_regiis -r
Jeffeng 2004-08-26
  • 打赏
  • 举报
回复
看你上面的信息好象是没有找到引用C:/WINNT/TEMP/2oez_dj3.dll。
你编译正常吗?你把引用重设一下试试。
chenweionline 2004-08-26
  • 打赏
  • 举报
回复
2oez_dj3.dll
是什么文件啊?
顶一顶。

111,092

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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