简体   繁体   English

如何在Visual Studio 2012中获取asmx Web服务文件?

[英]How do I get the asmx web service file in Visual Studio 2012?

I need to deploy a asmx web service to a server. 我需要将asmx Web服务部署到服务器。 I can run the service locally and it runs fine but where is the asmx file kept? 我可以在本地运行该服务,并且运行良好,但是asmx文件保存在哪里? In my project folder I can only see the solution file. 在我的项目文件夹中,我只能看到解决方案文件。 This is my first time dealing with web services so forgive me if this is a stupid question. 这是我第一次处理Web服务,如果这是一个愚蠢的问题,请原谅。 The service is written in C# if that makes a difference. 如果有区别,该服务将使用C#编写。

On your project, select Build Menu -> Publish . 在您的项目上,选择Build Menu -> Publish There are many publish method, but for simple way, you can choose File System . 发布方法有很多,但为简单起见,可以选择File System Define Your Target Location and click Publish . 定义您的Target Location ,然后单击Publish When it's Done, go to your Target Location using Windows Explorer and you will get all file that need to move to your IIS server virtual directory. 完成后,使用Windows资源管理器转到Target Location ,您将获得所有需要移至IIS服务器虚拟目录的文件。

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

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