title: Application insights page views and requests are not being logged
body: <p>I manually installed Application Insights into an already existing ASP.Net MVC webapplication and added an instrumentation key to the config file. This is all fine as I can see a ton of dependency data showing up in the Azure portal.</p>
  
  <p>However, page views or requests are not being picked in the dashboard, nor in Visual Studio itself. So I'm wondering, did I miss something in the configuration?</p>
  
  <p><code>ApplicationInsights.config</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings"&gt;
  
    &lt;InstrumentationKey&gt;REDACTED&lt;/InstrumentationKey&gt;
    &lt;TelemetryInitializers&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.BuildInfoConfigComponentVersionTelemetryInitializer, Microsoft.AI.WindowsServer"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.WebTestTelemetryInitializer, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.SyntheticUserAgentTelemetryInitializer, Microsoft.AI.Web"&gt;
        &lt;!-- Extended list of bots:
              search|spider|crawl|Bot|Monitor|BrowserMob|BingPreview|PagePeeker|WebThumb|URL2PNG|ZooShot|GomezA|Google SketchUp|Read Later|KTXN|KHTE|Keynote|Pingdom|AlwaysOn|zao|borg|oegp|silk|Xenu|zeal|NING|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|Java|JNLP|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|vortex|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|voyager|archiver|Icarus6j|mogimogi|Netvibes|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|wsr-agent|http client|Python-urllib|AppEngine-Google|semanticdiscovery|facebookexternalhit|web/snippet|Google-HTTP-Java-Client--&gt;
        &lt;Filters&gt;search|spider|crawl|Bot|Monitor|AlwaysOn&lt;/Filters&gt;
      &lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.ClientIpHeaderTelemetryInitializer, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.OperationNameTelemetryInitializer, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.OperationCorrelationTelemetryInitializer, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.UserTelemetryInitializer, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.AuthenticatedUserIdTelemetryInitializer, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.AccountIdTelemetryInitializer, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.SessionTelemetryInitializer, Microsoft.AI.Web"/&gt;
    &lt;/TelemetryInitializers&gt;
    &lt;TelemetryModules&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.DependencyCollector.DependencyTrackingTelemetryModule, Microsoft.AI.DependencyCollector"&gt;
        &lt;ExcludeComponentCorrelationHttpHeadersOnDomains&gt;
          &lt;!-- 
          Requests to the following hostnames will not be modified by adding correlation headers.         
          Add entries here to exclude additional hostnames.
          NOTE: this configuration will be lost upon NuGet upgrade.
          --&gt;
          &lt;Add&gt;core.windows.net&lt;/Add&gt;
          &lt;Add&gt;core.chinacloudapi.cn&lt;/Add&gt;
          &lt;Add&gt;core.cloudapi.de&lt;/Add&gt;
          &lt;Add&gt;core.usgovcloudapi.net&lt;/Add&gt;
          &lt;Add&gt;localhost&lt;/Add&gt;
          &lt;Add&gt;127.0.0.1&lt;/Add&gt;
        &lt;/ExcludeComponentCorrelationHttpHeadersOnDomains&gt;
        &lt;IncludeDiagnosticSourceActivities&gt;
          &lt;Add&gt;Microsoft.Azure.EventHubs&lt;/Add&gt;
          &lt;Add&gt;Microsoft.Azure.ServiceBus&lt;/Add&gt;
        &lt;/IncludeDiagnosticSourceActivities&gt;
      &lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector"&gt;
        &lt;!--
        Use the following syntax here to collect additional performance counters:
  
        &lt;Counters&gt;
          &lt;Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" /&gt;
          ...
        &lt;/Counters&gt;
  
        PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName
  
        NOTE: performance counters configuration will be lost upon NuGet upgrade.
  
        The following placeholders are supported as InstanceName:
          ??APP_WIN32_PROC?? - instance name of the application process  for Win32 counters.
          ??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters.
          ??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters.
        --&gt;
      &lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.AppServicesHeartbeatTelemetryModule, Microsoft.AI.WindowsServer"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureInstanceMetadataTelemetryModule, Microsoft.AI.WindowsServer"&gt;
        &lt;!--
        Remove individual fields collected here by adding them to the ApplicationInsighs.HeartbeatProvider 
        with the following syntax:
  
        &lt;Add Type="Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsTelemetryModule, Microsoft.ApplicationInsights"&gt;
          &lt;ExcludedHeartbeatProperties&gt;
            &lt;Add&gt;osType&lt;/Add&gt;
            &lt;Add&gt;location&lt;/Add&gt;
            &lt;Add&gt;name&lt;/Add&gt;
            &lt;Add&gt;offer&lt;/Add&gt;
            &lt;Add&gt;platformFaultDomain&lt;/Add&gt;
            &lt;Add&gt;platformUpdateDomain&lt;/Add&gt;
            &lt;Add&gt;publisher&lt;/Add&gt;
            &lt;Add&gt;sku&lt;/Add&gt;
            &lt;Add&gt;version&lt;/Add&gt;
            &lt;Add&gt;vmId&lt;/Add&gt;
            &lt;Add&gt;vmSize&lt;/Add&gt;
            &lt;Add&gt;subscriptionId&lt;/Add&gt;
            &lt;Add&gt;resourceGroupName&lt;/Add&gt;
          &lt;/ExcludedHeartbeatProperties&gt;
        &lt;/Add&gt;
  
        NOTE: exclusions will be lost upon upgrade.
        --&gt;
      &lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer"&gt;
        &lt;!--&lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.FirstChanceExceptionStatisticsTelemetryModule, Microsoft.AI.WindowsServer"&gt;--&gt;
      &lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web"&gt;
        &lt;Handlers&gt;
          &lt;!-- 
          Add entries here to filter out additional handlers: 
  
          NOTE: handler configuration will be lost upon NuGet upgrade.
          --&gt;
          &lt;Add&gt;Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler&lt;/Add&gt;
          &lt;Add&gt;System.Web.StaticFileHandler&lt;/Add&gt;
          &lt;Add&gt;System.Web.Handlers.AssemblyResourceLoader&lt;/Add&gt;
          &lt;Add&gt;System.Web.Optimization.BundleHandler&lt;/Add&gt;
          &lt;Add&gt;System.Web.Script.Services.ScriptHandlerFactory&lt;/Add&gt;
          &lt;Add&gt;System.Web.Handlers.TraceHandler&lt;/Add&gt;
          &lt;Add&gt;System.Web.Services.Discovery.DiscoveryRequestHandler&lt;/Add&gt;
          &lt;Add&gt;System.Web.HttpDebugHandler&lt;/Add&gt;
        &lt;/Handlers&gt;
      &lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.ExceptionTrackingTelemetryModule, Microsoft.AI.Web"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Web.AspNetDiagnosticTelemetryModule, Microsoft.AI.Web"/&gt;
    &lt;/TelemetryModules&gt;
    &lt;ApplicationIdProvider Type="Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId.ApplicationInsightsApplicationIdProvider, Microsoft.ApplicationInsights"/&gt;
    &lt;TelemetryProcessors&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.Extensibility.AutocollectedMetricsExtractor, Microsoft.ApplicationInsights"/&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel"&gt;
        &lt;MaxTelemetryItemsPerSecond&gt;5&lt;/MaxTelemetryItemsPerSecond&gt;
        &lt;ExcludedTypes&gt;Event&lt;/ExcludedTypes&gt;
      &lt;/Add&gt;
      &lt;Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel"&gt;
        &lt;MaxTelemetryItemsPerSecond&gt;5&lt;/MaxTelemetryItemsPerSecond&gt;
        &lt;IncludedTypes&gt;Event&lt;/IncludedTypes&gt;
      &lt;/Add&gt;
    &lt;/TelemetryProcessors&gt;
    &lt;TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/&gt;
  &lt;!-- 
      Learn more about Application Insights configuration with ApplicationInsights.config here: 
      http://go.microsoft.com/fwlink/?LinkID=513840
  
      Note: If not present, please add &lt;InstrumentationKey&gt;Your Key&lt;/InstrumentationKey&gt; to the top of this file.
    --&gt;&lt;/ApplicationInsights&gt;
  </code></pre>
  
  <p><code>Web.config</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=301880
    --&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
  
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
      &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
    &lt;/configSections&gt;
    &lt;connectionStrings&gt;
  
    &lt;/connectionStrings&gt;
    &lt;appSettings&gt;
      &lt;add key="webpages:Version" value="3.0.0.0" /&gt;
      &lt;add key="webpages:Enabled" value="false" /&gt;
      &lt;add key="ClientValidationEnabled" value="true" /&gt;
      &lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt;       
      &lt;add key="aspnet:MaxJsonDeserializerMembers" value="1500000" /&gt;
      &lt;add key="SessionTimeoutDurationInMinutes" value="30" /&gt;
      &lt;add key="LogFile" value="C:\tmp\log.log"/&gt;
      &lt;add key="UseNLogSqlLogger" value="False"/&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.5.2" /&gt;
      &lt;httpRuntime targetFramework="4.5.2" maxRequestLength="10485760" /&gt;
      &lt;httpModules&gt;
        &lt;add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" /&gt;
      &lt;/httpModules&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;!-- Temporary fix until steekproeven scherm is refactored --&gt;
      &lt;httpErrors existingResponse="PassThrough" /&gt;
      &lt;handlers&gt;
        &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
        &lt;remove name="OPTIONSVerbHandler" /&gt;
        &lt;remove name="TRACEVerbHandler" /&gt;
        &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /&gt;
      &lt;/handlers&gt;
      &lt;security&gt;
        &lt;requestFiltering&gt;
          &lt;requestLimits maxAllowedContentLength="4294967295" /&gt;
        &lt;/requestFiltering&gt;
      &lt;/security&gt;
      &lt;modules&gt;
         &lt;remove name="FormsAuthentication" /&gt;
        &lt;remove name="ApplicationInsightsWebTracking" /&gt;
        &lt;add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" /&gt;
      &lt;/modules&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
    &lt;/system.webServer&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="LinqKit" publicKeyToken="bc217f8844052a91" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-1.1.7.1" newVersion="1.1.7.1" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" /&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
    &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /&gt;
      &lt;providers&gt;
        &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
      &lt;/providers&gt;
    &lt;/entityFramework&gt;
    &lt;system.codedom&gt;
      &lt;compilers&gt;
        &lt;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" /&gt;
        &lt;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=\&amp;quot;Web\&amp;quot; /optionInfer+" /&gt;
      &lt;/compilers&gt;
    &lt;/system.codedom&gt;
  &lt;/configuration&gt;
  </code></pre>