简体   繁体   English

如何手动将Web服务部署到IIS

[英]How to manually deploy a webservice to IIS

I have a .NET 4.0 WebService written in C#. 我有一个用C#编写的.NET 4.0 WebService。 My IIS installation (under Windows Seven) is IIS 7.5.xxx . 我的IIS安装(在Windows 7下)是IIS 7.5.xxx

When I compile my web service and the libraries that it uses, I can get assemblies in the bin directories in the respective projects. 当我编译我的Web服务及其使用的库时,我可以在各个项目的bin目录中获取程序集。 I would like to understand how to manually place these assemblies in my web service so that the web service can run. 我想了解如何手动将这些程序集放在我的Web服务中,以便Web服务可以运行。 Is it just a matter of putting assemblies in the bin directory of the WebService directory where my Application is set? 是否只是将程序集放在我的应用程序所在的WebService目录的bin目录中? I also think that, somehow, the Web.Config needs some care. 我也认为,不知何故, Web.Config需要一些关心。

I know there is a procedure to publish the web service, but I would like to know how this can be done just without using Visual Studio and all its stuff. 我知道有一个发布 Web服务的过程,但我想知道如何在不使用Visual Studio及其所有内容的情况下完成此操作。

Well, what have you tried? 嗯,你有什么尝试?

Yes, dumping the bin folder in an IIS application, where that application contains a web.config that's been set up to host a service that's present in an assembly in your bin folder will do the trick. 是的,将bin文件夹转储到IIS应用程序中,其中该应用程序包含一个web.config,该文件已设置为托管bin文件夹中程序集中存在的服务。

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

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