473,701 Members | 2,728 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging WCF apps

(this was also posted on the MSDN WCF forum but the answers over there are
not so good)
I have a WCF Library hosted by IIS 6 and it all works fine. However I need
to step through the code in the service. But when I hit F5 in VS2008 I get
the following error message. . .

A binding instance has already been associated to listen URI
'http://localhost:8877/VtaxDataService '. If two endpoints want to share the
same ListenUri, they must also share the same binding object instance.

nothing else on my machine is listening on that URI. I thought the message
might be referring to the website hosting my service but I stopped the web
site in IIS and I still get the message. I also stopped IIS and still get
the message My app.config is pasted below.

Why am I getting this message? What is the problem and how can I step
through this code?
Thanks
Gary

<system.service Model>
<diagnostics>
<messageLoggi ng logMalformedMes sages="true"
logMessagesAtSe rviceLevel="tru e"
logMessagesAtTr ansportLevel="t rue">
<filters>

</filters>
</messageLogging>
</diagnostics>
<services>
<service behaviorConfigu ration="VtaxDat aService.Servic e1Behavior"
name="VtaxDataS ervice.VtaxData Service">
<endpoint address="" binding="wsHttp Binding"
contract="VtaxD ataService.IVta xDataService" />
<endpoint address="mex" binding="mexHtt pBinding"
contract="IMeta dataExchange" />
<endpoint binding="basicH ttpBinding"
contract="VtaxD ataService.IVta xDataService" />
<host>
<baseAddresse s>
<add baseAddress="ht tp://localhost:8877/VtaxDataService " />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehavio rs>
<behavior name="VtaxDataS ervice.Service1 Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint
above before deployment -->
<serviceMetadat a httpGetEnabled= "True"/>
<!-- To receive exception details in faults for debugging
purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptio nDetailInFaults ="False" />
</behavior>
</serviceBehavior s>
</behaviors>
</system.serviceM odel>
Nov 6 '08 #1
7 4105
Hi Gary,

Regarding on the "A binding instance has already been associated to listen
URI " problem you encountered, here are some of my understanding and
suggestion.

1. For the error message above, it indicate that you're trying to startup
an service host/endponit at a URL which is already occuplied. Based on my
understanding, one possible issue is that you create the WCF class library
via "WCF Service LIbrary" project type. And for this kind of project, it
will use the new "WCFTestclient. exe" for you to debug the WCF class library
when you hit F5 key in vs 2008. (This is a new feature of VS2008 for WCF
service library debugging, you do not need to write a dedicated client app
for test the service library). Here is an article describing this:

#WcfSvcHost and WcfTestClient in VS 2008
http://blogs.msdn.com/knom/archive/2...cftestclient-i
n-vs-2008.aspx

And for your scenario, since the service is already started in IIS6, when
you try hiting F5 to start debugging, the WcfTestClient will try host the
endpont again which result to the error at beginning.
2. When you host your WCF service in IIS, I think the reasonable approach
debugging is as below:

** If your WCF host webapplication and the client application which call it
is in the same solution, you can just start F5 debug in client appliation
project, and you should be able to step from client code into server-side
WCF service code.

** If you want to debug the server-side WCF service code only, then you can
manually use "Debug---Attach Process" to attach the IIS worker process
which host the wcf service. For IIS6, it should be the ASP.NET worker
process (w3wp.exe).

if you have anything unclear on this, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from

the community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that

each follow up response may take approximately 2 business days as the
support professional working

with you may need further investigation to reach the most efficient
resolution. The offering is not

appropriate for situations that require urgent, real-time or phone-based
interactions. Issues of this

nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft

Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
Subject: Debugging WCF apps
Date: Thu, 6 Nov 2008 09:35:58 -0700

(this was also posted on the MSDN WCF forum but the answers over there are
not so good)
I have a WCF Library hosted by IIS 6 and it all works fine. However I need
to step through the code in the service. But when I hit F5 in VS2008 I get
the following error message. . .

A binding instance has already been associated to listen URI
'http://localhost:8877/VtaxDataService '. If two endpoints want to share the
same ListenUri, they must also share the same binding object instance.

nothing else on my machine is listening on that URI. I thought the message
might be referring to the website hosting my service but I stopped the web
site in IIS and I still get the message. I also stopped IIS and still get
the message My app.config is pasted below.

