By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,289 Members | 1,596 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,289 IT Pros & Developers. It's quick & easy.

Error on opening ASP.NET Project

P: n/a
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.


and our file:

<authentication mode="Forms">
<forms loginUrl="login.aspx" timeout="5" path="/" protection="All" />

<deny users="?,*" />

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">
<allow users="?"/>

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

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.