WenYuan,
Thanks for looking in to this for me. I do have some questions inline
below.
Dale
> Hi Dale,
> Thanks for your reply.
[quoted text clipped - 18 lines]
> starting the project which reference this webservice. (For website
> application project).
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?
> For Website project, webservice will be started automatically when it been
> called.
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.
> However, do you have any further issue on this?
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.
> >In other cases, when I try that, it won't work and even though the port
> number matches what I manually started and what the web reference URL is as
[quoted text clipped - 12 lines]
> Sincerely,
> Wen Yuan
WenYuan Wang - 27 Mar 2007 06:51 GMT
Hi Dale,
Thanks for your reply.
>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.
>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.
>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
[quoted text clipped - 4 lines]
>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