c# - How to correctly publish and update an ASP.NET app in IIS -
i have issue every time update asp.net application on iis server. issues are:
- i error telling me turn custom errors off
<customerrors mode="off"/>
- the default web site redirect @ tld redirects url indefinitely
- i created removed , replaced app or redirect
i have asp.net 4.5 framework application. using visual studio 2012 create web application. using windows server 2008 r2 64 bit, iis 7 role installed. every last option iis role checked , installed.
once iis , running, created directory in c:\inetpub\wwwroot , put published asp.net app in directory created. added app via iis manager.
after can browse app www.example.com/app. current app working. since want types in tld in web browser redirected, created http redirect via iis manager under default web site. creates web.config
file in c:\inetpub\wwwroot redirect in it.
after of done works great. until want update asp.net code. delete old files c:\inetpub\wwwroot\app , copy in new files. after nothing works right anymore. have tried remove app via iis re-adding it. removed http redirect, , re-added it. no matter root of site www.example.com , web app won't work. have remove iis role , reinstall it. once current code works, , normal.
can please tell me how can update code having reinstall iis every time?
once created the redirect in iis, created redirect in web.config file in c:\inetpub\wwwroot
little did know creates 1 in app folder. till try update code. since erase files in folder when publish (or @ least pobably settings) file removed.
you have append publish files not delete them since ask iis redirect :)
Comments
Post a Comment