asp.netweb-hostingwcf-hosting

Hosting ASPX and WCF


I have searched a lot for methods of hosting the WCF and found them to work, however, in my a Solution I have WCF Service Project(it has a web.config with some connection strings) and a ASPX.NET project( it also has a web.config), could any one please clarify on how I can host them in a website.

Thank you.


Solution

  • Do you want any other client to access this WCF service?

    If not, just keep a .svc file in your existing web application and use it whenever you need.

    If yes, host the WCF project as a website in IIS, console or WAS and refer it from your aspx web application.