title: Deploy Asp.net Application on IIS 7
body: <p>I am deploying Asp.net Application at IIS server getting this error, But when i  run this application my server its fine and give no problem .I have one html static web site in  that html site folder i made tool folder, In that tool folder i deploy my asp.net application ,</p>
  
  <pre><code> 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 &lt;customErrors&gt; tag within a "web.config" configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its "mode" attribute set to "Off".
  
  
   &lt;!-- Web.Config Configuration File --&gt;
  
  &lt;configuration&gt;
  &lt;system.web&gt;
      &lt;customErrors mode="Off"/&gt;
     &lt;/system.web&gt;
     &lt;/configuration&gt;
  
     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 &lt;customErrors&gt; configuration tag to point to a custom error page URL.
  
  
    &lt;!-- Web.Config Configuration File --&gt;
  
    &lt;configuration&gt;
     &lt;system.web&gt;
      &lt;customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/&gt;
   &lt;/system.web&gt;
   &lt;/configuration&gt;
  </code></pre>
  
  <p>Here is my Web.config</p>
  
  <pre><code>      &lt;?xml version="1.0"?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  &lt;configuration&gt;
  &lt;system.web&gt;
  &lt;authorization&gt;
  &lt;allow roles="administrators" /&gt;
  &lt;deny users="*" /&gt;
  &lt;/authorization&gt;
  &lt;/system.web&gt;
    &lt;connectionStrings&gt;
      &lt;add name="ConnectionStringName" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source='|DataDirectory|\mfaridalam1.accdb'; Persist Security Info=False"/&gt;
    &lt;/connectionStrings&gt;
  
      &lt;system.web&gt;
          &lt;compilation debug="true" targetFramework="4.0"&gt;
              &lt;assemblies&gt;
                  &lt;add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/&gt;
                  &lt;add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
                  &lt;add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;&lt;/assemblies&gt;&lt;/compilation&gt;
          &lt;authentication mode="Forms"&gt;
              &lt;forms loginUrl="~/Account/Login.aspx" timeout="2880"/&gt;
          &lt;/authentication&gt;
          &lt;membership&gt;
              &lt;providers&gt;
                  &lt;clear/&gt;
                  &lt;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="/"/&gt;
              &lt;/providers&gt;
          &lt;/membership&gt;
          &lt;profile&gt;
              &lt;providers&gt;
                  &lt;clear/&gt;
                  &lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/&gt;
              &lt;/providers&gt;
          &lt;/profile&gt;
          &lt;roleManager enabled="true"&gt;
              &lt;providers&gt;
                  &lt;clear/&gt;
                  &lt;add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/&gt;
                  &lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/&gt;
              &lt;/providers&gt;
          &lt;/roleManager&gt;
      &lt;/system.web&gt;
         &lt;system.webServer&gt;
          &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
      &lt;/system.webServer&gt;
  
         &lt;system.web&gt;
         &lt;httpHandlers&gt;
        &lt;add verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" /&gt;
        &lt;/httpHandlers&gt;
       &lt;/system.web&gt;
       &lt;system.webServer&gt;
        &lt;handlers&gt;
          &lt;add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" /&gt;
        &lt;/handlers&gt;
        &lt;/system.webServer&gt;
       &lt;location path="AjaxFileUploadHandler.axd"&gt;
        &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*"/&gt;
        &lt;/authorization&gt;
        &lt;/system.web&gt;
  
        &lt;/location&gt;
  
  
      &lt;/configuration&gt;
  </code></pre>
  
  <p>Here is SS of error<br>
  <img src="https://i.stack.imgur.com/Vmp2X.png" alt="enter image description here"></p>