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

Unable to open the Web project

Error when opening a solution with a web services project in it:

"Unable to open the Web project 'myproj'. The file path 'c:\code\myservice'
does not correspond to the URL 'http://localhost/myservices'. The two need to
map to the same server location. HTTP Error 404: Object Not Found"

First, this error comes up on a system that is serving other web services
just fine.
Second, the main issue here is project collaboration. We use CVS for
revision control and when checking out the web services project on a machine
that did not originally create it, this error occurs. We can force a mapping
in IIS to the correct folder but other errors arise from that.

Another issue is that I cannot seem to force the project to look at my
server for the code. I renamed 'localhost' in the webinfo file to my server
name and cannot seem to get the system to see it. I do a search through all
my files for localhost and nothing returns, yet, when I turn off my IIS
server (for testing) and load the project it still looks to localhost - not
my server name. I need to get this working so that when someone checks out
the webservices code, they can use it seemlessly.

Please advise.
--
Brad Eck
<a href="http://www.sitesdynamic.com">SitesDynamic</a>
<a href="http://www.basketsetcetera.com">Baskets Etcetera</a>
Jul 21 '05 #1
4 2755
1. As far as I know you will have to have your directory structures match
the solution structure on all machines... period... end of storry. So if the
Source Safe Structure is $\Solution\Project1 set the root ($) working folder
to your C-drive and and have everyone do the same.
2. Create your virtual directory before getting latest version. Manually
create the correct files and manually create the virdir. If you already got
latest version delete all local files or at the very least the proj file.
3. What other errors arise when you force a mapping?
4. It sounds like what you are trying to do with the localhost mod is set
up one machine that everyone develops off of and checks in and out to rather
than their own local machine. If so, try opening the solution from the
network share of the shared machine not from source safe( I am guessing here
that that is what you are doing). My suggestion would be to develop locally
and do continuous builds to the shared machine if you need to for demos or
whatever. But it I might have a better suggestion if you can flesh out your
explanation of the problem a little more.


"Brad" wrote:
Error when opening a solution with a web services project in it:

"Unable to open the Web project 'myproj'. The file path 'c:\code\myservice'
does not correspond to the URL 'http://localhost/myservices'. The two need to
map to the same server location. HTTP Error 404: Object Not Found"

First, this error comes up on a system that is serving other web services
just fine.
Second, the main issue here is project collaboration. We use CVS for
revision control and when checking out the web services project on a machine
that did not originally create it, this error occurs. We can force a mapping
in IIS to the correct folder but other errors arise from that.

Another issue is that I cannot seem to force the project to look at my
server for the code. I renamed 'localhost' in the webinfo file to my server
name and cannot seem to get the system to see it. I do a search through all
my files for localhost and nothing returns, yet, when I turn off my IIS
server (for testing) and load the project it still looks to localhost - not
my server name. I need to get this working so that when someone checks out
the webservices code, they can use it seemlessly.

Please advise.
--
Brad Eck
<a href="http://www.sitesdynamic.com">SitesDynamic</a>
<a href="http://www.basketsetcetera.com">Baskets Etcetera</a>

Jul 21 '05 #2
Well, first, I guess I am trying to find the thing we did or didn't do
before. We have other projects implemented in the same way and checked in but
we didn't see to have the same issues on those projects - just this one.

What frustrates me is my test - pointing it to my server - doesn't work
because it ALWAYS looks to localhost no matter what I try. Multiple people
will be working on these web services so to require a central server is not
viable for us.

I will do it, but what is the diff of when you create the virtual dir?

"force a mapping" - what do you mean? The only thing I forced was changing
the server name in the webinfo file from localhost to my computer name to
force the other machine to look to my computer - this was only done for a
test. We need to run local most of the time.

More info - I completely deleted everything related off my machine and
removed the virtual directory and started over. I checked everything out,
created the VD and then opened the project and all was well on my machine. I
just cannot figure why this would be different on someone else's machine -
and if it is, what file I need to adjust to get it right.

