Asp.net Webサイトを開発しましたが、ブラウザーからもLANからもアクセスできます。次に、Webサイトを公開し、公開したWebサイトを仮想ディレクトリに配置して、ブラウザーからアクセスしようとしました。これは私にエラーを与えます。
構成エラー
Description: An error occurred during the processing of a configuration file required to service this request.
Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
This error can be caused by a virtual directory not being configured as an application in IIS.
私の知る限り、サイトが公開されている場合、サイトのファイルを含むディレクトリまでのURLを指定すると、Default.aspx
ファイルが自動的に開かれるはずですが、代わりにディレクトリリストが表示されます。そこからDefault.aspxを開くと、エラーが発生します。
では、公開されたサイトからアクセスしているときにエラーが発生する理由と、公開されているサイトと公開されていないサイトにアクセスする場合の違いを教えてください。
更新:私のIISスクリーンショット: