简体   繁体   English

在asp.net应用程序的web.config文件中将编译调试更改为false,这使页面无法正确重定向

[英]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. 我将编译调试从true更改为false,现在当我尝试访问该站点时,错误页面没有正确重定向。 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. 该站点使用SSL封装,并且使用debug = true进行部署并且可以正常工作,但是经过一些研究,我了解到它应该是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. 当您更改托管Web应用程序中的任何文件时,IIS会删除应用程序池以及所有会话状态。 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. 很难说出根本原因,但是您应该尝试设置部署的零售值= true,这使您不必更改web.config以及进行其他“生产”更改。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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