Why am I getting this message? What is the problem and how can I step
through this code?
Thanks
Gary

<system.service Model>
<diagnostics>
<messageLoggi ng logMalformedMes sages="true"
logMessagesAtSe rviceLevel="tru e"
logMessagesAtTr ansportLevel="t rue">
<filters>

</filters>
</messageLogging>
</diagnostics>
<services>
<service behaviorConfigu ration="VtaxDat aService.Servic e1Behavior"
name="VtaxDataS ervice.VtaxData Service">
<endpoint address="" binding="wsHttp Binding"
contract="VtaxD ataService.IVta xDataService" />
<endpoint address="mex" binding="mexHtt pBinding"
contract="IMeta dataExchange" />
<endpoint binding="basicH ttpBinding"
contract="VtaxD ataService.IVta xDataService" />
<host>
<baseAddresse s>
<add baseAddress="ht tp://localhost:8877/VtaxDataService " />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehavio rs>
<behavior name="VtaxDataS ervice.Service1 Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint
above before deployment -->
<serviceMetadat a httpGetEnabled= "True"/>
<!-- To receive exception details in faults for debugging
purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptio nDetailInFaults ="False" />
</behavior>
</serviceBehavior s>
</behaviors>
</system.serviceM odel>

Nov 7 '08 #2
Steven, thanks for your timely response. I have a problem with each of your
suggestions...

1. As I said in my post, I also thought the reason for the error message
was because IIS was also listening on that url. So I turned IIS completely
off. I stopped the service. I still get the error message. I am thinking
that since IIS is stopped this could not be the reason. No?

2. Regarding attach to process: I am opening up my vs2008 project that
contains my WCF Library project along with my hosting website project. I
bring up the attach to process dialog box. My Transport is "default" my
Qualifier is my machine name. I'm attached to Managed code, native code.
Checkbox for all users is checked. Checkbox for all sesssions is checked.
There is no process listed by the name of W3wp.exe or anything like it.
(also I notice that task manager (using server2003) shows no process by that
name, nor on my Vista system, nor on my XP Pro system)

Regards,
Gary Blakely

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:rz******** *****@TK2MSFTNG HUB02.phx.gbl.. .
Hi Gary,

Regarding on the "A binding instance has already been associated to listen
URI " problem you encountered, here are some of my understanding and
suggestion.

1. For the error message above, it indicate that you're trying to startup
an service host/endponit at a URL which is already occuplied. Based on my
understanding, one possible issue is that you create the WCF class library
via "WCF Service LIbrary" project type. And for this kind of project, it
will use the new "WCFTestclient. exe" for you to debug the WCF class
library
when you hit F5 key in vs 2008. (This is a new feature of VS2008 for WCF
service library debugging, you do not need to write a dedicated client app
for test the service library). Here is an article describing this:

#WcfSvcHost and WcfTestClient in VS 2008
http://blogs.msdn.com/knom/archive/2...cftestclient-i
n-vs-2008.aspx

And for your scenario, since the service is already started in IIS6, when
you try hiting F5 to start debugging, the WcfTestClient will try host the
endpont again which result to the error at beginning.
2. When you host your WCF service in IIS, I think the reasonable approach
debugging is as below:

** If your WCF host webapplication and the client application which call
it
is in the same solution, you can just start F5 debug in client appliation
project, and you should be able to step from client code into server-side
WCF service code.

** If you want to debug the server-side WCF service code only, then you
can
manually use "Debug---Attach Process" to attach the IIS worker process
which host the wcf service. For IIS6, it should be the ASP.NET worker
process (w3wp.exe).

if you have anything unclear on this, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my
manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from

the community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that

each follow up response may take approximately 2 business days as the
support professional working

with you may need further investigation to reach the most efficient
resolution. The offering is not

appropriate for situations that require urgent, real-time or phone-based
interactions. Issues of this

nature are best handled working with a dedicated Microsoft Support
Engineer
by contacting Microsoft

Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
Subject: Debugging WCF apps
Date: Thu, 6 Nov 2008 09:35:58 -0700

