title: HTTP Error 500.19 - Internal Server Error(not able to host)
body: <p>I am trying to Host this website in IIS and run, but it is showing &quot;HTTP Error 500.19 - Internal Server Error&quot;.
  I have change applicationHost.config file but that doesn't help.
  When i am running the project from Visual Studio 10 it runs properly but when i publish the project and host in IIS it gives this same error (&quot;HTTP Error 500.19 - Internal Server Error&quot;).</p>
  <p>My web.config code is here</p>
  <pre><code>    &lt;?xml version=&quot;1.0&quot;?&gt;
      &lt;!-- 
      Note: As an alternative to hand editing this file you can use the 
      web admin tool to configure settings for your application. Use
      the Website-&gt;Asp.Net Configuration option in Visual Studio.
      A full list of settings and comments can be found in 
      machine.config.comments usually located in 
      \Windows\Microsoft.Net\Framework\v2.x\Config 
  --&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name=&quot;system.web.extensions&quot; type=&quot;System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;&gt;
        &lt;sectionGroup name=&quot;scripting&quot; type=&quot;System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;&gt;
          &lt;section name=&quot;scriptResourceHandler&quot; type=&quot;System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;/&gt;
          &lt;sectionGroup name=&quot;webServices&quot; type=&quot;System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;&gt;
            &lt;section name=&quot;jsonSerialization&quot; type=&quot;System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;Everywhere&quot;/&gt;
            &lt;section name=&quot;profileService&quot; type=&quot;System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;/&gt;
            &lt;section name=&quot;authenticationService&quot; type=&quot;System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;/&gt;
            &lt;section name=&quot;roleService&quot; type=&quot;System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;/&gt;
          &lt;/sectionGroup&gt;
        &lt;/sectionGroup&gt;
      &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
    &lt;appSettings&gt;
      &lt;add key=&quot;Telerik.Skin&quot; value=&quot;Metro&quot;/&gt;
      &lt;add key=&quot;Telerik.ScriptManager.TelerikCdn&quot; value=&quot;Enabled&quot;/&gt;
      &lt;add key=&quot;Telerik.StyleSheetManager.TelerikCdn&quot; value=&quot;Enabled&quot;/&gt;
      &lt;!--&lt;add key=&quot;CrystalImageCleaner-AutoStart&quot; value=&quot;true&quot;/&gt;
      &lt;add key=&quot;CrystalImageCleaner-Sleep&quot; value=&quot;60000&quot;/&gt;
      &lt;add key=&quot;CrystalImageCleaner-Age&quot; value=&quot;120000&quot;/&gt;--&gt;
    &lt;/appSettings&gt;
    &lt;connectionStrings&gt;
      &lt;add name=&quot;con&quot; connectionString=&quot;Data Source=(local);Initial Catalog=LIBAAZ;Persist Security Info=True;User ID=sa;Password=gvn&quot; providerName=&quot;System.Data.SqlClient&quot;/&gt;
    &lt;/connectionStrings&gt;
    &lt;system.web&gt;
      &lt;!-- 
        Set compilation debug=&quot;true&quot; to insert debugging 
        symbols into the compiled page. Because this 
        affects performance, set this value to true only 
        during development.
      --&gt;
      &lt;compilation debug=&quot;true&quot;&gt;
        &lt;assemblies&gt;
          &lt;add assembly=&quot;Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot;/&gt;
          &lt;add assembly=&quot;Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot;/&gt;
          &lt;!--&lt;add assembly=&quot;CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;
          &lt;add assembly=&quot;CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;
          &lt;add assembly=&quot;CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;
          &lt;add assembly=&quot;CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;
          &lt;add assembly=&quot;CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;
          &lt;add assembly=&quot;CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;
          &lt;add assembly=&quot;CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;--&gt;
          &lt;add assembly=&quot;System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot;/&gt;
          &lt;add assembly=&quot;System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&quot;/&gt;
          &lt;add assembly=&quot;System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
          &lt;add assembly=&quot;System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&quot;/&gt;
          &lt;add assembly=&quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
          &lt;add assembly=&quot;System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&quot;/&gt;
          &lt;add assembly=&quot;System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&quot;/&gt;
        &lt;/assemblies&gt;
        &lt;buildProviders&gt;
          &lt;add extension=&quot;.rdlc&quot; type=&quot;Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;/&gt;
        &lt;/buildProviders&gt;
      &lt;/compilation&gt;
      &lt;pages&gt;
        &lt;controls&gt;
          &lt;add tagPrefix=&quot;telerik&quot; namespace=&quot;Telerik.Web.UI&quot; assembly=&quot;Telerik.Web.UI&quot;/&gt;
          &lt;add tagPrefix=&quot;asp&quot; namespace=&quot;System.Web.UI&quot; assembly=&quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
          &lt;add tagPrefix=&quot;asp&quot; namespace=&quot;System.Web.UI.WebControls&quot; assembly=&quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
        &lt;/controls&gt;
      &lt;/pages&gt;
      &lt;!--
        The &lt;authentication&gt; section enables configuration 
        of the security authentication mode used by 
        ASP.NET to identify an incoming user. 
      --&gt;
      &lt;authentication mode=&quot;Windows&quot;/&gt;
      &lt;!--
        The &lt;customErrors&gt; 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.
  
      &lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;GenericErrorPage.htm&quot;&gt;
        &lt;error statusCode=&quot;403&quot; redirect=&quot;NoAccess.htm&quot; /&gt;
        &lt;error statusCode=&quot;404&quot; redirect=&quot;FileNotFound.htm&quot; /&gt;
      &lt;/customErrors&gt;
      --&gt;
      &lt;httpHandlers&gt;
        &lt;add path=&quot;ChartImage.axd&quot; verb=&quot;*&quot; type=&quot;Telerik.Web.UI.ChartHttpHandler&quot; validate=&quot;false&quot;/&gt;
        &lt;add path=&quot;Telerik.Web.UI.SpellCheckHandler.axd&quot; verb=&quot;*&quot; type=&quot;Telerik.Web.UI.SpellCheckHandler&quot; validate=&quot;false&quot;/&gt;
        &lt;add path=&quot;Telerik.Web.UI.DialogHandler.aspx&quot; verb=&quot;*&quot; type=&quot;Telerik.Web.UI.DialogHandler&quot; validate=&quot;false&quot;/&gt;
        &lt;add path=&quot;Telerik.RadUploadProgressHandler.ashx&quot; verb=&quot;*&quot; type=&quot;Telerik.Web.UI.RadUploadProgressHandler&quot; validate=&quot;false&quot;/&gt;
        &lt;add path=&quot;Telerik.Web.UI.WebResource.axd&quot; verb=&quot;*&quot; type=&quot;Telerik.Web.UI.WebResource&quot; validate=&quot;false&quot;/&gt;
        &lt;add path=&quot;Reserved.ReportViewerWebControl.axd&quot; verb=&quot;*&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; validate=&quot;false&quot;/&gt;
        &lt;!--&lt;add verb=&quot;GET&quot; path=&quot;CrystalImageHandler.aspx&quot; type=&quot;CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot;/&gt;--&gt;
        &lt;remove verb=&quot;*&quot; path=&quot;*.asmx&quot;/&gt;
        &lt;add verb=&quot;*&quot; path=&quot;*.asmx&quot; validate=&quot;false&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
        &lt;add verb=&quot;*&quot; path=&quot;*_AppService.axd&quot; validate=&quot;false&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
        &lt;add verb=&quot;GET,HEAD&quot; path=&quot;ScriptResource.axd&quot; validate=&quot;false&quot; type=&quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
      &lt;/httpHandlers&gt;
      &lt;httpModules&gt;
        &lt;add name=&quot;RadUploadModule&quot; type=&quot;Telerik.Web.UI.RadUploadHttpModule&quot;/&gt;
        &lt;add name=&quot;RadCompression&quot; type=&quot;Telerik.Web.UI.RadCompression&quot;/&gt;
        &lt;add name=&quot;ScriptModule&quot; type=&quot;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
      &lt;/httpModules&gt;
    &lt;/system.web&gt;
    &lt;!-- 
          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.
      --&gt;
    &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration=&quot;false&quot;/&gt;
      &lt;modules&gt;
        &lt;remove name=&quot;ScriptModule&quot;/&gt;
        &lt;remove name=&quot;RadUploadModule&quot;/&gt;
        &lt;add name=&quot;RadUploadModule&quot; type=&quot;Telerik.Web.UI.RadUploadHttpModule&quot; preCondition=&quot;integratedMode,runtimeVersionv2.0&quot;/&gt;
        &lt;remove name=&quot;RadCompression&quot;/&gt;
        &lt;add name=&quot;RadCompression&quot; type=&quot;Telerik.Web.UI.RadCompression&quot; preCondition=&quot;integratedMode,runtimeVersionv2.0&quot;/&gt;
        &lt;add name=&quot;ScriptModule&quot; preCondition=&quot;managedHandler&quot; type=&quot;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
      &lt;/modules&gt;
      &lt;handlers&gt;
        &lt;remove name=&quot;WebServiceHandlerFactory-Integrated&quot;/&gt;
        &lt;remove name=&quot;ScriptHandlerFactory&quot;/&gt;
        &lt;remove name=&quot;ScriptHandlerFactoryAppServices&quot;/&gt;
        &lt;remove name=&quot;ScriptResource&quot;/&gt;
        &lt;remove name=&quot;ChartImage_axd&quot;/&gt;
        &lt;add name=&quot;ChartImage_axd&quot; path=&quot;ChartImage.axd&quot; type=&quot;Telerik.Web.UI.ChartHttpHandler&quot; verb=&quot;*&quot; preCondition=&quot;integratedMode,runtimeVersionv2.0&quot;/&gt;
        &lt;remove name=&quot;Telerik_Web_UI_SpellCheckHandler_axd&quot;/&gt;
        &lt;add name=&quot;Telerik_Web_UI_SpellCheckHandler_axd&quot; path=&quot;Telerik.Web.UI.SpellCheckHandler.axd&quot; type=&quot;Telerik.Web.UI.SpellCheckHandler&quot; verb=&quot;*&quot; preCondition=&quot;integratedMode,runtimeVersionv2.0&quot;/&gt;
        &lt;remove name=&quot;Telerik_Web_UI_DialogHandler_aspx&quot;/&gt;
        &lt;add name=&quot;Telerik_Web_UI_DialogHandler_aspx&quot; path=&quot;Telerik.Web.UI.DialogHandler.aspx&quot; type=&quot;Telerik.Web.UI.DialogHandler&quot; verb=&quot;*&quot; preCondition=&quot;integratedMode,runtimeVersionv2.0&quot;/&gt;
        &lt;remove name=&quot;Telerik_RadUploadProgressHandler_ashx&quot;/&gt;
        &lt;add name=&quot;Telerik_RadUploadProgressHandler_ashx&quot; path=&quot;Telerik.RadUploadProgressHandler.ashx&quot; type=&quot;Telerik.Web.UI.RadUploadProgressHandler&quot; verb=&quot;*&quot; preCondition=&quot;integratedMode,runtimeVersionv2.0&quot;/&gt;
        &lt;remove name=&quot;Telerik_Web_UI_WebResource_axd&quot;/&gt;
        &lt;add name=&quot;Telerik_Web_UI_WebResource_axd&quot; path=&quot;Telerik.Web.UI.WebResource.axd&quot; type=&quot;Telerik.Web.UI.WebResource&quot; verb=&quot;*&quot; preCondition=&quot;integratedMode,runtimeVersionv2.0&quot;/&gt;
        &lt;!--&lt;add name=&quot;CrystalImageHandler.aspx_GET&quot; verb=&quot;GET&quot; path=&quot;CrystalImageHandler.aspx&quot; type=&quot;CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304&quot; preCondition=&quot;integratedMode&quot;/&gt;--&gt;
        &lt;add name=&quot;ScriptHandlerFactory&quot; verb=&quot;*&quot; path=&quot;*.asmx&quot; preCondition=&quot;integratedMode&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
        &lt;add name=&quot;ScriptHandlerFactoryAppServices&quot; verb=&quot;*&quot; path=&quot;*_AppService.axd&quot; preCondition=&quot;integratedMode&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
        &lt;add name=&quot;ScriptResource&quot; verb=&quot;GET,HEAD&quot; path=&quot;ScriptResource.axd&quot; preCondition=&quot;integratedMode&quot; type=&quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
    &lt;system.codedom&gt;
        &lt;compilers&gt;
          &lt;compiler language=&quot;c#;cs;csharp&quot; extension=&quot;.cs&quot; type=&quot;Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; warningLevel=&quot;4&quot;&gt;
            &lt;providerOption name=&quot;CompilerVersion&quot; value=&quot;v3.5&quot;/&gt;
            &lt;providerOption name=&quot;WarnAsError&quot; value=&quot;false&quot;/&gt;
        &lt;/compiler&gt;
          &lt;compiler language=&quot;vb;vbs;visualbasic;vbscript&quot; extension=&quot;.vb&quot; type=&quot;Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; warningLevel=&quot;4&quot;&gt;
            &lt;providerOption name=&quot;CompilerVersion&quot; value=&quot;v3.5&quot;/&gt;
            &lt;providerOption name=&quot;OptionInfer&quot; value=&quot;true&quot;/&gt;
            &lt;providerOption name=&quot;WarnAsError&quot; value=&quot;false&quot;/&gt;
        &lt;/compiler&gt;
      &lt;/compilers&gt;
    &lt;/system.codedom&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding appliesTo=&quot;v2.0.50727&quot; xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name=&quot;System.Web.Extensions&quot; publicKeyToken=&quot;31bf3856ad364e35&quot;/&gt;
          &lt;bindingRedirect oldVersion=&quot;1.0.0.0-1.1.0.0&quot; newVersion=&quot;3.5.0.0&quot;/&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name=&quot;System.Web.Extensions.Design&quot; publicKeyToken=&quot;31bf3856ad364e35&quot;/&gt;
          &lt;bindingRedirect oldVersion=&quot;1.0.0.0-1.1.0.0&quot; newVersion=&quot;3.5.0.0&quot;/&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>Please help solve the problem . I am trying to solve this from last 2 days and after not finding any solution which works for me i am posting here.</p>
  <p><a href="https://i.stack.imgur.com/JjLMD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JjLMD.jpg" alt="Error Image" /></a></p>