473,410 Members | 1,875 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,410 software developers and data experts.

Error opening web project on pc with multiple sites

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 maintain my web projects. With
that said, on some projects I open an existing or create a web project,
work with for awhile, close it....and when I attempt to reopen it I get the
following message:

Unable to open Web project 'myapp'. The file path
'C:\Inetput\appserver\myapp' does not correspond
to the URL 'http://localhost:/myapp'. The two need to mapto
the same server location.
HTTP Error 404: Not Found

The project "myapp" in this case is on the web site appserver, which is
under c:\inetpub\appserver. I don't use Localhost, which is in the wwwroot
folder, for any of my web projects. VS or IIS seems to be confused as to
which web site the project is on. The project's webinfo file points to the
correct location. What else could I check for, tweak, fix???
Brad

Nov 18 '05 #1
5 1849
Hi Brad,

From your description, you have multi-websites on a certain server and when
you try opening a cetain web app
under a certai site , you countered the following error
============================
Unable to open Web project 'myapp'. The file path
'C:\Inetput\appserver\myapp' does not correspond
to the URL 'http://localhost:/myapp'. The two need to mapto
the same server location.
HTTP Error 404: Not Found
=================================
which indicate that the vs.net has search for the wrong url path to open
the certain web project(your project is not under the "Localhost" site) ,
yes?

Based on my experience, I think this is problem may due to the webinfo file
of the web project. Generally , the VS.NET IDE will use the
.csproj.webinfo file to look for the url path of the web project when we
click the project file to open a site. So please go to the web
application's folder "C:\Inetput\appserver\myapp" and find the
".csproj.webinfo" file(it's a hidden file) . And open it to see whether the
path is the specified to the correct value. If not ,change it the the
corresponding url of the web application.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #2
Steven,
I wrote in my initial post that the project's webinfo file points to the
correct location.

Brad
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Fh**************@cpmsftngxa10.phx.gbl...
Hi Brad,

From your description, you have multi-websites on a certain server and when you try opening a cetain web app
under a certai site , you countered the following error
============================
Unable to open Web project 'myapp'. The file path
'C:\Inetput\appserver\myapp' does not correspond
to the URL 'http://localhost:/myapp'. The two need to mapto the same server location.
HTTP Error 404: Not Found
=================================
which indicate that the vs.net has search for the wrong url path to open
the certain web project(your project is not under the "Localhost" site) ,
yes?

Based on my experience, I think this is problem may due to the webinfo file of the web project. Generally , the VS.NET IDE will use the
csproj.webinfo file to look for the url path of the web project when we
click the project file to open a site. So please go to the web
application's folder "C:\Inetput\appserver\myapp" and find the
".csproj.webinfo" file(it's a hidden file) . And open it to see whether the path is the specified to the correct value. If not ,change it the the
corresponding url of the web application.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3
HI Brad,

I'm sorry for missing your description on the webinfo file. Since the
webinfo file has beed specified the correct path. I'd like to confirm the
following things:

1. When you create the webproject, what path have you specified? You can
tell me the host header of the site and the correct url it should use.

2. When you close the project and try reopening it, how do you open it? Use
the VS.NET's open project on web and specify url? or directory go to the
physical folder and click the .csproj file or the .sln solution file? If
use solution file , the solution file also contain the url info, you may
also have a check.

3. Also, if we visit the web application via the host header address in IE,
is it working well? If so, I think problem is likely caused by IDE.

If you have any other new findings or any question, please feel free to
post here. thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

Hi Brad,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5
Steven,

Issue had to go on hold for a bit for for other reasons. Our network staff
reconfigured my pc so I now have unique ip addresses for each web site
instead of the host headers I was using. That seems to have made the issue
disappear.

Brad
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:kn*************@cpmsftngxa10.phx.gbl...

Hi Brad,

Have you had a chance to check out the suggestions in my last reply or have you got any further ideas on this issue? If you have anything unclear or if there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #6

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

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
51
by: nospam | last post by:
THIS IS the DOTNETJUNKIES MESSAGE ------------------------- We're Sorry As many of you know we have recently launched SqlJunkies.com. We have overhauled our runtime and will be using it on...
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'. ...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
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...
4
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
2
by: Matt Hamilton | last post by:
I have an application page with a datagrid with a checkbox on each row. The user should check the rows they want to modify and then click a button. When the button is clicked, I have a Click...
1
by: ewanm1 | last post by:
On opening IE7 I get a server application unavailable error instead of my homepage. If I click home or refresh my homepage then loads. I have tried numerous different sites, including intranet and...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.