Hi Dale,
Thanks for your reply.
[quoted text, click to view] >I have been building solutions for several years that include webforms UI
>and web service middle-tier and have never had to start the web service
that
>was contained in the solution before starting to debug. What changed?
Web Service should have been started before we call it. The reason why you
never have to start the web service before starting to debug is that the
Visual Studio will automatically start web service when you click "start to
debug". But this behavior only applies to [ASP.net Web Service] Project,
for [ASP.net Web Service Application] Project, Visual Studio will not start
it automatically. For this reason, when we call a web service which is
[ASP.net Web Service Application], we will receive the exception as
"Additional information: Unable to connect to the remote server". We need
to start such web service before we begin to debug.
[quoted text, click to view] >My current project is a solution that contains a webforms UI and a web
>service middle-tier. When I first started on this project, I did not have
to
>manually start the web service. I have been working on this solution for
>several months now. Only since installing SP1 have I suddenly had
problems
>where the webservice is not started when the UI tries to call it. And
this
>is all websites, not web applications.
Have you checked whether the project type for your web service is [ASP.net
Web Service] Project?
For [ASP.net Web Service] Project, this behavior is not intentional. This
website should automatically have been started by VS IDE when you start
debugging.
If this project type is [ASP.net Web Service Application], I'm afraid this
by design. We should have to start such web service application manual.
[quoted text, click to view] >Considering that the Visual Studio web server is not running when I start
>debugging, how is it that pasting the web service URL into a browser is
>supposed to start the webservice running? When I paste that address into
a
>browser, I get the Internet Explorer cannot display the webpage error in
IE.
>That is what I expect to get because there is no handler for the assigned
>port (in this case 9016) if the Visual Studio web server for my web
service
>is not started. The Visual Studio web server for the web service should
>start when I click Debug. It always has before.
[ASP.net Web Service Application] is a new feature in SP1. Before VS 2005
SP1, we have only one project type for WebService which is [ASP.net Web
Service] (Except you have installed Visual Studio 2005 Web Application
Project model).
http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx
I guess you have misunderstood [ASP.net Web Service Application] project as
[ASP.net Web Service] project.
However, if you have single solution with many projects, you can enable the
Multiple startup projects option in VS.
Right Click the Solution -> Properties -> Mark the Multiple startup
projects radio button -> Set all the projects in the solution to Start.
After that all the projects (which marked as Start) will be started after
you click "start to debug".
Hope this helps. Please feel free to reply me if you still have anything
unclear. I'm very glad to assist you.
Sincerely,
Wen Yuan