注册.NET 4.5 IIS 10 Windows 10 [英] Register .NET 4.5 IIS 10 Windows 10
问题描述
我已经看了几个小时了,我无法修复它。
我有一个.NET 4.5网站和API而且我在Windows 10上工作。我安装了VS2012 Pro并安装了VS2015社区。 p>
检查Web平台安装程序,它表明我已经安装了.NET 4.5。
每当我打开API或网站解决方案时,它都会告诉我.NET 4.5& IIS没有配置,我的应用程序也不会运行。
我已经尝试按照MS运行这些命令:
dism / online / enable-feature / all / featurename:IIS-ASPNET45
我仍然报告了一些错误。我读过的所有内容都表明上述命令应该解决问题,但事实并非如此。除了上面列出的命令之外,我在主题上找不到任何其他内容。
似乎有很多人都有这个问题都说同样的事但没有工作解决方案(至少对我而言至今)。 .NET 4.5未在向Windows添加功能
中列出。
如何使ASP工作以便ASP .NET 4.5和IIS有效吗?
似乎这实际上是一个bug。尽管命令实际工作,但是一旦安装了.NET 4.6,旧版Visual Studio就会遇到问题。
Microsoft已针对所有受影响的Microsoft Visual Studio版本发布了修补程序。
- VS2013 - https://support.microsoft.com/en-us/kb/2994375
- VS2012 - https://support.microsoft.com/en-us/kb/3002339
- VS2010 - https://support.microsoft.com/en-us/kb/3002340
I've been looking at this for a few hours now and I cannot get it fixed.
I have a .NET 4.5 web site and API and I'm working on Windows 10. I have VS2012 Pro installed and VS2015 Community installed.
Checking the Web Platform Installer it states that I already have .NET 4.5 installed.
Everytime I open the API or Web Site solutions it informs me that .NET 4.5 & IIS aren't configured and my applications wont run.
I've tried running these commands as per MS:
dism /online /enable-feature /all /featurename:IIS-ASPNET45
And I still get the some error being reported. Everything I have read states that the above command should fix the issue but it doesn't. I can't find anything else on the topic other than the command listed above.
Seems there are a lot of people with this issue all saying the same thing but no working solution (at least for me so far). .NET 4.5 isn't listed in Add Features to Windows
.
How do I get this working so that ASP.NET 4.5 and IIS work?
Seems this is actually a bug. Despite the command actually working older version of Visual Studio can encounter an issue once .NET 4.6 is installed.
Microsoft has published a fix for all impacted versions of Microsoft Visual Studio.
- VS2013 - https://support.microsoft.com/en-us/kb/2994375
- VS2012 - https://support.microsoft.com/en-us/kb/3002339
- VS2010 - https://support.microsoft.com/en-us/kb/3002340
这篇关于注册.NET 4.5 IIS 10 Windows 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!