"Derek" wrote:
1. As far as I know you will have to have your directory structures match
the solution structure on all machines... period... end of storry. So if the
Source Safe Structure is $\Solution\Project1 set the root ($) working folder
to your C-drive and and have everyone do the same.
2. Create your virtual directory before getting latest version. Manually
create the correct files and manually create the virdir. If you already got
latest version delete all local files or at the very least the proj file.
3. What other errors arise when you force a mapping?
4. It sounds like what you are trying to do with the localhost mod is set
up one machine that everyone develops off of and checks in and out to rather
than their own local machine. If so, try opening the solution from the
network share of the shared machine not from source safe( I am guessing here
that that is what you are doing). My suggestion would be to develop locally
and do continuous builds to the shared machine if you need to for demos or
whatever. But it I might have a better suggestion if you can flesh out your
explanation of the problem a little more.


"Brad" wrote:
Error when opening a solution with a web services project in it:

"Unable to open the Web project 'myproj'. The file path 'c:\code\myservice'
does not correspond to the URL 'http://localhost/myservices'. The two need to
map to the same server location. HTTP Error 404: Object Not Found"

First, this error comes up on a system that is serving other web services
just fine.
Second, the main issue here is project collaboration. We use CVS for
revision control and when checking out the web services project on a machine
that did not originally create it, this error occurs. We can force a mapping
in IIS to the correct folder but other errors arise from that.

Another issue is that I cannot seem to force the project to look at my
server for the code. I renamed 'localhost' in the webinfo file to my server
name and cannot seem to get the system to see it. I do a search through all
my files for localhost and nothing returns, yet, when I turn off my IIS
server (for testing) and load the project it still looks to localhost - not
my server name. I need to get this working so that when someone checks out
the webservices code, they can use it seemlessly.

Please advise.
--
Brad Eck
<a href="http://www.sitesdynamic.com">SitesDynamic</a>
<a href="http://www.basketsetcetera.com">Baskets Etcetera</a>

Jul 21 '05 #3
1. As far as I know you will have to have your directory structures match
the solution structure on all machines... period... end of storry. So if the
Source Safe Structure is $\Solution\Project1 set the root ($) working folder
to your C-drive and and have everyone do the same.
2. Create your virtual directory before getting latest version. Manually
create the correct files and manually create the virdir. If you already got
latest version delete all local files or at the very least the proj file.
3. What other errors arise when you force a mapping?
4. It sounds like what you are trying to do with the localhost mod is set
up one machine that everyone develops off of and checks in and out to rather
than their own local machine. If so, try opening the solution from the
network share of the shared machine not from source safe( I am guessing here
that that is what you are doing). My suggestion would be to develop locally
and do continuous builds to the shared machine if you need to for demos or
whatever. But it I might have a better suggestion if you can flesh out your
explanation of the problem a little more.


"Brad" wrote:
Error when opening a solution with a web services project in it:

"Unable to open the Web project 'myproj'. The file path 'c:\code\myservice'
does not correspond to the URL 'http://localhost/myservices'. The two need to
map to the same server location. HTTP Error 404: Object Not Found"

First, this error comes up on a system that is serving other web services
just fine.
Second, the main issue here is project collaboration. We use CVS for
revision control and when checking out the web services project on a machine
that did not originally create it, this error occurs. We can force a mapping
in IIS to the correct folder but other errors arise from that.

Another issue is that I cannot seem to force the project to look at my
server for the code. I renamed 'localhost' in the webinfo file to my server
name and cannot seem to get the system to see it. I do a search through all
my files for localhost and nothing returns, yet, when I turn off my IIS
server (for testing) and load the project it still looks to localhost - not
my server name. I need to get this working so that when someone checks out
the webservices code, they can use it seemlessly.

Please advise.
--
Brad Eck
<a href="http://www.sitesdynamic.com">SitesDynamic</a>
<a href="http://www.basketsetcetera.com">Baskets Etcetera</a>

Jul 21 '05 #4
Well, first, I guess I am trying to find the thing we did or didn't do
before. We have other projects implemented in the same way and checked in but
we didn't see to have the same issues on those projects - just this one.

What frustrates me is my test - pointing it to my server - doesn't work
because it ALWAYS looks to localhost no matter what I try. Multiple people
will be working on these web services so to require a central server is not
viable for us.

I will do it, but what is the diff of when you create the virtual dir?

