The error is "The Web Server reported the following error when
attempting to create or open the Web project located at the following
URL: "http://localhost". 'The HTTP redirect request failed'.
There is a value in the web.config that we use to auto login us
developers so that we are not prompted to go to our login page each
time we open the website for debugging. Our login page looks for this
particular string, and logs us in accordingly. This works great and
saves us time while developing.
However, if we leave this value in web.config when we open the
project, we get the above error. It "seems" as if when visual studio
is opening the project, it is being redirected to the login page.
Then it errors out when it sees our code that accesses that string
from web.config (which hasn't loaded yet).
This is just a stab, and I can't seem to figure out how to fix it.
Here is what our project looks like.
/dir1
/dir2
/login.aspx
/project.vbproj
/project.webinfo
/web.info
and our web.info file:
<authentication mode="Forms">
<forms loginUrl="login.aspx" timeout="5" path="/" protection="All" />
</authentication>
<authorization>
<deny users="?,*" />
</authorization>
http://localhost/project.vbproj is mapped to the /project.vbproj I
wrote above.
I have already tried writing this to NOT authenticate on a particular
project file (i did this for al vbproj files and login to no avail) :
<location path="Portal.vbproj">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
To get around this, we just change the web.config string name before
we open the project, then change it back.
You can also email at scottelkin-noooospaaaam-at-hotmail.com
Thanks!