简体   繁体   中英

Changing compilation debug to false in the web.config file in an asp.net application is giving me the page isnt redirecting properly

I changed the compilation debug from true to false and now when I try to access the site, I get the error page isnt redirecting properly. The site is wrapped in SSL and it is deployed with debug = true and works fine but after doing some research I learned that it should be debug = false.

The error description is that the webpage redirects you in an endless loop. I am going to the home page and I dont know where the endless loop is coming from.

When you change any file in hosted web app, IIS drops application pool and with it all session states. So if you are storing something in the session oyour change may trigger some logic in your application when you are relying on session variables.

Hard to tell a root cause, but you should try setting the deployment retail=true which keeps you from having to change the web.config and does other 'production' changes as well.

http://msdn.microsoft.com/en-us/library/ms228298(v=vs.80).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM