IIS管理器无法在.NET 4应用程序上配置.NET编译 [英] IIS Manager can't configure .NET Compilation on .NET 4 Applications

查看:121
本文介绍了IIS管理器无法在.NET 4应用程序上配置.NET编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在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屋!

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