注册.NET 4.5 IIS 10 Windows 10 [英] Register .NET 4.5 IIS 10 Windows 10

查看:198
本文介绍了注册.NET 4.5 IIS 10 Windows 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看了几个小时了,我无法修复它。



我有一个.NET 4.5网站和API而且我在Windows 10上工作。我安装了VS2012 Pro并安装了VS2015社区。

检查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就会遇到问题。



http://blogs.msdn.com/b/webdev/archive/2014/11/11/dialog-box-may-be-displayed-to-users -when-opens-projects-in-microsoft-visual-studio-after-installation-microsoft-net-framework-4-6.aspx



Microsoft已针对所有受影响的Microsoft Visual Studio版本发布了修补程序。




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.

http://blogs.msdn.com/b/webdev/archive/2014/11/11/dialog-box-may-be-displayed-to-users-when-opening-projects-in-microsoft-visual-studio-after-installation-of-microsoft-net-framework-4-6.aspx

Microsoft has published a fix for all impacted versions of Microsoft Visual Studio.

这篇关于注册.NET 4.5 IIS 10 Windows 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