我用vs.net建了一个最简单的webservice,为什么不能用(急救)?

robinson 2004-03-23 01:06:34
请问这是个什么错误啊?在另一台能创建webservice的机器上根本就找不到下面这个文件!

System.IO.FileNotFoundException: 找不到文件或程序集名称“6q9a2mpt.dll”,或找不到它的一个依赖项。
文件名: “6q9a2mpt.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:\WINNT\TEMP\6q9a2mpt.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/6q9a2mpt.dll.
...全文
34 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
robinson 2004-03-23
  • 打赏
  • 举报
回复
错误是很明显,但是这个文件就是在能创建webservice的机器上根本就找不到!而且我只写了一个hello的测试程序,没有其他代码。
gengwei80 2004-03-23
  • 打赏
  • 举报
回复
up
tongcheng 2004-03-23
  • 打赏
  • 举报
回复
嗯。。。。。。
zhenwang 2004-03-23
  • 打赏
  • 举报
回复
已经很明显,你的dll文件未找到。创建webservice与某个dll有关吗?

一般的是你在一台机器上创建了webservice后,只要在另外一台机器上web引用该.asmx文件即可使用webservice。

12,165

社区成员

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

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