Connecting Tech Pros Worldwide Help | Site Map

Web Service project configuration in Visual Studio 2003.

Andy
Guest
 
Posts: n/a
#1: Nov 21 '05
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






Andy
Guest
 
Posts: n/a
#2: Nov 21 '05

re: Web Service project configuration in Visual Studio 2003.


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" <swarb70sok@hotmail.com> wrote in message
news:eGbSUjdZEHA.1764@TK2MSFTNGP10.phx.gbl...[color=blue]
> This is driving me to insanity!!!
> I do not have a lot of experience with IIS which probably is not helping[/color]
but[color=blue]
> 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[/color]
project.[color=blue]
> 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[/color]
web[color=blue]
> 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[/color]
Safe[color=blue]
> locations and three new virtual directories with the same names as the[/color]
ones[color=blue]
> 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[/color]
created.[color=blue]
> 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[/color]
two[color=blue]
> 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[/color]
says..[color=blue]
> "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
>
>
>
>
>
>[/color]


Closed Thread