none
How to enable ASP.NET v4 in IIS7 using Admin web Mode

    Question

  • Hi,

    I want to enable ASP.NET v4 in IIS7 using Admin web Mode  through code.

     

     

    Your input will be appriciated .

    Thanks in advance.

     

     


    cpsingh
    Tuesday, November 23, 2010 4:30 AM

Answers

  • .NET 4 (including ASP.NET) just works by default.  What exactly do you need?

    Tuesday, November 23, 2010 8:40 AM
  • Steve,

    I think C.P. is talking about isapi filters and i just logged in to one of my Web role instance via RDP (using admin mode) and checked. It says "not allowed" for ASP.NET v4

     

    Check the screenshot

     


    TechyFreak | Mobile Development Resources
    Monday, November 29, 2010 11:41 AM
  • Steve,

    I think C.P. is talking about isapi filters and i just logged in to one of my Web role instance via RDP (using admin mode) and checked. It says "not allowed" for ASP.NET v4

     

    Check the screenshot

     


    TechyFreak | Mobile Development Resources

    If this is what C.P. mean you're able to modify the C:\Windows\System32\inetsrv\config\applicationHost.config file in a start up task with elevated privilege or manually do that via RDP:

     

     <isapiCgiRestriction>
                    <add path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v2.0.50727" description="ASP.NET v2.0.50727" />
                    <add path="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v2.0.50727" description="ASP.NET v2.0.50727" />
                    <add path="D:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v4.0.30319" description="ASP.NET v4.0.30319" />
                    <add path="D:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v4.0.30319" description="ASP.NET v4.0.30319" />
                </isapiCgiRestriction>


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Tuesday, November 30, 2010 9:46 AM

All replies

  • .NET 4 (including ASP.NET) just works by default.  What exactly do you need?

    Tuesday, November 23, 2010 8:40 AM
  • Steve,

    I think C.P. is talking about isapi filters and i just logged in to one of my Web role instance via RDP (using admin mode) and checked. It says "not allowed" for ASP.NET v4

     

    Check the screenshot

     


    TechyFreak | Mobile Development Resources
    Monday, November 29, 2010 11:41 AM
  • Steve,

    I think C.P. is talking about isapi filters and i just logged in to one of my Web role instance via RDP (using admin mode) and checked. It says "not allowed" for ASP.NET v4

     

    Check the screenshot

     


    TechyFreak | Mobile Development Resources

    If this is what C.P. mean you're able to modify the C:\Windows\System32\inetsrv\config\applicationHost.config file in a start up task with elevated privilege or manually do that via RDP:

     

     <isapiCgiRestriction>
                    <add path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v2.0.50727" description="ASP.NET v2.0.50727" />
                    <add path="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v2.0.50727" description="ASP.NET v2.0.50727" />
                    <add path="D:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v4.0.30319" description="ASP.NET v4.0.30319" />
                    <add path="D:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v4.0.30319" description="ASP.NET v4.0.30319" />
                </isapiCgiRestriction>


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Tuesday, November 30, 2010 9:46 AM