473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Error on opening ASP.NET Project

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!
Jul 21 '05 #1
0 1550

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: amusa | last post by:
When opening a visual basic project type and choosing an ASP .NEt template getting this error The Web Server Reported the following error when attempting to create or open the web project loaded...
1
by: DavidE | last post by:
Hi, Recently, when I try to open files in web projects with visual interdev 6 I get this error message: Server error: Error 2 opening registry key Software/microsoft/shared tools/web server...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
5
by: Brad | last post by:
I'm running 2003 server std, have multiple web sites and use host headers to differentiate the web sites (I'm on a domain using DHCP so can't use static IP's). I'm using VS2003 to create and...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
16
by: Paul S. Natanson | last post by:
What is a Null Reference error and how do I fix it? My newly installed VB.Net2003 gives me a "Microsoft Development Environment" error message box EVERY time I try to run/start ANY project -...
0
by: Scott | last post by:
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'. ...
1
by: PK9 | last post by:
I am receiving the following error in Visual Studio 2003: "the web server reported the following error when attempting to create or open the web project HTTP/1.1 403 Access Forbidden" I am...
1
by: =?Utf-8?B?cnNvbWFzdW5kYXI=?= | last post by:
Hi, I got the following error while trying to run the project in ASP.Net 2003 to one of my application in my machine. I think some where im loosing the IIS configurations. Error Detail:...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.