[英]x86 target not running on 32 bit Windows XP
I have a .NET application that uses MS Access as a database. 我有一个使用MS Access作为数据库的.NET应用程序。 I have been using the AnyCPU as the compile target.
我一直在使用AnyCPU作为编译目标。 This has been running well on Windows XP 32bit.
这在Windows XP 32位上运行良好。 Now I need to deploy to Windows 7 64bit.
现在,我需要部署到Windows 7 64bit。 When I first deployed, the database connection failed.
第一次部署时,数据库连接失败。 So I found that I need to change the compile target to x86 to force Windows 7 64bit to run the program in 32bit mode.
因此,我发现我需要将编译目标更改为x86,以强制Windows 7 64bit在32bit模式下运行该程序。 This worked well.
这很好。 But when I tried to run the program on Windows XP 32bit, it fails.
但是,当我尝试在Windows XP 32bit上运行该程序时,它失败了。
I rather confused, could someone point me in the direction of how to resolve this? 我很困惑,有人可以指出我的解决方法吗?
EDIT: 编辑:
Here are the error details from ClickOnce on the Windows XP machine and the compile target is x86: 这是Windows XP计算机上ClickOnce的错误详细信息,编译目标为x86:
ERROR DETAILS 错误详情
Following errors were detected during this operation. * [2/10/2011 10:29:44 PM] System.Deployment.Application.DeploymentException (SubscriptionState) - The deployment identity does not match the subscription. - Source: System.Deployment - Stack trace: at System.Deployment.Application.SubscriptionStore.CheckUpdateInManifest(SubscriptionState subState, Uri updateCodebaseUri, AssemblyManifest deployment, Version currentVersion, Boolean& bUpdateInPKTGroup) at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl) at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile) at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
I found the solution. 我找到了解决方案。 The problem was that after I changed from "AnyCPU" to "x86", the update failed because of the identity error.
问题是,从“ AnyCPU”更改为“ x86”后,由于身份错误,更新失败。 I had to uninstall the old version.
我必须卸载旧版本。 After that the program installed and ran successfully.
之后,该程序将安装并成功运行。
@Chris Schmich - Thanks for pointing me to the details of the error. @Chris Schmich-感谢您指出错误的详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.