[英]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.