Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

SQL
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


while other Website for 4.0 Framework works fine because i had registered using
aspnet_regiis
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.
Posted

Add this to your web.config [For running v3.5 as 2.0 - This is for C#.NET] :-

XML
<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>


For VB.NET :-
XML
<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>
 
Share this answer
 
Comments
εїзεїзεїз 8-Aug-12 2:49am    
Thanks
HemendraSingh88 8-Aug-12 2:55am    
Your welcome.
in Basic setting you can set application pool just try this one
 
Share this answer
 
Comments
εїзεїзεїз 7-Aug-12 5:20am    
Thanks for the Post, But in .Net Frame works its showing only Framework 2.0 and Framework 4. I want Framework 3.5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900