IIS管理器无法在.NET 4应用程序上配置.NET编译 [英] IIS Manager can't configure .NET Compilation on .NET 4 Applications
问题描述
我试图在IIS管理器中配置.NET编译设置,但我看到的只是一条错误消息,告诉我C:\windows\Microsoft.NET\Framework64\v.4.0.30319\config\
中web.config
文件中存在无法识别的元素.
i tried to configure the .NET Compilation Settings in the IIS Manager but all i see is an Error Message that tells me that there is an unrecognized element in the web.config
file in C:\windows\Microsoft.NET\Framework64\v.4.0.30319\config\
.
对我来说有点奇怪,我在Windows 7系统和Windows Server 2008 R2上都收到此错误消息.
A little bit strange for me is, that i get this error message on my Windows 7 System and also on a Windows Server 2008 R2.
我在搜索中发现的所有内容都是此博客条目 http://olegtarasov.me/2010/09/nastrojka-iis-7-5-i-asp-net-4/.
我尝试了aspnet_regiis -i -enable
命令,但这对我来说不是解决方案.
While googling around a little bit all i found is this blog entry http://olegtarasov.me/2010/09/nastrojka-iis-7-5-i-asp-net-4/.
I tried the aspnet_regiis -i -enable
command but that was not the solution for me.
推荐答案
好,我知道了.
问题是,我的系统是64位系统,而我所说的aspnet_regiis
是32位版本.从Framework64目录调用aspnet_regiis
后,一切都很好.
The Problem is, that my systems a 64 Bit systems and the aspnet_regiis
i've called was the 32 Bit Version. After calling aspnet_regiis
from the Framework64 Directory everything was fine.
感谢Scott Hanselman http://www.hanselman.com/blog/ASPNET4BreakingChangesAndStuffToBeAwareOf.aspx
Thanks to Scott Hanselman http://www.hanselman.com/blog/ASPNET4BreakingChangesAndStuffToBeAwareOf.aspx
这篇关于IIS管理器无法在.NET 4应用程序上配置.NET编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!