(this was also posted on the MSDN WCF forum but the answers over there are
not so good)
I have a WCF Library hosted by IIS 6 and it all works fine. However I
need
to step through the code in the service. But when I hit F5 in VS2008 I
get
the following error message. . .

A binding instance has already been associated to listen URI
'http://localhost:8877/VtaxDataService '. If two endpoints want to share
the
same ListenUri, they must also share the same binding object instance.

nothing else on my machine is listening on that URI. I thought the
message
might be referring to the website hosting my service but I stopped the web
site in IIS and I still get the message. I also stopped IIS and still get
the message My app.config is pasted below.

Why am I getting this message? What is the problem and how can I step
through this code?
Thanks
Gary

<system.service Model>
<diagnostics>
<messageLoggi ng logMalformedMes sages="true"
logMessagesAtSe rviceLevel="tru e"
logMessagesAtTr ansportLevel="t rue">
<filters>

</filters>
</messageLogging>
</diagnostics>
<services>
<service behaviorConfigu ration="VtaxDat aService.Servic e1Behavior"
name="VtaxDataS ervice.VtaxData Service">
<endpoint address="" binding="wsHttp Binding"
contract="VtaxD ataService.IVta xDataService" />
<endpoint address="mex" binding="mexHtt pBinding"
contract="IMeta dataExchange" />
<endpoint binding="basicH ttpBinding"
contract="VtaxD ataService.IVta xDataService" />
<host>
<baseAddresse s>
<add baseAddress="ht tp://localhost:8877/VtaxDataService " />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehavio rs>
<behavior name="VtaxDataS ervice.Service1 Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint
above before deployment -->
<serviceMetadat a httpGetEnabled= "True"/>
<!-- To receive exception details in faults for debugging
purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptio nDetailInFaults ="False" />
</behavior>
</serviceBehavior s>
</behaviors>
</system.serviceM odel>

Nov 7 '08 #3
Steven,
Do you have any response on this issue?

I also hit a dead end on the WCF forum on these two issues:

1. Why do I get the two endpoint message when IIS is shutdown
2. Why is there no W3wp.exe process to attach to

Regards,
Gary

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:rz******** *****@TK2MSFTNG HUB02.phx.gbl.. .
Hi Gary,

Regarding on the "A binding instance has already been associated to listen
URI " problem you encountered, here are some of my understanding and
suggestion.

1. For the error message above, it indicate that you're trying to startup
an service host/endponit at a URL which is already occuplied. Based on my
understanding, one possible issue is that you create the WCF class library
via "WCF Service LIbrary" project type. And for this kind of project, it
will use the new "WCFTestclient. exe" for you to debug the WCF class
library
when you hit F5 key in vs 2008. (This is a new feature of VS2008 for WCF
service library debugging, you do not need to write a dedicated client app
for test the service library). Here is an article describing this:

#WcfSvcHost and WcfTestClient in VS 2008
http://blogs.msdn.com/knom/archive/2...cftestclient-i
n-vs-2008.aspx

And for your scenario, since the service is already started in IIS6, when
you try hiting F5 to start debugging, the WcfTestClient will try host the
endpont again which result to the error at beginning.
2. When you host your WCF service in IIS, I think the reasonable approach
debugging is as below:

** If your WCF host webapplication and the client application which call
it
is in the same solution, you can just start F5 debug in client appliation
project, and you should be able to step from client code into server-side
WCF service code.

** If you want to debug the server-side WCF service code only, then you
can
manually use "Debug---Attach Process" to attach the IIS worker process
which host the wcf service. For IIS6, it should be the ASP.NET worker
process (w3wp.exe).

if you have anything unclear on this, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my
manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from

the community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that

each follow up response may take approximately 2 business days as the
support professional working

with you may need further investigation to reach the most efficient
resolution. The offering is not

appropriate for situations that require urgent, real-time or phone-based
interactions. Issues of this

nature are best handled working with a dedicated Microsoft Support
Engineer
by contacting Microsoft

Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
Subject: Debugging WCF apps
Date: Thu, 6 Nov 2008 09:35:58 -0700

(this was also posted on the MSDN WCF forum but the answers over there are
not so good)
I have a WCF Library hosted by IIS 6 and it all works fine. However I
need
to step through the code in the service. But when I hit F5 in VS2008 I
get
the following error message. . .

