Biztalk 2004 integration with Entlib Data Blocks …

Home Page Forums BizTalk 2004 – BizTalk 2010 Biztalk 2004 integration with Entlib Data Blocks …

Viewing 1 reply thread
  • Author
    Posts
    • #12278

      The Process I am following for integrating Entlib Data Access Block with Biztalk 2004 is as follows :-

      1) Get the Entlib src files in my sample application from:
      C:\\Program Files\\Microsoft Enterprise Library\\src\\Common
      C:\\Program Files\\Microsoft Enterprise Library\\src\\Configuration
      C:\\Program Files\\Microsoft Enterprise Library\\src\\Data

      2) Add the above projects in my sample application

      3) StrongName it and Add it to Global Assembly cache

      Now my Biztalk Orchestration refers Interally to a Class Library, which has a Class file which is doing the Data Access Operation thru an Expression Shape.

      My ClassLibrary has a reference to the above Entlib Dlls within my Application.

      For trigerring the orchestration I am dropping a file in the receive location.

      I have GAC’d all the DLL’s in my sample project as Biztalk wants all the component to be referred from GAC.

      Now I have added the following sections in the BTSNTSvc.exe.config ….

      <AppDomainSpecs>
      <AppDomainSpec Name=\”BizProject\” SecondsIdleBeforeShutdown=\”-1\” SecondsEmptyBeforeShutdown=\”12000\”>
      <BaseSetup>
      <ConfigurationFile>E:\\sugath\\solutions\\BizTestFinal\\BizOrchestration\\BizProject\\App.config</ConfigurationFile>
      </BaseSetup>
      </AppDomainSpec>
      </AppDomainSpecs>

      <ExactAssignmentRule AssemblyName=\”BizProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ec4b4ca01ef48d41\”
      AppDomainName=\”BizProject\” />
      </ExactAssignmentRules>

      Also I have Updated the Version & Public Token Key of the GAC’d Entlib DLL’s in my App.config and DataConfiguration.config.
      Also I have made sure that in the ExactAssignmentRule I have mentioned my Biztalk Project Name, Version and Public Token Key.

      My Application is compiled properly and also i am able to deploy my biztalk assemblies.

      My file is also getting picked by the orchestration but after that I am getting the following errors ….

      ERROR 1
      *************************************************************
      Event Type: Error
      Event Source: Enterprise Library Instrumentation
      Event Category: None
      Event ID: 0
      Date: 11/11/2005
      Time: 6:36:56 PM
      User: N/A
      Computer: PSI-PC0032
      Description:
      Failed to fire the WMI event ‘DataServiceFailureEvent’. Exception: System.Exception: This schema for this assembly has not been registered with WMI.
      at System.Management.Instrumentation.Instrumentation.Initialize(Assembly assembly)
      at System.Management.Instrumentation.Instrumentation.GetInstrumentedAssembly(Assembly assembly)
      at System.Management.Instrumentation.BaseEvent.Fire()
      at Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.InstrumentedEvent.FireWmiEventCore(BaseEvent baseEvent).

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
      *************************************************************

      ERROR 2
      *************************************************************
      Event Type: Error
      Event Source: Enterprise Library Data Service
      Event Category: None
      Event ID: 1
      Date: 11/11/2005
      Time: 6:36:56 PM
      User: N/A
      Computer: PSI-PC0032
      Description:
      Error creating EnterpriseLibrary.DataService database \”ETL\”. Exception: System.Configuration.ConfigurationException: An error occurred when creating the specified type ‘Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase, Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.
      —> System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
      File name: ‘Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’
      at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
      at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
      at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
      at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
      at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFactory.GetType(String typeName)

      WRN: Assembly binding logging is turned OFF.
      To enable assembly bind failure logging, set the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.
      Note: There is some performance penalty associated with assembly bind failure logging.
      To turn this feature off, remove the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog].

      — End of inner exception stack trace —
      at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFactory.GetType(String typeName)
      at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseProviderFactory.GetConfigurationType(String instanceName)
      at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFactory.CreateInstance(String configurationName)
      ———————————–
      Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
      *************************************************************

      ERROR 3
      *************************************************************
      Event Type: Error
      Event Source: XLANG/s
      Event Category: None
      Event ID: 10034
      Date: 11/11/2005
      Time: 6:36:56 PM
      User: N/A
      Computer: PSI-PC0032
      Description:
      Uncaught exception terminated service BizProject.BizProjectOrch(1a3b1de0-ed7a-8905-8219-05834f3856cc), instance 59e1dab5-5bbc-499f-81f2-48f441b28657

      An error occurred when creating the specified type ‘Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase, Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.

      Exception type: ConfigurationException
      Source: Microsoft.Practices.EnterpriseLibrary.Configuration
      Target Site: System.Type GetType(System.String)
      Help Link:
      Additional error information:

      Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.

      Exception type: FileNotFoundException
      Source: mscorlib
      Target Site: Void* _GetTypeByName(System.String, Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef, Boolean)
      Help Link:
      Additional error information:

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
      *************************************************************

      Please first let me know whether I am following the right process beacuse I think something is wrong the way I have integrated my Entlib Blocks in my Application. This Entlib Block is having some problem when it is internally referring to its other components.

      Nothing is wrong with the BTS Config as it seems it is properly referring to my root App.config ………..

      PLEASE LET ME KNOW SOON… I am stuck with this issue for last two days

      tks in advance

      Howard

    • #12279

      Remaining Error …. I know its a large message 🙁

      ERROR 3
      *************************************************************
      Event Type: Error
      Event Source: XLANG/s
      Event Category: None
      Event ID: 10034
      Date: 11/11/2005
      Time: 6:36:56 PM
      User: N/A
      Computer: PSI-PC0032
      Description:
      Uncaught exception terminated service

      BizProject.BizProjectOrch(1a3b1de0-ed7a-8905-8219-05834f3856cc), instance

      59e1dab5-5bbc-499f-81f2-48f441b28657

      An error occurred when creating the specified type

      ‘Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase,

      Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.

      Exception type: ConfigurationException
      Source: Microsoft.Practices.EnterpriseLibrary.Configuration
      Target Site: System.Type GetType(System.String)
      Help Link:
      Additional error information:

      Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0,

      Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file

      specified.

      Exception type: FileNotFoundException
      Source: mscorlib
      Target Site: Void* _GetTypeByName(System.String, Boolean, Boolean, Boolean,

      System.Threading.StackCrawlMark ByRef, Boolean)
      Help Link:
      Additional error information:

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
      *************************************************************

      Please first let me know whether I am following the right process beacuse I think something is

      wrong the way I have integrated my Entlib Blocks in my Application. This Entlib Block is having some

      problem.

      Nothing is wrong with the BTS Config as it seems it is properly referring to my root App.config

      ……….. PLEASE LET ME KNOW SOON…

      tks in advance

      Howard

      • #12280

        hi, I think BT can’t load assembly.
        u need to make sn-key for entlib and to write strong-name into
        BTSNTSvc.exe.config
        [code:1:f22347d4af] <configSections><section name=\"enterpriselibrary.configurationSettings\" type=\"System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=ur strong-name\" />

        </configSections>
        [/code:1:f22347d4af]

        • #12281

          Just to guess I would say it looks like something in your build or configuration is off. With all those strong names and GAC dependencies that would be easy to do.

          Are you using an Atomic Scope? Doesn’t look like that type of problem though.

          Let me know if you get it figured out.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.