繁体   English   中英

在IIS7中运行C#ASP.net Soap Web服务

[英]Running C# ASP.net Soap Web Service in IIS7

我目前正在ac#asp.net Web项目上工作,我正在尝试安装要在iis7中使用的soap服务。

我已使用Visual Studio通过在“程序包/发布设置”窗口中选择“ Only files need to run the application来构建部署程序包。

然后,我已将构建包的内容复制到网站内的某个位置,但是当我尝试使用http://localhost/EmailSoapService/EmailSoapService.asmx访问该服务时,却出现了错误。 我得到的错误是

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not create type 'EmailSoapService.EmailSoapService'.

Source Error: 


Line 1:  <%@ WebService Language="C#" CodeBehind="EmailSoapService.asmx.cs" Class="EmailSoapService.EmailSoapService" %>

Source File: /EmailSoapService/EmailSoapService.asmx    Line: 1 

Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456

我不明白为什么它说找不到.cs文件。 诚然,这不在服务器上,但是由于我选择仅导出运行该应用程序所需的内容,因此我假定Web服务器上不需要.cs文件。

感谢您的任何帮助,您可以提供。

构建软件包通常由“ bootstrap”可执行文件组成,该可执行文件会启动该软件包的安装程序。 听起来好像您已复制软件包,但未安装软件包,因此该站点认为它需要核心.cs文件来容纳请求。 您不能只复制构建/部署程序包-通常需要将其部署到目标服务器。

您可能会在这里找到一些额外的见解 希望这会有所帮助。 祝好运!

暂无
暂无

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

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