A binding instance has already been associated to listen URI
'http://localhost:8877/VtaxDataService '. If two endpoints want to share
the
same ListenUri, they must also share the same binding object instance.

nothing else on my machine is listening on that URI. I thought the
message
might be referring to the website hosting my service but I stopped the web
site in IIS and I still get the message. I also stopped IIS and still get
the message My app.config is pasted below.

Why am I getting this message? What is the problem and how can I step
through this code?
Thanks
Gary

<system.service Model>
<diagnostics>
<messageLoggi ng logMalformedMes sages="true"
logMessagesAtSe rviceLevel="tru e"
logMessagesAtTr ansportLevel="t rue">
<filters>

</filters>
</messageLogging>
</diagnostics>
<services>
<service behaviorConfigu ration="VtaxDat aService.Servic e1Behavior"
name="VtaxDataS ervice.VtaxData Service">
<endpoint address="" binding="wsHttp Binding"
contract="VtaxD ataService.IVta xDataService" />
<endpoint address="mex" binding="mexHtt pBinding"
contract="IMeta dataExchange" />
<endpoint binding="basicH ttpBinding"
contract="VtaxD ataService.IVta xDataService" />
<host>
<baseAddresse s>
<add baseAddress="ht tp://localhost:8877/VtaxDataService " />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehavio rs>
<behavior name="VtaxDataS ervice.Service1 Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint
above before deployment -->
<serviceMetadat a httpGetEnabled= "True"/>
<!-- To receive exception details in faults for debugging
purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptio nDetailInFaults ="False" />
</behavior>
</serviceBehavior s>
</behaviors>
</system.serviceM odel>

Nov 10 '08 #4
Thanks for your reply Gary,

Yes, I'm still researching on this issue. It does be a bit unexpected that
even you stop IIS service, there is still service occupy the url resource.
I'd like to suggest you try the following approach:

1. stop the website and Apppool(if using IIS 6), for the http port(your wcf
service is configured to listen), use netstat to check whether there is any
other program still using it.

2. If no other program using it, you can try directdly F5 debug on the WCF
service library project, by default the WCFTestclient.e xe will help start a
test application which can let you invoke the WCF service.

You can check whether the above approaches works.

For the w3wp.exe, it is the worker process of windows 2003 server(if you're
not using IIS 5 compatible model). If you 're using windows 2003/IIS6 in
IIS5 compiable model or if you're using win xp/IIS5, the worker process
should be "aspnet_wp. exe"

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
References: <#e************ **@TK2MSFTNGP02 .phx.gbl>
<rz************ *@TK2MSFTNGHUB0 2.phx.gbl>
Subject: Re: Debugging WCF apps
Date: Mon, 10 Nov 2008 10:42:08 -0700

Steven,
Do you have any response on this issue?

I also hit a dead end on the WCF forum on these two issues:

1. Why do I get the two endpoint message when IIS is shutdown
2. Why is there no W3wp.exe process to attach to

Regards,
Gary

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:rz******** *****@TK2MSFTNG HUB02.phx.gbl.. .
Hi Gary,

Regarding on the "A binding instance has already been associated to listen
URI " problem you encountered, here are some of my understanding and
suggestion.

1. For the error message above, it indicate that you're trying to startup
an service host/endponit at a URL which is already occuplied. Based on my
understanding, one possible issue is that you create the WCF class library
via "WCF Service LIbrary" project type. And for this kind of project, it
will use the new "WCFTestclient. exe" for you to debug the WCF class
library
when you hit F5 key in vs 2008. (This is a new feature of VS2008 for WCF
service library debugging, you do not need to write a dedicated client app
for test the service library). Here is an article describing this:

#WcfSvcHost and WcfTestClient in VS 2008
http://blogs.msdn.com/knom/archive/2...cftestclient-i
n-vs-2008.aspx

And for your scenario, since the service is already started in IIS6, when
you try hiting F5 to start debugging, the WcfTestClient will try host the
endpont again which result to the error at beginning.


Nov 11 '08 #5
Steven,
Issue # 1
I don't think the problem using the test client in VS2008 is a problem any
more. I was hitting F5 and getting the error I described. But I then
remembered the reccomended way to do this is to browse the .svc file in the
hosting web project, get the screen showing the wsdl url then put that into
a console window running WCFTestClient. That works. However is not of much
use if anything other than simple data types are being used.

