webconfig error in IIS 10.0 HTTP Error 500.19 - Internal Server Error

0

got this problem after deploying my web package to IIS:

HTTP Error 500.19 - Internal Server Error the requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x8007000d Config Error
Config File \?\C:\inetpub\wwwroot\LLWR\web.config Requested URL http://localhost:80/LLWR Physical Path C:\inetpub\wwwroot\LLWR Logon Method Not yet determined Logon User Not yet determined Config Source: -1: 0:

I have analysed all the related site, and Installed IIS URL Rewrite Module2

I can understand that my webconfig file is the error. but i could'nt find which one I'm missing.

Actually I'm using webapi is my serverside and angularjs is frontend

Its my webconfig file

<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please 
   visit
  http://go.microsoft.com/fwlink/?LinkId=301879
  -->
  <configuration>
   <connectionStrings>
     <add name="llwrDb" connectionString="data source=46.32.249.28;Initial 
   Catalog=LLWRTEST; User ID=sa;Password=Ourtechteam1@" />
   </connectionStrings>
   <appSettings />
   <!--<system.web>
    <compilation debug="true" targetFramework="4.5.2"/>
    <httpRuntime targetFramework="4.5.2"/>
    <httpModules>
      <add name="ApplicationInsightsWebTracking" 
   type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, 
   Microsoft.AI.Web"/>
    </httpModules>
  </system.web>-->
   <!--<system.webServer>
    <handlers>
      <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
      <remove name="OPTIONSVerbHandler"/>
      <remove name="TRACEVerbHandler"/>
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" 
     type="System.Web.Handlers.TransferRequestHandler"
        preCondition="integratedMode,runtimeVersionv4.0"/>
    </handlers>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="ApplicationInsightsWebTracking"/>
      <add name="ApplicationInsightsWebTracking" 
     type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, 
    Microsoft.AI.Web"
        preCondition="managedHandler"/>
    </modules>
   </system.webServer>-->
   <system.webServer>
    <rewrite>
      <rules>
        <rule name="AngularJS Routes" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" 
          />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" 
            negate="true" />
            <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
          </conditions>
          <action type="Rewrite" url="/" />
        </rule>
      </rules>
     </rewrite>
     <httpProtocol>
      <customHeaders>
        <remove name="X-Powered-By" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" 
          publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" 
              />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" 
       publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" 
           />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages" 
          publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" 
            />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" 
           publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" 
            />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" 
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, 
    Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, 
         Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4"
        compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" 

   type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, 
       Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, 
          Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 
          /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    </compilers>
  </system.codedom>
  <system.web>
    <compilation debug="true" />
  </system.web>
</configuration>

can someone help to fix this? Any help would be greatly appreciated. Thank you.

asp.net
web-config
iis-10
asked on Stack Overflow Jan 4, 2018 by Ahalya

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0