You must Sign In to post a response.
  • Category: [About DotNetSpider]

    How i can localhost automatically when my run wcf program in asp.net

    hi,

    I am learning WCF. I got successfull in wcf. my gridview is filling with data
    and also insert, delete, update into gridview. But problem is that if i close
    this project and started open after completed close visual studio and restard
    again visual studio and try to run my web site project. It is showin following error.
    that is error is saying 'http://localhost:49166/WCFTest/Service1.svc' must be restart
    again. It is not possible in client side. How i can do this 'http://localhost:49166/WCFTest/Service1.svc'
    should be start automatically. when i run my project..

    error :

    here was no endpoint listening at http://localhost:49166/WCFTest/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action.
    See InnerException, if present, for more details.
  • #695249
    It is because of the Port name may be random each time you run the application.

    Host the application in IIS with a fixed port or pool and then try using the same.

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • #695285
    Hi,

    Can you post endpoint section of your configuration file? Are you able to browse the url :http://localhost:49166/WCFTest/Service1.svc without any error?
    If you haven't host your WCF service then please follow the instruction from MSDN to do so: http://msdn.microsoft.com/en-us/library/ms733766.aspx


    Regards,
    Asheej T K


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.