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

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 7055
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Denis | last post by:
Hello, I am working on a large business application written mostly with VC++ and MFC. What I'm trying to do is accessing my database with the existing functions in my c++ application using XML...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
2
by: heddy | last post by:
Howdy folks. I am trying to build a web service using the following configuration: I have Windows 2003 Server running in VMware. I have IIS set up on it. I installed the .NET 2.0 package on...
0
by: Henning Krause [MVP - Exchange] | last post by:
Hello, Environment: Visual Studio 2005 SP1, Web Deployment Projects installed I hava Web Application project (updated from Visual Studio 2003) and a Web Deployment for that web application....
2
by: wph101larrya | last post by:
I have a developed service and client application running on a Vista machine in IIS7 in the Visual Studio 2008 beta 2 with .NET 3.5 framework. I am trying to deploy the service app to a test...
7
by: Rick | last post by:
I have a web service that I converted from VS 2003 Framework 1.1. to VS 2005 Framework 2.0. I tried to use the same IIS web site to run the web service. I deleted the Framework 1.1 files published...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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...

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.