I've got a web application that targets .Net framework 3.5 and is built with Visual Studio 2010.
The problem is that when I install it on a Windows 2008 R2 server with only Framework 3.5 SP1 installed - then the install fails with this error. In effect it is looking for framework 4 but it doesn't need it.
Could not open key Software\Microsoft\ASP.Net\4.0.30319.0. Verify that you have sufficient access to that key, or contact your support personnel.
I guess in this instance support personnel would be SO users. This is a long standing issue that I have previously got around by the brilliant expediency of not bothering with the MSI and copying up the files. Unfortunately this is all going to hit a new project where this won't be an option.
Many thanks for your time
Other details
- There is a deployment project that generates an MSI which has a .Net dependency which is also targetted at .Net framework 3.5.
- Every project in my solution is targetted at framework 3.5
- Every reference to a BCL dll within any project that is going to be included in the deployment is version 2.0 or version 3.5
