简体   繁体   English

在IIS6上部署WCF服务

[英]Deploy WCF Service on IIS6

I have an WCF RESTFull Service which i need to deploy on IIS6. 我有一个WCF RESTFull服务,需要在IIS6上进行部署。 I have never done this before and i am completely new to the IIS environment. 我以前从未做过此事,并且对IIS环境完全陌生。 I found a good solution here on the forums but its not precise enough for my case. 我在论坛上找到了一个很好的解决方案,但对于我的情况而言,不够精确。 maybe someone can give me based on this solution a more expanded version: 也许有人可以根据此解决方案给我一个扩展版本:

Option 1 - "bin" deploy (preferred option) 选项1-“ bin”部署(首选选项)

  1. compile your WCF service into a DLL (class library) 将您的WCF服务编译为DLL(类库)
    1. create a website in IIS6 在IIS6中创建网站
    2. copy the WCF DLL's into the website's .\\bin folder 将WCF DLL复制到网站的。\\ bin文件夹中
    3. create a *.svc file in that website 在该网站上创建一个* .svc文件
    4. add an appropriate web.config in the website folder to define your endpoints and service configuration etc. 在网站文件夹中添加适当的web.config来定义您的端点和服务配置等。

Your WCF service will now be reachable at the website's base address, plus the name of the *.svc file, eg 您现在可以通过网站的基本地址以及* .svc文件的名称访问您的WCF服务。

http://myserver/someweb/Myservice.svc http://myserver/someweb/Myservice.svc

Your *.svc would look something like this: 您的* .svc看起来像这样:

The Service= attributes denotes the class implementing the service - fully qualified with its namespace. Service =属性表示实现服务的类-完全符合其名称空间。

What is the .\\bin folder in point 3. ? 第3点中的。\\ bin文件夹是什么? Where can I find it? 在哪里可以找到它?

I need the exact settings for the property page tabs of the website please. 我需要网站属性页选项卡的确切设置。 Also the address: http://myserver/someweb/Myservice.svc ... What is the someweb ? 还有地址: http://myserver/someweb/Myservice.svc ... someweb是什么? the physical directory of the website? 网站的物理目录? or the base address from the webconfig file? 还是来自webconfig文件的基址?

An exact step for step guide with all needed settings would be great. 具有所有必需设置的分步指南的准确步骤将非常有用。

For the '/bin', manually create it in the root of the website you create and copy the assemblies into it. 对于“ / bin”,在您创建的网站的根目录中手动创建它,并将程序集复制到其中。

Create the .svc in the root of the website and access it using a similiar url to; 在网站的根目录中创建.svc,并使用类似的网址访问;

http://yourwebsitename/service.svc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM