yodeski / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Nuget 1.8.0 Install Errors #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update/Install MiniProfiler + .MVC + .EF
2. Compile/run

Upon install from nuget, there was an extra } in the App_Start/MiniProfiler.cs 
file that was breaking the build...

I was using my own (no built-in) GetProfiledContext, which referenced 
ProfiledDbConnection.Get.  That no longer exists and was erroring out.  I 
commented it out and reverted my profiled context back to a direct context...

I removed my now unnecessary code wiring up the start/stop profiler & wrapping 
the view engines.

Once I got the solution to compile, the site was dying because it couldn't find 
1.7.0.  My web.config had been modified.  I had system.data 
w/DbProviderFactories below my connection strings, it was now at the bottom of 
the file.  The relocation isn't an issue, but it was still referencing 1.7.0.  
I updated that to 1.8.0 and the site loaded.

I've added my connection string information to the factory connection and 
configured the Database.DefaultConnectionFactory.  No SQL profiling :-(  (is 
this code first only?)

I've tried using ObjectContextUtils.GetProfiledContext to wrap my context, but 
I'm getting "Failed to find or load the registered .Net Framework Data 
Provider."

What is the expected output? What do you see instead?
The profiling I had with 1.7.0 ;-)

What version of the product are you using? On what operating system?
1.8.0 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by b...@dillfamily.org on 28 Aug 2011 at 4:06

GoogleCodeExporter commented 9 years ago
web.config is going to need: 

 <remove invariant="MvcMiniProfiler.Data.ProfiledDbProvider" />
      <add name="MvcMiniProfiler.Data.ProfiledDbProvider" invariant="MvcMiniProfiler.Data.ProfiledDbProvider"
        description="MvcMiniProfiler.Data.ProfiledDbProvider"
        type="MvcMiniProfiler.Data.ProfiledDbProviderFactory, MvcMiniProfiler.EntityFramework, Version=1.8.0.0, Culture=neutral, PublicKeyToken=b44f9351044011a3" />

note the extra .EntityFramework thing there ...

Will clean up the pack tomorrow first thing

Original comment by sam.saff...@gmail.com on 28 Aug 2011 at 11:40

GoogleCodeExporter commented 9 years ago
That worked like a champ, thanks :-)  I can't believe I didn't see that...

Original comment by b...@dillfamily.org on 29 Aug 2011 at 2:23

GoogleCodeExporter commented 9 years ago

Original comment by sam.saff...@gmail.com on 29 Aug 2011 at 3:14