"force a mapping" - what do you mean? The only thing I forced was changing
the server name in the webinfo file from localhost to my computer name to
force the other machine to look to my computer - this was only done for a
test. We need to run local most of the time.

More info - I completely deleted everything related off my machine and
removed the virtual directory and started over. I checked everything out,
created the VD and then opened the project and all was well on my machine. I
just cannot figure why this would be different on someone else's machine -
and if it is, what file I need to adjust to get it right.

"Derek" wrote:
1. As far as I know you will have to have your directory structures match
the solution structure on all machines... period... end of storry. So if the
Source Safe Structure is $\Solution\Project1 set the root ($) working folder
to your C-drive and and have everyone do the same.
2. Create your virtual directory before getting latest version. Manually
create the correct files and manually create the virdir. If you already got
latest version delete all local files or at the very least the proj file.
3. What other errors arise when you force a mapping?
4. It sounds like what you are trying to do with the localhost mod is set
up one machine that everyone develops off of and checks in and out to rather
than their own local machine. If so, try opening the solution from the
network share of the shared machine not from source safe( I am guessing here
that that is what you are doing). My suggestion would be to develop locally
and do continuous builds to the shared machine if you need to for demos or
whatever. But it I might have a better suggestion if you can flesh out your
explanation of the problem a little more.


"Brad" wrote:
Error when opening a solution with a web services project in it:

"Unable to open the Web project 'myproj'. The file path 'c:\code\myservice'
does not correspond to the URL 'http://localhost/myservices'. The two need to
map to the same server location. HTTP Error 404: Object Not Found"

First, this error comes up on a system that is serving other web services
just fine.
Second, the main issue here is project collaboration. We use CVS for
revision control and when checking out the web services project on a machine
that did not originally create it, this error occurs. We can force a mapping
in IIS to the correct folder but other errors arise from that.

Another issue is that I cannot seem to force the project to look at my
server for the code. I renamed 'localhost' in the webinfo file to my server
name and cannot seem to get the system to see it. I do a search through all
my files for localhost and nothing returns, yet, when I turn off my IIS
server (for testing) and load the project it still looks to localhost - not
my server name. I need to get this working so that when someone checks out
the webservices code, they can use it seemlessly.

Please advise.
--
Brad Eck
<a href="http://www.sitesdynamic.com">SitesDynamic</a>
<a href="http://www.basketsetcetera.com">Baskets Etcetera</a>

Jul 21 '05 #5

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

Similar topics

3
by: David N | last post by:
I got a solution that contains about 30 projects, three of which cannot be open. When I open the project, I always receive the error message "Unable to get the project file from the Web Server" ...
2
by: vince | last post by:
I installed the Portal Starter Kit (from www.asp.net) on a win 2003 server running IIS 6.0 and SQL Server 8.0, and it works fine using integrated authentication. However, I'm unable to open the...
1
by: soni29 | last post by:
hi, i'm running windows 2000 and Internet Information Services 5.0, that's the version that the help file for iis shows, i'm using Visual Studio ..Net 2002 (version 7) but whenever i try to create...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
8
by: Rob | last post by:
I asked this question before but having had no response i'll try to simplify the description and hope someone can help this time. Basically my problem is that i'm getting the error "Unable to...
1
by: Winshent | last post by:
I have recently upgraded my desktop from windows 2000 to XP Pro. I backed up my project by simply copying accross the files in the project. I have changed the default virtual directory from...
3
by: alan_coffman2004 | last post by:
Opening an ASP.NET VS2002 project in VS2003, am getting this error: "Unable to open Web project 'MyProject'. The file path 'c:\inetpub\wwwroot\MyProject' does not correspond to the URL...
7
by: Jed | last post by:
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the...
11
by: benoitc | last post by:
I've been having a problem debugging an ASP.NET 1.1 application on an existing Windows XP/Visual Studio 2003 workstation that I've inherited from somebody else. The application builds fine, but...
2
by: Sagar | last post by:
Hi Iam unable to open my ASP.Net web project HRMS.vbproj suddenly in VS.Net 2003 I am getthing this error. Unable to open Web project '/'. The file path 'D:\company\ASP\Web' does not...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.