In my solution I have a "website" project and "WebApplication" project. In the website project I have a WCF service under folder called Services. So by default it places MyService.cs file under App_Code folder.
Now I am t开发者_如何学运维rying to add this same WCF service as link file into my WebApplication project. But as the [.svc & .cs] are in two different location in website project it is not being picked up as a service in WebApplication project.
Any solution to this problem ? Any thoughts or ideas ?
Thanks in advance, Keyrav
I think your best bet would be to totally separate out the WCF service into its own class-library assembly (no code in the *.svc.cs code-behind or the App_code
directory), and then reference that WCF service assembly from your different projects and web sites.
精彩评论