调用web服务错误,高手们来看看

ywcyj 2004-05-11 04:18:24
自己开发的web服务程序,在本机调试没有问题。旁边的同事用客户端调用也一切正常。可我发不到服务器上就出错了。大家帮我看看这可能是哪儿配置有问题
出错信息:
System.IO.FileNotFoundException: 找不到文件或程序集名称“4r0dhr-k.dll”,或找不到它的一个依赖项。
文件名: “4r0dhr-k.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 = C:\WINDOWS\TEMP\4r0dhr-k.dll
LOG: Appbase = file:///E:/mytax/TransferWS
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:/WINDOWS/TEMP/4r0dhr-k.dll.
...全文
63 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
saucer 2004-05-12
  • 打赏
  • 举报
回复
take a look at this KB article, it might help you

http://support.microsoft.com/default.aspx?scid=kb;EN-US;823196

ywcyj 2004-05-12
  • 打赏
  • 举报
回复
谢谢 saucer(思归/MVP)
已经搞定
结贴
呵呵
ywcyj 2004-05-12
  • 打赏
  • 举报
回复
每次试都出错,但显示缺少的dll都不一样
而且这dll和我写的程序无关的
我觉得应该是服务器配置的问题
白掌柜 2004-05-12
  • 打赏
  • 举报
回复
少一个Dll,做一个安装程序吧,安装程序会把这个Dll拷贝到你的机器上的。
BestSky 2004-05-11
  • 打赏
  • 举报
回复
你引用了一个dll,在本机是地址是正确的,但是在服务器上呢?比如你的地址:g:\..
服务器也是这样吗?建议引用采用相对路径.
ywcyj 2004-05-11
  • 打赏
  • 举报
回复
没人帮我?
快来人呀
ywcyj 2004-05-11
  • 打赏
  • 举报
回复
可我发布到服务器上就出错了。
是“发布”,呵呵

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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