Web Service 问题

milp 2004-08-20 04:14:53
写好的Web Service,在某一台机器上出错,就是运行一个简单的Hello World也是如此,
这些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.


...全文
105 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
milp 2004-08-23
  • 打赏
  • 举报
回复
有没有搞错,明明是framework报出来的错,居然有人回答 编译,是否已装dotNET framework???

另外一点2oez_dj3.dll,每次刷新这个DLL的都不一样,有没有高手出来解答
zhpsam109 2004-08-20
  • 打赏
  • 举报
回复
http://support.microsoft.com/default.aspx?scid=kb;zh-cn;327435
tangyouping 2004-08-20
  • 打赏
  • 举报
回复
是直接在IE中查看的吗?
tangyouping 2004-08-20
  • 打赏
  • 举报
回复
是否已装dotNET framework
milp 2004-08-20
  • 打赏
  • 举报
回复
肯定编译通过喽

IIS怎么设置?
gl637 2004-08-20
  • 打赏
  • 举报
回复
在IIS里设置!
realljx 2004-08-20
  • 打赏
  • 举报
回复
编译。

111,126

社区成员

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

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

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