Issue #2
I am using Server 2003 with IIS6. There is no aspnet_wp.exe process. no
w3wp.exe. Not in task manager either. I checked several other peoples
machnines running different op sys and same there. I know it is running
because the WCF service works.

Regards,
Gary

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:l%******** ********@TK2MSF TNGHUB02.phx.gb l...
Thanks for your reply Gary,

Yes, I'm still researching on this issue. It does be a bit unexpected that
even you stop IIS service, there is still service occupy the url resource.
I'd like to suggest you try the following approach:

1. stop the website and Apppool(if using IIS 6), for the http port(your
wcf
service is configured to listen), use netstat to check whether there is
any
other program still using it.

2. If no other program using it, you can try directdly F5 debug on the
WCF
service library project, by default the WCFTestclient.e xe will help start
a
test application which can let you invoke the WCF service.

You can check whether the above approaches works.

For the w3wp.exe, it is the worker process of windows 2003 server(if
you're
not using IIS 5 compatible model). If you 're using windows 2003/IIS6 in
IIS5 compiable model or if you're using win xp/IIS5, the worker process
should be "aspnet_wp. exe"

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my
manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
References: <#e************ **@TK2MSFTNGP02 .phx.gbl>
<rz************ *@TK2MSFTNGHUB0 2.phx.gbl>
Subject: Re: Debugging WCF apps
Date: Mon, 10 Nov 2008 10:42:08 -0700

Steven,
Do you have any response on this issue?

I also hit a dead end on the WCF forum on these two issues:

1. Why do I get the two endpoint message when IIS is shutdown
2. Why is there no W3wp.exe process to attach to

Regards,
Gary

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:rz******** *****@TK2MSFTNG HUB02.phx.gbl.. .
>Hi Gary,

Regarding on the "A binding instance has already been associated to
listen
URI " problem you encountered, here are some of my understanding and
suggestion.

1. For the error message above, it indicate that you're trying to startup
an service host/endponit at a URL which is already occuplied. Based on my
understandin g, one possible issue is that you create the WCF class
library
via "WCF Service LIbrary" project type. And for this kind of project, it
will use the new "WCFTestclient. exe" for you to debug the WCF class
library
when you hit F5 key in vs 2008. (This is a new feature of VS2008 for WCF
service library debugging, you do not need to write a dedicated client
app
for test the service library). Here is an article describing this:

#WcfSvcHost and WcfTestClient in VS 2008
http://blogs.msdn.com/knom/archive/2...cftestclient-i
>n-vs-2008.aspx

And for your scenario, since the service is already started in IIS6, when
you try hiting F5 to start debugging, the WcfTestClient will try host the
endpont again which result to the error at beginning.



Nov 11 '08 #6
Hi Gary,

It seems the behaviory you encounter is a bit different from my local
tests. If possible, would you send me a simple solution that contain the
WCFservice library project(a simplified one). I'll perform some test on it
locally. If it works, I think there must be some machine wide configuration
issue which is not specfiic to the WCF service code itself.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.
--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
References: <#e************ **@TK2MSFTNGP02 .phx.gbl>
<rz************ *@TK2MSFTNGHUB0 2.phx.gbl>
<OL************ **@TK2MSFTNGP06 .phx.gbl>
<l#************ **@TK2MSFTNGHUB 02.phx.gbl>
Subject: Re: Debugging WCF apps
Date: Tue, 11 Nov 2008 15:17:56 -0700
Steven,
Issue # 1
I don't think the problem using the test client in VS2008 is a problem any
more. I was hitting F5 and getting the error I described. But I then
remembered the reccomended way to do this is to browse the .svc file in the
hosting web project, get the screen showing the wsdl url then put that into
a console window running WCFTestClient. That works. However is not of
much
use if anything other than simple data types are being used.

Issue #2
I am using Server 2003 with IIS6. There is no aspnet_wp.exe process. no
w3wp.exe. Not in task manager either. I checked several other peoples
machnines running different op sys and same there. I know it is running
because the WCF service works.

Regards,
Gary

