Wednesday, 12 May 2021

Deploying in IIS

 Asp.net MVC

  • depend on .net framework version. Register IIS using below command
    • %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -u
    • %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i

    • Reset IIS
    • if you are getting something related to server not reachable or could not able to reach
      • check for web site bindings 
      • if same port has been assigned to some other site then this could cause unexpected behavior
      • Try stopping all other site even the default one and only keep the one started which you are trying to deploy
    • 404 (check developer tools network tab) - if you are getting 404 that means server is reachable the route is incorrect or is not defined in your web app
    • 500 (check developer tools network tab)  - if you are getting 500 that means some error from application. Check application log for more details
    • Check website physical path security settings. It should have appropriate rights such as 
      • IIS_IUSRS

     Asp.net Core
    • Reset IIS
    • check IIS binding
    • physical path security

    No comments:

    Post a Comment

    Search This Blog

    Creating your first "Alexa" Skill

    Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...