IIS 7.5错误HTTP错误404.17-未找到 [英] IIS 7.5 Error HTTP Error 404.17 - Not Found
本文介绍了IIS 7.5错误HTTP错误404.17-未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此先感谢,
我有一个在ASP.net 3.5中开发的网站,当我将其部署在IIS 7.5上时出现以下错误
Thanks in advance,
I have one website which is developed in ASP.net 3.5, when I deploy it on IIS 7.5 then it gives following error
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
Most likely causes:
The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler
而其他适用于4.0 Framework的网站则可以正常运行,因为我已经使用
注册了
while other Website for 4.0 Framework works fine because i had registered using
aspnet_regiis
位于Framework 4.0文件夹中.
有什么解决方案可以在IIS中同时使用两个Framework,因为在应用程序池中它仅显示Framework 2.0和4.0.
which is in Framework 4.0 folder.
Is there any solution that i can use both Frameworks in IIS , because in Application Pool its showing only Framework 2.0 and 4.0.
推荐答案
将此添加到您的web.config [对于将v3.5作为2.0运行-适用于C#.NET]:-
Add this to your web.config [For running v3.5 as 2.0 - This is for C#.NET] :-
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/></compiler>
</compilers>
</system.codedom>
对于VB.NET:-
For VB.NET :-
<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
在基本"设置中,您可以设置应用程序池,只需尝试一个
in Basic setting you can set application pool just try this one
这篇关于IIS 7.5错误HTTP错误404.17-未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文