Nov 14 '08 #7
In my last message I said the WCF problem was solved. The remaining issue
is:
Issue #2
I am using Server 2003 with IIS6. There is no aspnet_wp.exe process. no
w3wp.exe. Not in task manager either. I checked several other peoples
machnines running different op sys and same there. I know it is running
because the WCF service works.

In a nutshell, there is no aspnet_wp or w3wp.exe process to attach to. On
any of my machines.
Gary

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:xy******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Gary,

It seems the behaviory you encounter is a bit different from my local
tests. If possible, would you send me a simple solution that contain the
WCFservice library project(a simplified one). I'll perform some test on
it
locally. If it works, I think there must be some machine wide
configuration
issue which is not specfiic to the WCF service code itself.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my
manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.
--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
References: <#e************ **@TK2MSFTNGP02 .phx.gbl>
<rz************ *@TK2MSFTNGHUB0 2.phx.gbl>
<OL************ **@TK2MSFTNGP06 .phx.gbl>
<l#************ **@TK2MSFTNGHUB 02.phx.gbl>
Subject: Re: Debugging WCF apps
Date: Tue, 11 Nov 2008 15:17:56 -0700
Steven,
Issue # 1
I don't think the problem using the test client in VS2008 is a problem any
more. I was hitting F5 and getting the error I described. But I then
remembered the reccomended way to do this is to browse the .svc file in
the
hosting web project, get the screen showing the wsdl url then put that
into
a console window running WCFTestClient. That works. However is not of
much
use if anything other than simple data types are being used.

Issue #2
I am using Server 2003 with IIS6. There is no aspnet_wp.exe process. no
w3wp.exe. Not in task manager either. I checked several other peoples
machnines running different op sys and same there. I know it is running
because the WCF service works.

Regards,
Gary

Nov 14 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6019
by: Development | last post by:
I am creating 10 threads that do ecatly the same thing. I am having a very hard time debugging this scenario. It seems that by default when you are doing f10 or f11 all threads execute. You can see that by watching the thread window. When you freeze all threads but the one you are working on it then does not do anything. So does anybody have any experience debugging multithreaded apps in C# and could they share the best...
0
3225
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
5
6572
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development Environment" with this message: "Error while trying to run project: Unable to start debugging on the web server. Server-side error occurred on sending debug HTTP request. Make sure the server is operating correctly. Verify there are no...
6
1815
by: gerry | last post by:
I am almost at the end of my rope - I have to go through this process everytime a new version of studio is released or it is installed on a new machine - what a (^%&$^& pain. I am trying to debug a web app from within vs.net 2005 locally on windows 2003 server I just cannot get debugging to work anywhere other than localhost I completely uninstalled the ie enhanced security I've been through all of the doc's i can google
23
3198
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch the debugger from VS, I am told it can't because the project is of output type class library. The error indicates I should set the start action to start external program or start URL. I tried both of these and cannot seem to get the debugger to...
3
1692
by: Sathyaish | last post by:
How do you debug a web service in Visual Studio .NET 2003? To give you some background, I have been programming for some over 8 years now and know how to debug VB, VC++ apps in Visual Studio 6.0 and also know how to debug WinForms apps, Console Apps and ASP.NET apps in Visual Studio ..NET 2003. It occurs that this is the first time I am debugging a Web service.
20
4199
by: krypto.wizard | last post by:
Is there any editor or IDE in Python (either Windows or Linux) which has very good debugging facilites like MS VisualStudio has or something like that. I like SPE but couldn't easily use winPDP. I need tips to debug my code easily. Every help is greatly appreciated. Thanks
3
1709
by: Randy Magruder | last post by:
Attn: Asp.net gurus...if anyone can help, I hope it's here. Okay, I'm at my wits end. I have googled til my fingers hurt and am still not finding answers. The symptoms are as follows: 1. I have 2 machines, my laptop and a desktop, both are set up for asp.net development. 2. The desktop machine has an asp.net 1.1 app written with vs.net
1
1479
by: David C | last post by:
I am using Visual Studio 2005 for my .Net web apps. I have some older ASP web apps that I can edit fine in VS 2005 but I can't seem to debug them like I can with my ASP.Net pages. Can anyone point me to steps I need to take to be able to debug classic ASP (VBScript) pages in VS 2005? Thanks. David
0
8737
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9232
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7827
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4411
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4665
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3104
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2036
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.