Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > The value of the 'PublicKey' attribute in '.NET Framework 3.5' does not match that of ...
 

The value of the 'PublicKey' attribute in '.NET Framework 3.5' does not match that of ...

Hi

I have a setup project in vs2008. When I put .NetFramework 3.5 in the prerequisites and download from vendor site, I get this error when building the setup project:

The value of the 'PublicKey' attribute in '.NET Framework 3.5' does not match that of file 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35\dotNetMSP\x86\NetFX2.0-KB110806-v6000-x86.msu'

Why?

Thanks,

Dan

dan blanchard  Saturday, August 09, 2008 5:05 AM

Hi Dan,

Well, based on my experience, it’s a problem about your Visual Studio’s installation environment. There is something wrong within file:

C:\ProgramFiles\MicrosoftSDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35\product.xml

Accurately speaking, public key of NetFX2.0-KB110806-v6000-x86.exe within product.xml cannot match with Framework 2.0 successfully.

So, firstly, please make a check whether there is anything wrong with your .Net Framework 2.0 (Have you uninstalled it? Or something else?).

And I do not think it would be simple for resolving this problem. As far as I can tell, the most effective and also troublesome way is to make sure that all the environments of Visual Studio 2008 are installed properly. Please try to repair your installation of Visual Studio 2008.

If that does not help, try to build your project in another computer which has 2008 installed successfully.

Please do not hesitate to let me know if that does not help.

Thanks.

Best wishes,

Jun Wang

Jun Wang Tim  Wednesday, August 13, 2008 9:30 AM

Hi Dan,

Well, based on my experience, it’s a problem about your Visual Studio’s installation environment. There is something wrong within file:

C:\ProgramFiles\MicrosoftSDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35\product.xml

Accurately speaking, public key of NetFX2.0-KB110806-v6000-x86.exe within product.xml cannot match with Framework 2.0 successfully.

So, firstly, please make a check whether there is anything wrong with your .Net Framework 2.0 (Have you uninstalled it? Or something else?).

And I do not think it would be simple for resolving this problem. As far as I can tell, the most effective and also troublesome way is to make sure that all the environments of Visual Studio 2008 are installed properly. Please try to repair your installation of Visual Studio 2008.

If that does not help, try to build your project in another computer which has 2008 installed successfully.

Please do not hesitate to let me know if that does not help.

Thanks.

Best wishes,

Jun Wang

Jun Wang Tim  Wednesday, August 13, 2008 9:30 AM

Hi Jun

I am experiencing the same problem as well. It has occurred a number of times now, and the only way I have found to fix it, is to reinsert the VS2008 disk and repair the installation. All our development environments run VS2008, VS2005 and VS2003, for legacy application support work.

The issue seems to be caused by the addition of the Web project to the setup project. Just adding dll projects causes no issue at all. In between build cycles the output for the web project under VS2008 seems to be subject to more change than the others, and when we try and build the MSI, the dreaded error occurs, and the only way out is to reach for the disk again.

Do you know if this is a recognised defect as far as MS are concerned - and is there orwill there be a hot fix available? We operate in a continuous integration environment, so the build process is fundamental to our software development.

Thanks - I look forward to your thoughts.

Tony

TD_SS  Saturday, September 06, 2008 6:50 AM
I had the same error and fixed it by rapairing .NET 3.5 thru Add/Remove Prgs.
jarabe28  Wednesday, July 15, 2009 7:09 PM

You can use google to search for other answers

Custom Search

More Threads

• Installing a url automaticlly as atrusted site
• Problemas con Crystal Reports
• MSI PRoblem
• Trigger Outlook Calendar via Vb.net
• "Could not find File <path>\<filename>.InstallState" error due to first custom action failing and second rolling back
• Strong name signature not valid for this assembly Microsoft.mshtml.dll
• RemovePreviousVersions is not adding entry to Upgrade table
• How do I sign a CAB file?
• Prerequisites Sql Server 2008 express with named instance?
• Bootstrapper .NET 2.0