Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> BCLExtensions issue with v5.2 and ORMProfiler
 

Pages: 1
Bugs & Issues
BCLExtensions issue with v5.2 and ORMProfiler
Page:1/1 

  Print all messages in this thread  
Poster Message
jovball
User



Location:
USA
Joined on:
23-Jan-2005 19:53:47
Posted:
393 posts
# Posted on: 23-May-2017 06:37:23.  
I'm getting an exception when I use ORMProfiler with v5.2

Code:

System.IO.FileNotFoundException was unhandled
Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'SD.Tools.BCLExtensions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a3f87088dcb994e1' or one of its dependencies. The system cannot find the file specified.



This happens when I initialize the Interceptor.

Code:

SD.Tools.OrmProfiler.Interceptor.InterceptorCore.Initialize("MyApp");


I can resolve it with a runtime redirect but I'd prefer not to need that.
Code:

     <dependentAssembly>
        <assemblyIdentity name="SD.Tools.BCLExtensions" publicKeyToken="a3f87088dcb994e1" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
     </dependentAssembly>


I'm guessing that a new build of ORMProfiler with the updated BCLExtensions assembly would fix that. Any chance of that happening?
Joel Reinford
LLBLGenPro Version: 5.5.3
Templates: Adapter
Framework: .Net 4.6
Database: SQL Server 2012/2014, DB2 v10
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37605 posts
# Posted on: 23-May-2017 09:33:30.  
Did you install the interceptor from nuget? If you install it from nuget the assembly redirects should be made automatically.

We never noticed this to be honest, as the usage of the profiler during 5.2 was done using the nuget version, and we never had a problem.

Also, if you use the interceptor dll from a local folder, it comes with bclextensions 1.0, or did you reference 1.1 in your own code?


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
jovball
User



Location:
USA
Joined on:
23-Jan-2005 19:53:47
Posted:
393 posts
# Posted on: 23-May-2017 13:08:32.  
Our configuration pattern is slightly different and that is probably causing our issue. We've been using LLBLGen and ORMProfiler long before they were available via NuGet. Our method of referencing the dll files has been through file references.

Code:

    <Reference Include="SD.Tools.OrmProfiler.Interceptor.NET45">
     <HintPath>..\Lib\LLBLGen\SD.Tools.OrmProfiler.Interceptor.NET45.dll</HintPath>
    </Reference>


That same folder (..\Lib\LLBLGen) has the dll files for both ORMProfiler and LLBLGen. In making the changes to v5.2, I updated the BCLExtensions dll in that folder.

I'll try using a NuGet reference to ORMProfiler instead and see what happens with that.
Joel Reinford
LLBLGenPro Version: 5.5.3
Templates: Adapter
Framework: .Net 4.6
Database: SQL Server 2012/2014, DB2 v10
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37605 posts
# Posted on: 23-May-2017 13:36:35.  
aaah then that's the cause Regular Smiley Indeed if you build the driver of DB2 against 5.2, you indeed will reference 1.1.0.0 of BCL extensions, and that doesn't match with 1.0.0.0 of the interceptor. Normally one doesn't run into this as BCL extensions normally aren't present in the build output folder of someone's project, yet in your specific case it is.

Sorry for this problem, an assembly redirect will suffice:

Code:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity name="SD.Tools.BCLExtensions" publicKeyToken="a3f87088dcb994e1" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="1.1.0.0" />
        </dependentAssembly>
    </assemblyBinding>
</runtime>


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.