当前位置: 代码迷 >> PB >> PB11.5发布webservice到其它计算机时无法访问
  详细解决方案

PB11.5发布webservice到其它计算机时无法访问

热度:348   发布时间:2016-04-29 05:42:42.0
PB11.5发布webservice到其它电脑时无法访问
在浏览器中打开
错误如下:
“/webservice”应用程序中的服务器错误。
--------------------------------------------------------------------------------

找不到指定的模块。 (异常来自 HRESULT:0x8007007E) 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.IO.FileNotFoundException: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)

源错误: 

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪: 


[FileNotFoundException: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
   System.Reflection.Assembly.Load(String assemblyString) +25
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3479081
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
   System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +3446661
   System.Web.Compilation.BuildManager.CompileGlobalAsax() +51
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462

[HttpException (0x80004005): 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456

[HttpException (0x80004005): 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426887
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149

 


--------------------------------------------------------------------------------

------解决方案--------------------
部署少了环境设置吧
------解决方案--------------------
发布时不要用localhost
------解决方案--------------------
:\SOFT\webservice_examp\webservice_examp\pb2cstempout\webservice\webservice.asmx.cs:行号 124 


应该是路径的问题
------解决方案--------------------
如果如你所说,安装了PB11就好了的话

那应该还是有一些文件没有复制完全


或者你配置的有问题
------解决方案--------------------
引用:
如果如你所说,安装了PB11就好了的话 

那应该还是有一些文件没有复制完全 


或者你配置的有问题



同意,还是检查一下有没有疏漏的地方吧
------解决方案--------------------
按说应该不需要什么东西的,估计是你的那个计算机有些问题


建议你再换台计算机试试
------解决方案--------------------
发布时将localhost改为服务器IP地址
------解决方案--------------------
楼主对比一下本地C:\WINDOWS\assembly目录和你发布的机器的C:\WINDOWS\assembly目录下,sybase开头的程序集有没有缺失。
还有pb运行依赖的几个dll都拷贝过去没有?你可以编译一个带datawindow的小程序拷贝到你发布的机器上,看是否可以正常运行。
------解决方案--------------------
这个阶段我也经历过了.可以将详细问题给我发邮件,我给你看看
  相关解决方案