Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Values of Public Keys Don't match
 

Values of Public Keys Don't match

Hi,

I have VS 2005 SP1. When I applied all the latest service packs including the latest .NET framwork versions. I am facing the following warning for my existing project.

My .NET 2.0 project used to work without problems.

"Warning 1 The value of the 'PublicKey' attribute in '.NET Framework 2.0' does not match that of file 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\dotnetfx\dotnetfx.exe'. Setup
"Warning 2 The value of the 'PublicKey' attribute in 'SQL Server 2005 Express Edition' does not match that of file 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\SqlExpress\en\sqlexpr32.exe'. Setup

Did my .NET framwork installations affect my VS projects?

How can I fix this please so that I can compile my setup project?

Thanks

Leedo  Thursday, July 09, 2009 3:01 PM

Hi Leedo,

Is your operation system Windows Vista? If so, please follow the link below:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=108179&wa=wsignin1.0.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Tuesday, July 14, 2009 7:44 AM
Hi Aland Li,

No, it is Windows XP SP2. Do you what should be done in that case?

Thx
Leedo  Tuesday, July 14, 2009 5:18 PM

Hi Leedo,

These are my replies to your questions:

1. Did my .NET framwork installations affect my VS projects?

Reply: From my experience, the installations would not affect your projects, but it would affect the prerequisites packages. You need to check these directories:

§ 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\dotnetfx�/span>

§ 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\SqlExpress\en\�/span>

You can check the modified time of the files in the directories to see if they are affected by the installation. You can see a file named product.xml in each directory. The public keys can be found in that file.

2. How can I fix this please so that I can compile my setup project?

Reply: It is hard to find a good way to do this. A simple way is copying the files from anther machine where the projects can be built successfully. You can also create a virtual machine and make sure your projects can be built in that machine, then you can copy files from this virtual machine.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, July 15, 2009 4:05 AM

You can use google to search for other answers

Custom Search

More Threads

• Communicate back to the launching browser
• Not install custom action dll on target computer
• ClickOnce - unexpected behaviour
• How to make single execution file
• Execute and script agains a database in winforms?
• A ClickOnce Problem!!!!!
• Application settings are overrun after a click-once update
• Using clickOnce Programmatically
• ActiveX control e88121a3-9fa9-11cf-9d9f-00aa003a3aa3 cannot be instantiated because the current thread is not a single-threaded
• multiple distribution servers with ClickOnce