积极答复者
vb.net 应用程序运行在win2k3 64bit,不是有效的Win32应用程序

问题
-
vs2008 程序以前在windows 2003 server 32bit 能正常运行,但将其复制到windows 2003 server 64bit 运行, 提示“不是有效的Win32应用程序”。事件类型: 警告
事件来源: ASP.NET 2.0.50727.0
事件种类: Web 事件
事件 ID: 1310
日期: 2010/5/26
事件: 15:25:01
用户: N/A
计算机: WEBSVR
描述:
事件代码: 3008
事件消息: 发生了配置错误。
事件时间: 2010-5-26 15:25:00
事件时间(UTC): 2010-5-26 7:25:00
事件 ID: d010faf89c4648308c707111f995060a
事件序列: 1
事件匹配项: 1
事件详细信息代码: 0
应用程序信息:
应用程序域: /LM/w3svc/1/ROOT/WebUI-1-129193322813750000
信任级别: Full
应用程序虚拟路径: /WebUI
应用程序路径: D:\GuliNet\WebUI\
计算机名: AAC-WEBSVR
进程信息:
进程 ID: 684
进程名: w3wp.exe
帐户名: NT AUTHORITY\NETWORK SERVICE
异常信息:
异常类型: HttpException
异常消息: 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
请求信息:
请求 URL: http://localhost/WebUI/Forms/AACSalesRangeform.aspx
请求路径: /WebUI/Forms/AACSalesRangeform.aspx
用户主机地址: 127.0.0.1
用户:
是否已经过身份验证: False
身份验证类型:
线程帐户名: NT AUTHORITY\NETWORK SERVICE
线程信息:
线程 ID: 1
线程帐户名: NT AUTHORITY\NETWORK SERVICE
是否正在模拟: False
堆栈跟踪: 在 System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
在 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
在 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
谢谢!
lintian
lintian- 已移动 Sheng Jiang 蒋晟Moderator 2010年5月28日 4:08 (发件人:Visual Basic)
答案
-
应用程序池默认是64位,所以不能加载32位代码。你可以修改应用程序设置或者代码的目标平台。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 lintian 2010年5月31日 3:24
全部回复
-
-
应用程序池默认是64位,所以不能加载32位代码。你可以修改应用程序设置或者代码的目标平台。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 lintian 2010年5月31日 3:24