无法安装使用 VS2010 构建的针对框架 3.5 的 MSI
我有一个面向 .Net Framework 3.5 并使用 Visual Studio 2010 构建的 Web 应用程序。
问题是,当我将其安装在仅安装了 Framework 3.5 SP1 的 Windows 2008 R2 服务器上时,安装会失败并出现此错误。实际上,它正在寻找框架 4,但它并不需要它。
无法打开密钥 Software\Microsoft\ASP.Net\4.0.30319.0。验证一下 您有足够的权限访问该密钥,或者联系您的支持人员 人员。
我想在这种情况下,支持人员将是 SO 用户。这是一个长期存在的问题,我之前已经通过不关心 MSI 和复制文件的绝妙权宜之计解决了这个问题。不幸的是,这一切都将发生在一个新项目中,而这将不是一个选择。
非常感谢您花时间
其他详细信息
- 有一个部署项目生成一个 MSI,该项目具有 .Net 依赖项,该依赖项也针对 .Net Framework 3.5。
- 我的解决方案中的每个项目都针对框架 3.5
- 将要包含在部署中的任何项目中对 BCL dll 的每个引用都是版本 2.0 或版本 3.5
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里的问题是 VS 2010 为 Web 安装部署项目引入了一个名为“ASPNETVersion”的新属性。 “ASPNETVersion”属性的默认值为“4.0.30319.0”
要解决此问题,请将“ASPNETVersion”属性更改为“2.0.50727.0”并重建设置。
来源:http://ncrypt.nirmalperera.com/2010/09/aspnet-web-app-deployment-issue.html
The problem here is VS 2010 has introduced a new property named "ASPNETVersion" for Web Setup deployment projects. The default for the "ASPNETVersion" property is to "4.0.30319.0"
To fix the issue change the "ASPNETVersion" property to "2.0.50727.0" and rebuild the setup.
Source: http://ncrypt.nirmalperera.com/2010/09/aspnet-web-app-deployment-issue.html