开发者

WCF Service hosting in IIS6 or IIS7 and calling it from a Windows form

开发者 https://www.devze.com 2023-03-22 02:51 出处:网络
I have created a WCF service application in VS2010 and done all the necessary implementations in it. I have also created a windows form which ca开发者_开发知识库lls this service (have added service r

I have created a WCF service application in VS2010 and done all the necessary implementations in it.

I have also created a windows form which ca开发者_开发知识库lls this service (have added service reference). Now bcos it is self hosting, its working perfectly fine.

I want to move the service to the IIS and check the clients working from multiple locations (to note the speed of the operation performed). I have checked everywhere in the net for how to host a WCF service in IIS6 (or7) but to no clarity.

Please let me know how i can publish the service from my VS 2010 and created a virtual directory etc etc so that my client's reference points to the IIS hosted service


Simplest way is to run Visual Studio as Admin

Go to the WCF project properties and in the Web tab say you want to use the local IIS server. Then click the button to create the virtual directory

You will need to change the address that the client talks to to be the new IIS hosted location

0

精彩评论

暂无评论...
验证码 换一张
取 消