简体   繁体   English

x86目标未在32位Windows XP上运行

[英]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.

相关问题 可在32位(x86)和64位(x64)平台上运行的自定义Windows窗体控件 - Custom windows form controls that could run on both 32bit (x86) and 64bit (x64) platform VS 2010项目始终以x86 / 32位为目标 - VS 2010 Project always targeting x86/32 bit 在64位窗口上运行x86包时,ClickOnce:BadImageFormatException - ClickOnce: BadImageFormatException when running x86 package on 64 bit windows 当exe在64位计算机上为x86(32bit)时,dll是否将以32位或64位加载? - Will dll be loaded as 32bit or 64bit when exe is x86(32bit) on a 64bit machine? 如何通过反射将一个程序集设置为32位(即x86) - How, with reflection, can I set an assembly to be 32-bit (i.e. x86) .NET,“任何 CPU/64 位 (x64)/32 位 (x86)”最佳实践、提示和技巧 - .NET, "Any CPU/64Bit (x64)/32Bit (x86)" Best Practices, Tips and Tricks net461中的目标x86 - Target x86 in net461 为什么.NET x86 Windows服务未在任务管理器中显示为* 32? - Why is a .NET x86 windows service not displayed with *32 in Task Manager? 为什么即使在IIS中将“启用32位应用程序”设置为false,App_GlobalResources为什么也可以为x86编译? - Why does App_GlobalResources compile for x86, even with “Enable 32-bit applications” set to false in IIS? 为什么'任何CPU(更喜欢32位)'允许我在.NET 4.5下分配比x86更多的内存? - Why does 'Any CPU (prefer 32-bit)' allow me to allocate more memory than x86 under .NET 4.5?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM