[英]Can't install IIS7 and ASP.NET 3.5 on Win7 64-bit
Using Win7 32-bit for 3 months and didn't have problem with developing any .NET-based applications including ASP.NET apps. 使用Win7 32位3个月,并且没有开发任何基于.NET的应用程序(包括ASP.NET应用程序)的问题。
Just upgraded my laptop's RAM 3 days ago and switched to 64-bit version of Win7. 刚刚升级我的笔记本电脑的RAM 3天前,切换到64位版本的Win7。
When I'm working on installing IIS7 and .NET Framework 3.5 SP1, there's an error about not all features were installed for some unknown reason. 当我正在安装IIS7和.NET Framework 3.5 SP1时,由于某些未知原因而未安装所有功能,因此会出现错误。
When I try to register ASP.NET using aspnet_regiis -ir
in c:\\Windows\\Microsft.NET\\Framework64\\v2.0.50727\\
, a dialog box shows with this error message: 当我尝试在c:\\Windows\\Microsft.NET\\Framework64\\v2.0.50727\\
使用aspnet_regiis -ir
注册ASP.NET时,会出现一个对话框,显示以下错误消息:
"Operation failed with 0x80070643" and after I close the dialog box, another error message on the console command shows with this message: "An error has occurred: 0x80004005 Unspecified error". “操作失败并显示0x80070643”,关闭对话框后,控制台命令上的另一条错误消息显示此消息:“发生错误:0x80004005未指定错误”。
I had the same problem and I did everything found on the internet but nothing was useful eventually I was able to solve it by using the following: note: do it on your own risk Add the following to you registry only if the doesn't exist (in my case they didn't exist): 我有同样的问题,我做了所有在互联网上找到的东西,但没有什么是有用的,最终我能够通过使用以下来解决它:注意:自己承担风险只有在不存在的情况下才将以下内容添加到您的注册表中(在我的情况下,它们不存在):
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_2.0.50727] [HKEY_LOCAL_MACHINE \\系统\\ CurrentControlSet \\服务\\ ASP.NET_2.0.50727]
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_2.0.50727\\Names] [HKEY_LOCAL_MACHINE \\系统\\ CurrentControlSet \\服务\\ ASP.NET_2.0.50727 \\名称]
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_2.0.50727\\Performance] [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_64] [HKEY_LOCAL_MACHINE \\ SYSTEM \\ CurrentControlSet \\ services \\ ASP.NET_2.0.50727 \\ Performance] [HKEY_LOCAL_MACHINE \\ SYSTEM \\ CurrentControlSet \\ services \\ ASP.NET_64]
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_64\\Names] [HKEY_LOCAL_MACHINE \\系统\\ CurrentControlSet \\服务\\ ASP.NET_64 \\名称]
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_64\\Performance] [HKEY_LOCAL_MACHINE \\系统\\ CurrentControlSet \\服务\\ ASP.NET_64 \\性能]
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_64_2.0.50727] [HKEY_LOCAL_MACHINE \\系统\\ CurrentControlSet \\服务\\ ASP.NET_64_2.0.50727]
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_64_2.0.50727\\Names] [HKEY_LOCAL_MACHINE \\系统\\ CurrentControlSet \\服务\\ ASP.NET_64_2.0.50727 \\名称]
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\ASP.NET_64_2.0.50727\\Performance] [HKEY_LOCAL_MACHINE \\系统\\ CurrentControlSet \\服务\\ ASP.NET_64_2.0.50727 \\性能]
try installing asp.net 64 bit after that 尝试安装asp.net 64位之后
Configure IIS to run in 32 bit mode (assuming your apps are 32 bit mode, since that's what you originally developed on). 配置IIS以32位模式运行(假设您的应用程序是32位模式,因为这是您最初开发的)。
http://learn.iis.net/page.aspx/201/32-bit-mode-worker-processes/ http://learn.iis.net/page.aspx/201/32-bit-mode-worker-processes/
Try running aspnet_regiis after that is done. 完成后尝试运行aspnet_regiis。 Use the 32 bit version of aspnet_regiis. 使用32位版本的aspnet_regiis。
I know this is a fairly old post, but I thought I'd share what I did to solve this problem on my machine running Windows 7 64-bit. 我知道这是一个相当古老的帖子,但我想我会分享我在运行Windows 7 64位的机器上解决这个问题的方法。
While IIS was installed on my computer, the ASP.NET features were not enabled. 虽然我的计算机上安装了IIS,但未启用ASP.NET功能。
To enable ASP.NET do the following: 要启用ASP.NET,请执行以下操作:
Navigate to the Turn Windows features on or off dialog. 导航到打开或关闭Windows功能对话框。 It's located under 它位于
Control Panel --> Programs and Features . 控制面板 - > 程序和功能 。
Note: Typing 'features' in the Start Menu search will also get you there. 注意:在“开始”菜单搜索中键入“功能”也可以帮助您。
When the Turn Windows features on or off dialog appears, navigate to 打开或关闭 “ 打开Windows功能”对话框时,导航到
World Wide Web Services --> Application Development Features 万维网服务 - > 应用程序开发功能
and make sure ASP.NET is checked. 并确保选中ASP.NET 。
Once this was done the aspnet_regiis -ir command worked perfectly and I could run and debug ASP.NET apps on my machine. 完成此操作后, aspnet_regiis -ir命令工作正常,我可以在我的机器上运行和调试ASP.NET应用程序。 Hope this helps. 希望这可以帮助。
set IIS to run in 32 bit mode 将IIS设置为以32位模式运行
http://learn.iis.net/page.aspx/201/32-bit-mode-worker-processes/ http://learn.iis.net/page.aspx/201/32-bit-mode-worker-processes/
Try running aspnet_regiis after that is done. 完成后尝试运行aspnet_regiis。 Use the 32 bit version of aspnet_regiis. 使用32位版本的aspnet_regiis。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.