最近、共有ホスティングから GoDaddy の vps に切り替えました。共有ホスティングで問題なく動作する Web サービスがありました。私は自分のvpsの下でそれを機能させようとしています。リンクに移動すると、継続的に 500 - 内部エラーが発生します。
IIS でアプリケーションとして設定し、統合パイプを使用して独自のアプリケーション プールを作成しました。
他に何がこの問題を引き起こしている可能性があるかについてのアイデアはありますか?
編集 1: アプリケーション プールをサイトと同じアプリケーション プールを使用するように切り替えると、代わりに次のエラーが表示されます: 「パーサー エラーの説明: この要求を処理するために必要なリソースの解析中にエラーが発生しました。特定の解析エラーの詳細を確認し、ソース ファイルを適切に変更します。
パーサー エラー メッセージ: ページには <%@ webservice class="MyNamespace.MyClass" ... %> ディレクティブが必要です。
ソース エラー:
行 1: これはプリコンパイル ツールによって生成されたマーカー ファイルであり、削除しないでください。
ソース ファイル: /webservices/namesearch.asmx 行: 1 "
これが私のweb.configです
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<customErrors mode="Off"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
</system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
</configuration>
EDIT 2:そのパーサーエラーで、「ソースエラー:
行 1: これはプリコンパイル ツールによって生成されたマーカー ファイルであり、削除しないでください。
だから私はWebサービスでプリコンパイルをしようとしました。これを行うと、「アプリケーション レベルを超えて allowDefinition='machinetoapplication' として登録されたセクションを使用するのはエラーです。このエラーは、iis でアプリケーションとして構成されていない仮想ディレクトリが原因である可能性があります」というエラーが表示されます。