Push to IIS - actransitorg/ACTransit.Training GitHub Wiki

How to publish to IIS

Here is the steps, assuming you are using windows client, windows 7, 10 or… and not a windows server:


  1. Open IIS and add an application under the Default Web Site.
  2. Make sure the Application pool assigned to the application is using .net version 4.
  3. Configure the application on your IIS to use windows authentication.
  4. Create databases required for the application to run on your SQL server (or SQL server express)
  5. Change the web.config file to point to the new databases. Please note that you probably need to change the connection string not to use integrated security!
  6. Publish the web application to your IIS. Please note you have to configure your IIS correctly. As a hint, please make sure the following features are installed: - Windows Authentication, Static contents.
  7. Make sure your ASP.Net is registered with IIS. Read herefor more information.
  8. Open up your firewall to allow incoming traffic to port 80 (or 443 in case of SSL)
  9. Open up internet browser and browse to the application (http://[your ip]/[application name] )
  10. In case of error, always read the errors and remember to use F12, Developer Tools, for better understanding of what is going on with your page.

There are very many good documents explaining in details how to publish your asp.net web application into iis. Here are some:
http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis
https://docs.asp.net/en/latest/publishing/iis.html
https://docs.asp.net/en/latest/publishing/iis-with-msdeploy.html

⚠️ **GitHub.com Fallback** ⚠️