Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mini-profiler-resources/includes.js?v= 404 not found error on v3.2.0 #660

Open
bhwebxu opened this issue Sep 5, 2023 · 1 comment
Open

Comments

@bhwebxu
Copy link

bhwebxu commented Sep 5, 2023

MiniProfiler v3.2.0 includes.js 404 not found

Demo from tag v3.2.0

I clone the demo v3.2.0 from https://github.com/MiniProfiler/dotnet/tree/v3.2.0/Sample.WebForms
1

I change system.webServer config section from section1 to section2 and change NET Framework target version from 4.0 to 4.5.1 (because by project is 4.5.1 and no item runAllManagedModulesForAllRequests ) all working well for me

demo web.config

<?xml version="1.0"?>
<configuration>
  <connectionStrings>
    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <system.web>
    <compilation debug="true" targetFramework="4.5.1"/>
  </system.web>
  <!--<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>-->
	<system.webServer>
		<modules>
			<remove name="UrlRoutingModule-4.0" />
			<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
		</modules>
	</system.webServer>
</configuration>

section1

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

section2

<system.webServer>
<modules>
	<remove name="UrlRoutingModule-4.0" />
	<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
</modules>
</system.webServer>

My project

ASP.NET WebForm
NET Framework 4.5.1
MVC ( use System.Web.Http.Routing and not refrence ASP.NET MVC libs )

my project web.config

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  </configSections>
  <connectionStrings>
  </connectionStrings>
  <system.web>
    <compilation debug="true" targetFramework="4.5.1"/>
  </system.web>
  <!--<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>-->
  <system.webServer>
    <!--<modules>
      <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
    </modules>-->
    <!--<handlers>
      <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
    </handlers>-->
  </system.webServer>
  <entityFramework>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
    </providers>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  </entityFramework>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="10.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

It was failed when i try the section1 or section2 on my project web.config

1

@bhwebxu bhwebxu changed the title mini-profiler-resources/includes.js?v= 404 not found error mini-profiler-resources/includes.js?v= 404 not found error on v3.2.0 Sep 5, 2023
@NickCraver
Copy link
Member

I'd see how this behaves on the latest version - 3.2.0 is from 8 years ago and no longer something I can reasonably support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants