Error in hosting in wcf

Posted by Klbaiju under WCF on 3/24/2011 | Points: 10 | Views : 1184 | Status : [Member] | Replies : 2
hi this is an example of wcf in msdn

but I can,t understand this

class Program
{
static void Main(string[] args)
{

// Step 1 of the address configuration procedure: Create a URI to serve as the base address.
Uri baseAddress = new Uri("http://localhost:8000/ServiceModelSamples/Service");

I think 8000 is the portnumber .I add 8000 portnumber but showing error


Regards

K L BAIJU

===========================================
complete example in this url
http://msdn.microsoft.com/en-us/library/ms730935%28v=vs.90%29.aspx




Responses

Posted by: SheoNarayan on: 3/24/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
What is the error?

Alss, try to run your project by opening your Visual Studio as Administrator (right click the icon and select Run As Administrator).

Thanks



Regards,
Sheo Narayan
http://www.dotnetfunda.com

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/24/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Check the port number in the web.config file also .. What you have there.. Also please inform more about your eroor details..

Thanks and Regards
Madhu

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response