現在、ac# asp.net Web プロジェクトに取り組んでおり、iis7 で使用する SOAP サービスをインストールしようとしています。
Only files need to run the application
パッケージ/発行設定ウィンドウで選択して、Visual Studio を使用して展開パッケージをビルドしました。
次に、ビルドされたパッケージのコンテンツを Web サイト内の場所にコピーしましたが、使用してサービスにアクセスしようとすると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 ファイルは必要ないと思います。
ご協力いただきありがとうございます。