簡體   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