mardi 2 août 2016

IIS tips

 Step-by-step IIS configuration guide

  •  If the following error occurs, go to applicationHost.config file in C:\Windows\System32\inetsrv\config  and set overrideModeDefault properties to "Allow" for handlers section :
  <section name="handlers" overrideModeDefault="Allow" />

  • If the following error occurs, 
proceed to ASP.Net component set up:
  • Launch :  c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –i to register the previous ASP.NET installation with IIS
  • If authorization are not set yet, activate them :
    1. Open IIS Manager and navigate to the site to manage.
    2. In Features View, double-click Directory Browsing.
In the Actions pane, click Enable to enable the Directory Browsing feature .
  •  If the following error occurs : 
    Error Message : Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list
    Installation of CGI and ISAPI extensions is required  :
  • The following errors requires addition of the folder permission
    Error Message : The current identity does not have write access to ‘C:\Windows\Microsoft.NET\v4.0.30319\Temporary ASP.NET Files’

  1. Problem with HTTPPost request in IIS7
    1- ASP.NET MVC4 not handling POST requests in IIS7 integrated mode
    The default configuration inserts this in the web.config:
    The problem is the "*." path, If you change this to "*", then all requests will be handled by the ExtensionlessUrlHandler, including those to static files which will not be served anymore. So the solution is: Remove the POST verb from the handler entries and add new entries for the ExtensionlessUrlHandler with the path set to "*" and only for POST requests:
    Ideally remove the ones you don't need (x86 and x64 in classic vs. integrated pipeline).
    2- IIS 7  allow POST requests to html files
    Maybe 7  routing is different in respect to handing off a POST to an action that has no argument that can accept the post form data.
     ==> For this Reason I prefer working with Windows Azure

1 commentaire:

  1. Erreur HTTP 500.19 - Internal Server Error The account not appear in the IIS manager because you didn't check its check Box in IIS to do this in windows 7 follow the steps

    Open control panel
    Click on” program” link (not uninstall programs)
    Click” turn windows features on/off” link
    locate” Internet Information services IIS” in the pop up window and expand its node
    Expand the” World Wide Web Service” node
    Expand “Application Development Features” node
    check the check box of”ASP.NET”
    Then click ok button