'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory' threw an exception.

3 posts, 1 answers
  1. Jonathan
    Jonathan avatar
    81 posts
    Member since:
    Jan 2014

    Posted 03 Jul 2018 Link to this post

    Hi.. 

    Trying to run a report and I'm getting the following error on 

        Flom2K18.Reports.TruckbookReport truckReport = new Flom2K18.Reports.TruckbookReport();

     

    Any ideas?   thx!

     

    The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory' threw an exception. at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](String id, IConfigurationSource configurationSource) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.NameTypeFactoryBase`1.Create(String name) at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase(String name) at Flom2K18.Reports.TruckbookReport..ctor() in C:\Flom2K18\Reports\TruckbookReport.cs:line 35System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory..cctor() === Pre-bind state information === LOG: User = JON_ALIENWARE\jon LOG: DisplayName = Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase = 

  2. Answer
    Nasko
    Admin
    Nasko avatar
    1045 posts

    Posted 04 Jul 2018 Link to this post

    Hello Jonathan,

    It seems that you are using custom types and code inside the TruckbookReport class. Then when the class is instantiated, the custom libraries (Microsoft.Practices.ObjectBuilder2) are not found.

    Regards,
    Nasko
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Jonathan
    Jonathan avatar
    81 posts
    Member since:
    Jan 2014

    Posted 04 Jul 2018 in reply to Nasko Link to this post

    thx.. that was the issue
Back to Top