468,140 Members | 1,165 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

Web Service project configuration in Visual Studio 2003.

This is driving me to insanity!!!
I do not have a lot of experience with IIS which probably is not helping but
as far as I can tell I am do things as per the MSDN documentation.

I have a solution in Source Safe that I want to add some web service
projects to.

I create a folder under my solution folder for the new web service project.
I create a virtual directory using IIS and accept the default settings for
security etc.
I use "File->New->Project" and select a C# ASP.Net web service.
I specify "http://localhost/<<my virtual folder>>

Visual Studio.Net creates the new project for me, I do some work on it.
Write the test code everything is just dandy.

Then I use the Visual Studio IDE to add the new project to Source Safe, as
instructed on MSDN, specifying a folder under the solution folder.
All the files get added - everything looks like sweetness and light.

Then I go to a different machine which has the old solution (without the web
service projects) on it.
I create the folders for the new web service projects.
I create the virtual directories using IIS on the new machine.
Then I do a "Get Latest" from Source Safe to get the new solution with the
new web service projects.

When I go to open the solution I get a dialog with a caption "Set Project
Location - << solution name >>"
My three new projects are listed in a list box along with their Source Safe
locations and three new virtual directories with the same names as the ones
I created but suffixed with an _1. I do not want to put the projects in
those virtual folders! I want to put them in the ones I specially created
for the job a few seconds ago.
So I edit the suggested folders and change to the ones that I just created.
When I click OK I get a dialog that says ...
"One or more of the suggested paths are invalid. To open the solution,
specify a valid path for each project."
Well that is just tosh! These are all good vdirs - I created them only two
seconds ago!
Oh well if you do not like the ones I created then I will go with your
ones - so I accept the default names - only to receive a dialog that says..
"Unable to create web project <<vdir>>. The path <<path>> does not
correspond to the URL <<vdir>> The two need to map to the same server
location. HTTP error 404 object not found"

Well thanks a lot! I am stuck - I have wasted soooo much time trying to
work around this stupid issue.
If anyone can help and point me towards a good solution it would be much
appreciated.

TIA

Andy


Nov 21 '05 #1
1 6761
OK I take it all back!

The solution to the problem above is "Let Visual Studio do it all for you".

Do NOT create a virtual folder with ISS.
Do NOT create a filesystem folder with windows explorer.

Just down load your solution file from source safe and open it.
Visual Studio will prompt you with the dialog referenced in the original
post, but provided that you have NOT previously created the folder with
either IIS or explorer it all seems to work smoothly - I have a hunch that
for this to work correctly you must use the Visual Studio interface to do
your "Add to Source Safe" operation on the machine that the web service
project was originally created on.

Apologies if this post has wasted anyone's time!

"Andy" <sw********@hotmail.com> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
This is driving me to insanity!!!
I do not have a lot of experience with IIS which probably is not helping but as far as I can tell I am do things as per the MSDN documentation.

I have a solution in Source Safe that I want to add some web service
projects to.

I create a folder under my solution folder for the new web service project. I create a virtual directory using IIS and accept the default settings for
security etc.
I use "File->New->Project" and select a C# ASP.Net web service.
I specify "http://localhost/<<my virtual folder>>

Visual Studio.Net creates the new project for me, I do some work on it.
Write the test code everything is just dandy.

Then I use the Visual Studio IDE to add the new project to Source Safe, as
instructed on MSDN, specifying a folder under the solution folder.
All the files get added - everything looks like sweetness and light.

Then I go to a different machine which has the old solution (without the web service projects) on it.
I create the folders for the new web service projects.
I create the virtual directories using IIS on the new machine.
Then I do a "Get Latest" from Source Safe to get the new solution with the
new web service projects.

When I go to open the solution I get a dialog with a caption "Set Project
Location - << solution name >>"
My three new projects are listed in a list box along with their Source Safe locations and three new virtual directories with the same names as the ones I created but suffixed with an _1. I do not want to put the projects in
those virtual folders! I want to put them in the ones I specially created
for the job a few seconds ago.
So I edit the suggested folders and change to the ones that I just created. When I click OK I get a dialog that says ...
"One or more of the suggested paths are invalid. To open the solution,
specify a valid path for each project."
Well that is just tosh! These are all good vdirs - I created them only two seconds ago!
Oh well if you do not like the ones I created then I will go with your
ones - so I accept the default names - only to receive a dialog that says.. "Unable to create web project <<vdir>>. The path <<path>> does not
correspond to the URL <<vdir>> The two need to map to the same server
location. HTTP error 404 object not found"

Well thanks a lot! I am stuck - I have wasted soooo much time trying to
work around this stupid issue.
If anyone can help and point me towards a good solution it would be much
appreciated.

TIA

Andy


Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jeremy S. | last post: by
2 posts views Thread by heddy | last post: by
reply views Thread by Henning Krause [MVP - Exchange] | last post: by
5 posts views Thread by dm3281 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.