Web site down after application updatehttp://forums.asp.net/t/1771047.aspx/1?Web+site+down+after+application+updateMon, 20 Feb 2012 05:23:19 -050017710474838881http://forums.asp.net/p/1771047/4838881.aspx/1?Web+site+down+after+application+updateWeb site down after application update <p>We have an ASP.Net 3.5 web site running on IIS6. The network people changed the IP address of the mail server and emails sent from this site stopped working. We found some code (developed by devs no longer at the company) where the IP address of the mail server was hard coded, changed it, recompiled, then deployed to the local machine.</p> <p>Back on the server, we copied the entire web site to another folder as backup, then copied the newly compiled site onto the server, stopped and started the site in IIS Manager in MMC. All we got was a cryptic error. We set customErrors mode to RemoteOnly and stopped/started the site and browsed to the site from the server. The message was still cryptic that customErrors needed to be set.</p> <p>We then copied the original files back into the application folder and tried browsing to the site. The error this time was that web.config was not accessible. What the crap? Just copying files. (turns out, yes...when copying to a folder outside the site hierarchy, the files get the rights of the new folder).</p> <p>We've tried everything, even giving full rights to the full folder hierarchy to everything IIS and the site use, restarted IIS, rebooted server. We're totally stumped and need some help urgently.</p> <p>Questions: 1) How do we get decent error message out of this thing? We've tried all the mode settings of customErrors with no luck. I don't like the risk of installing Elmah or something else at this point.</p> <p>2) What permissions do we need for this thing to run? We've tried everything we can think of.</p> <p>Thanks</p> 2012-02-18T15:37:17-05:004839698http://forums.asp.net/p/1771047/4839698.aspx/1?Re+Web+site+down+after+application+updateRe: Web site down after application update <p>Hi there,</p> <p></p> <p>please clarify what you mean by &quot;criptic error&quot;. What exactly do you see?</p> <p></p> <p>some things to consider</p> <p>1. Yes, pasting folders might reset permissions. Check the site properties in IIS folder to see the user running the app. That guy should have rights.</p> <p>2. When you copied the modified code, did you paste the whole folder? most of the times some files dont have to be copied from dev environment. Files such as web.config must be kept as most of the times dev and prod have different settings. Make su such .config files are their original non-dev versions</p> <p>3- remove al &quot;*.pdb&quot; files from BIN folder</p> 2012-02-19T13:27:12-05:004839834http://forums.asp.net/p/1771047/4839834.aspx/1?Re+Web+site+down+after+application+updateRe: Web site down after application update <p>cryptic, meaning the &quot;yellow screen of death&quot;. Default ASP.Net error page that tells you NOTHING. I even changed customErrors.</p> <p>We've actually made a bit of progress, but now the Windows Event Log gets the error &quot;An error occurred executing the configuration section handler for system.web/identity. I've triple checked the &lt;identity&gt; section of web.config and it is correct.</p> 2012-02-19T16:41:53-05:004840317http://forums.asp.net/p/1771047/4840317.aspx/1?Re+Web+site+down+after+application+updateRe: Web site down after application update <p>hi craigberg,<br> <br> Usually, you can get an error message: &quot;&nbsp;<span>An error occurred executing the configuration section handler for system.web/identity&quot; if the ASP.NET version / application pool is incorrect. Please double check</span></p> 2012-02-20T05:23:19-05:00