pb11.2的.net web service可以发布到64位 windows2003上吗?如果可以需要怎么做?

圣殿骑士18 2009-04-21 02:32:40
pb11.2做的一个web service应用,打包成msi安装程序后,在本地的windowsxp上可以发布并运行,
但是在64位的windows2003服务器上(英文版)上能发布但无法通过其自身的测试。
测试方法为pb提供的,访问http://localhost/webservice/TestWebService.htm

结果出错:
在google上搜索所是64位系统的原因。
Server Error in '/webservice' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'webservice' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'webservice' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'webservice' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace:


[BadImageFormatException: Could not load file or assembly 'webservice' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
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) +1848
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +456
System.Reflection.Assembly.Load(String assemblyString) +88
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +328

[ConfigurationErrorsException: Could not load file or assembly 'webservice' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +4616
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +888
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +328
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +104
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +1336
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +168
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +728
System.Web.Compilation.BuildManager.CompileGlobalAsax() +120
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +2920

[HttpException (0x80004005): Could not load file or assembly 'webservice' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +200
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +4232
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +4712

[HttpException (0x80004005): Could not load file or assembly 'webservice' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +2872
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +392
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +3672




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

大家是否有解决办法?
...全文
349 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
guhe200120012001 2011-10-27
  • 打赏
  • 举报
回复
调整IIS的应用池即可运行。
选中运行WS的应用池->高级设置->“启动32位应用程序” 改为True即可。
张义雄 2011-08-05
  • 打赏
  • 举报
回复
哈哈,现在64位的很多问题都有可能呀,因为用的少呀
scybcbj 2011-07-21
  • 打赏
  • 举报
回复
怎么解决的
rainsmart 2010-08-03
  • 打赏
  • 举报
回复
怎么能解决呀
tslpf_ren 2010-04-08
  • 打赏
  • 举报
回复
版主是否可以提供個 pb11.2安裝包的下載地址?謝謝
圣殿骑士18 2009-04-23
  • 打赏
  • 举报
回复
64位可能不行了,试过仍然不行,最后换了一台应用服务器解决了,发布成功
圣殿骑士18 2009-04-21
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 softvery 的回复:]
可以尝试一下系统的兼容运行
[/Quote]
怎么个兼容运行?
圣殿骑士18 2009-04-21
  • 打赏
  • 举报
回复
呵呵,在上面装pb啊,客户要反对的,这可是服务器
WorldMobile 2009-04-21
  • 打赏
  • 举报
回复
你试试在64位系统下编译,然后再发布
softvery 2009-04-21
  • 打赏
  • 举报
回复
可以尝试一下系统的兼容运行

662

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder Web 应用
社区管理员
  • Web 应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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