I have a ClickOnce problem. I have searched the web and msdn blogs but have no conclusive answer and can’t fix the problem.
When I attempt to publish I get the following dialog (as attached):
---------------------------
Microsoft Visual Studio
---------------------------
The application is signed with a different key than the existing application on the server. Do you want to overwrite it?
---------------------------
Yes No Help
---------------------------
I am not sure what changes to the project properties cause this.
Now the thing is the Project settings have changed a bit, mainly I have now forced the platform target to x86 for all projects to solve a crystal report problem (when deploying to x64 machines), I need crystal release XI 2 to run in 32bit mode, I also changed the deploy path to our dev environment and now back again to the live path while testing. I don’t want to sign the application at all as this is just used internally. So before publishing on the project Properties I set the Signing settings tab and untick “Sign the Clickonce manifests�
Then I attempt to Publish. Every time I Publish I get the above dialog prompt and VS automatically creates the TemporaryKey.pfx (you can see in the solution explorer) and also sets the “Sign the Clickonce manifests�checkbox back to true, I cannot get the solution to publish without the signing checkbox unticked. This is very frustrating I’ve even tried manually editing the .csproj file deleting these lines:
<SignManifests>false</SignManifests>
<ManifestCertificateThumbprint>247708FAC1A406DB38D2A9AEC8749F1BBEBFDE7D</ManifestCertificateThumbprint>
<ManifestKeyFile>xxxxxx_TemporaryKey.pfx</ManifestKeyFile>
<GenerateManifests>true</GenerateManifests>
As suggested in this MSDN blog http://forums.msdn.microsoft.com/en/msbuild/thread/f2b8771a-902c-4a9d-a2e1-cc8044e54421/
And then setting the file to read only but no joy the “Sign the Clickonce manifests�checkbox gets autoset to true every time I Publish. I have even tried getting a fresh copy from Source Safe but it hasn’t helped. Also is there a quick way to force every project in my solution’s Build>Platform Target: to x86?
I not quite sure what is going on here but I definitely want to just publish the application as an update and not have to get every client machine to uninstall their current instance and reinstall this version as is the consequence detailed at this site http://msdn.microsoft.com/en-us/library/ms228673.aspx?ref=Klasistanbul.Com
Any help on this issue you can give me is much appreciated.