I have developed the WCF web service in vb.net in visual studio 2010 express edition. also deployed t locally as of now. since VS Express does not support Unit testing i cannot test web service. where as restricted using framework like NUnit. how should i test my web service and debug it ?
Use WCF Test Client(found at this location -
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\
).
Bind the wcf TEST client process for debugging. From VS go to debug -> Attach to process -> wcfTestClient.exe.
Then execute the method from test client and you would be able to debug the service code
Related
Am planning to build a WCF Web service using Visual Studio 2015. I came up with a sample web service that i can launch from visual studio and this works fine when i call the APIs from browser on local host.
Now i want to deploy it in a server. Am not sure how I can deploy in a server. The final out put of the web service is a DLL.
Can someone explain to me how to deploy this in a Windows server?
Do i need to run this web service DLL as a service?
Does it got anything to do with IIS?
As per your request, I have made this an answer.
If you're looking to host a WCF service which is exposed to the outside world then the best solution is to host the service via IIS which you can find out how to do by reviewing the following article.
You can find a more visual tutorial here.
If you encounter errors after publishing to IIS then please refer to the following StackOverflow answer to see which Windows Features must be enabled.
Is it possible to debug the Windows services in Visual Studio?
I have a service that is host in a console application. when I run this application inside visual studio, the service is open and I can access from the client or when I use the uri in an internet browser.
However, when I run the exe, the service is not open and I can't acccess to the service. I have tried to run as elevated privileges, but it does not work.
Why in visual estudio works and stand alone not?
I am using VS2015 community and WCF 4.5.
Thanks.
I am new to WCF web service development and I can use some help.
I have a simple web service written in C# that I'm hosting on a remote server (it's hosted on IIS 5.1).
I've written a client application for that web service that I'm running on my workstation.I am able to connect to the service without any problems.
However, I would like to be able to debug the web service.I need to be able to step through the code, set breakpoints, etc.How do I achieve that from my local machine? I'm using Visual Studio 2010.
Thank you in advance.
I see two possibilities:
Local debugging: For debugging, run your service on your local machine. If you want to run it on the local IIS, simply start a second instance if VS2010 and attach to the w3wp.exe process (menu Tools -> Attach to process)
Remote Debugging: You have to install and start the VS2010 remote debugger on the server. Start a second instance of VS2010 on your development box and connect to the remote debugger with menu Tools -> Attach to process.
See msdn for more information about remote debugging with VS2010.
I've created a WCF service selecting 'WCF Service' in installed web site templates in VS2005. I've added a ASP.Net client for the service in the SAME solution. I published the WCF service in IIS 6.0 and configured it to run in .Net Framework 2.0.
I did an IISAPP in command prompt and identified the PID of the w3wp.exe process of my service application in IIS. I attached the debugger in VS to that process and started a new instance of the asp.net client project.
But i'm not able to step in to the service and the breakpoint is not enabled at all showing 'No symbols have been loaded'.
Any insights on this? Can i debug a WCF service hosted in IIS 6.0 using VS 2005 where the service and client resides under SAME solution?
Thank you
NLV