0

このエラーが発生するIISサーバーにAsp.netアプリケーションを展開していますが、このアプリケーションを実行すると、サーバーは問題なく問題ありません。そのhtmlサイトフォルダーに1つのhtml静的Webサイトがあり、そのツールフォルダーにツールフォルダーを作成しました私は自分のasp.netアプリケーションを展開し、

 Server Error in '/' Application.
     Runtime Error

  Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

 Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


 <!-- Web.Config Configuration File -->

<configuration>
<system.web>
    <customErrors mode="Off"/>
   </system.web>
   </configuration>

   Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


  <!-- Web.Config Configuration File -->

  <configuration>
   <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
 </system.web>
 </configuration>

ここに私のWeb.configがあります

      <?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
<system.web>
<authorization>
<allow roles="administrators" />
<deny users="*" />
</authorization>
</system.web>
  <connectionStrings>
    <add name="ConnectionStringName" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source='|DataDirectory|\mfaridalam1.accdb'; Persist Security Info=False"/>
  </connectionStrings>

    <system.web>
        <compilation debug="true" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
        <authentication mode="Forms">
            <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
        </authentication>
        <membership>
            <providers>
                <clear/>
                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
            </providers>
        </membership>
        <profile>
            <providers>
                <clear/>
                <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
            </providers>
        </profile>
        <roleManager enabled="true">
            <providers>
                <clear/>
                <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
                <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
            </providers>
        </roleManager>
    </system.web>
       <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>

       <system.web>
       <httpHandlers>
      <add verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" />
      </httpHandlers>
     </system.web>
     <system.webServer>
      <handlers>
        <add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" />
      </handlers>
      </system.webServer>
     <location path="AjaxFileUploadHandler.axd">
      <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
      </system.web>

      </location>


    </configuration>

エラーのSSはこちら
ここに画像の説明を入力

4

3 に答える 3

0

iis から Web サイトを削除し、iis を再起動してみてください。同時に、プロジェクトをクリーンアップして再構築します。次に、適切な場所に公開してみてください。仮想ディレクトリを作成していますか?

于 2013-07-30T11:30:02.567 に答える
0

サーバーにアクセスでき、Windows サーバーを使用している場合は、ブラウザーで Web サイトを開いてみてください。失敗した場合は、Windows のイベント ビューアー -> Windows ログを調べて、エラーを確認します。

于 2013-07-30T12:41:54.997 に答える