English 中文(简体)
x86目标未在32位Windows XP上运行
原标题:x86 target not running on 32 bit Windows XP

我有一个.NET应用程序,它使用MS Access作为数据库。我一直在使用AnyCPU作为编译目标。这在Windows XP 32位上运行良好。现在我需要部署到Windows7 64位。当我第一次部署时,数据库连接失败。所以我发现我需要将编译目标更改为x86,以强制Windows7 64位以32位模式运行程序。这很有效。但当我尝试在WindowsXP32bit上运行该程序时,它失败了。

我很困惑,有人能给我指明如何解决这个问题的方向吗?

编辑:

以下是Windows XP计算机上ClickOnce的错误详细信息,编译目标为x86:

错误详细信息

   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)
最佳回答

我找到了解决办法。问题是,在我从“AnyCPU”更改为“x86”后,由于身份错误,更新失败。我不得不卸载旧版本。之后,程序成功安装并运行。

@克里斯·施米奇-谢谢你向我指出错误的细节。

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签