[英]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文件。
感谢您的任何帮助,您可以提供。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.