I'm working on a Silverlight app that uses WCF service [on Visual Studio]
< P> As a matter of simplicity, I have created a WCF service in the project [as I did not host it in IIS, but to create it in web-dev server in VS]It works well, now I want to deploy it on IIS 7.0, do you Uje can tell you that I will be a host independently and then do the rest publish stuff or if I just website service will also host and be able to communicate with the Silverlight client service.
Please help!
Thanks
You basically have three options to deploy your service implementation:
-
You can keep your service implementation in code. File behind the SVC file - this is my least Will be a favorable choice - do not do it basically - it gets dirty and does not provide any benefit
-
You can set your service class file (MyService.cs file ) And enter the interface file (IMyService.cs) in the
App_Code
directory (if you are using a web site project type) - again, I do not particularly like this approach -
Your best choice: Your service agreement (interface) and your service implementation in a separate class-library assembly for that service, and
MyService.dll
underat the bottom of the virtual directory. Bin
to the directory where your SVC file resides
< P>
Service host language = "c #" debug = "true" service = "mysive"%>
And of course, you need the appropriate web.config entries - but I'm sure you already have it, right?
Your service address is now: / P>
http: //YourServer/VirtualDirectory/YourService.svc
For more information, See
Comments
Post a Comment