WCF Service Deployment in IIS Page cannot be displayed and how does the SVC file work?

前端 未结 3 1293
天命终不由人
天命终不由人 2020-12-21 20:16

Arghhh! I\'m getting so frustrated trying to get my head around this WCF service.

So I created a WCF service. It works fine in my laptop where I launch it from Visua

相关标签:
3条回答
  • 2020-12-21 21:03

    If this stuff is new to you, you should use the visual studio deployment features, try right click your web project and click deploy, I think it'll solve your issues, you can even deploy using ftp through this wizard.

    0 讨论(0)
  • 2020-12-21 21:09

    Page cannot be displayed error is coming from IIS.

    • Add a simple html file and see if IIS can serve that file
    • Add a simple aspx file and see if IIS can serve that file
    • Now add .svc file as one of the documents in document list in IIS
    • Place dll in a bin folder under the virtual directory's physical path
    • Once you get the asp.net run time errors, it is easy find the answers for them
    0 讨论(0)
  • 2020-12-21 21:21

    If you have a class library with your WCF service inside, you need to copy the service DLL into the .\bin folder one level down from your virtual directory. That's where the WCF runtime looks for its service classes.

    Also see these resources:

    • MSDN docs: How to: Host a WCF Service in IIS
    • endpoint.tv Screencast - Hosting WCF Services in IIS

    The WCF Developer Center on MSDN has a "Beginnger's Guide" (available right from the landing page) which has tons of those excellent 5-10 minute screencasts explaining all things WCF to you - highly recommended!

    0 讨论(0)
提交回复
热议问题