WCF Error
I am doing project using WCF concept. I m getting exception in my project. please check below attached code. I refer http://www.c-sharpcorner.com/uploadfile/poolamu/beginners-guide-to-windows-communication-foundation/ link to do my project.

Sanjeeb LenkaPosted Jul 24, 2013, 1:22 PM
i am providing the step follow this
goto Start >> all program>>Microsoft Visual Studio 2010>> right click on Microsoft Visual Studio 2010 and choose Run as Administrator.
then goto file >> open >> projrct/solution >> open the DemoCustomerHost
and run it
then run the client
Sanjeeb LenkaPosted Jul 24, 2013, 1:31 PM
mark it as answered if its help you
Preeti AgrawallaPosted Jul 24, 2013, 1:10 PM
Sanjeeb LenkaPosted Jul 24, 2013, 1:06 PM
Sanjeeb LenkaPosted Jul 24, 2013, 12:45 PM
i checked your code its total error free.
this exception is coming due to some access permission.
so run your visual studio Run as administrator and the run your
DemoCostomerHost 1st then Client
if any problem reply
if its help you mark it as answered
Preeti AgrawallaPosted Jul 24, 2013, 12:24 PM
Bhupendra ChauhanPosted Jul 24, 2013, 11:10 AM
You can also Seperate the code of Service and Client, So you are able to host the service seperately and consume it.
Steps
1. Right click on the DemoCustomerHost and in Debug ,click on Start new instance. A console window will Open, says" Service is up and running" This will host your service.
2. Now you have to right click on DemoClient and in Debug, Click on Start new Instance. A console window will opens Says : "Server says: Hello Test Client"
Done !!!!!
Happy Coding :)