A strange problem has been encountered today;
A Web site, using the VS self-asp.net Development server startup is fine. However, you cannot access it after you start with IIS Express.
Use IE to view the site to find out what problems, using Chrome report error ' This page contains redirect loops '.
It seems to be the code somewhere wrong, check the code, login page has such a paragraph;
protected void Page_Load (object sender, EventArgs e)
{
formsauthentication.signout ();
String tttt = request.querystring["ReturnUrl"];
if (tttt!= "/luozhuang/default.aspx")
{
Response.Redirect ("...)". /default.aspx ", True);
}
It appears that the problem in the access path is written dead. Because the root that IIS Express uses by default is/, the root of the ASP.net Development server setting is/luozhuang.
The solution is to set up the IIS Express;
</site>
<site name= "Bsim" id= "2048214810" >
<application path= "/" applicationpool= " Clr2integratedapppool ">
<virtualdirectory path="/"physicalpath=" E:\luozhuang "/>
</ application>
<application path= "/luozhuang" applicationpool= "Clr2integratedapppool" >
< VirtualDirectory path= "/" physicalpath= "E:\luozhuang"/>
</application>
<bindings>
<binding protocol= "http" bindinginformation= "*:15792:localhost"/>
</bindings>
</site >
And then use Http://localhost:15792/luozhuang to visit the good, hey these program ape is also let people have no language.