BizTalk and log4net configuration

Home Page Forums BizTalk 2004 – BizTalk 2010 BizTalk and log4net configuration

Viewing 2 reply threads
  • Author
    Posts
    • #22154

      Hi All,  I am fairly new to BizTalk and I am setting up a new BizTalk project using BizTalk Server 2006 R2, HL7
      Accelerator, Visual Studio 2005, Deployment Framework for BizTalk 5.0,
      and log4net.  

      The deployment framework and log4net were partially setup
      when the project was provided to me.
      I’m
      not sure how or where to setup log4net correctly.  I initially had
      other log4net errors which I corrected by manually putting the log4net
      dll’s in the GAC.  Other than
      Deployment Framework for BizTalk  I have not installed anything related to log4net or Nant (whatever that is) 🙂

      The project compiles and deploys fine, but once I
      send an HL7 message and it hits the logging within an orchestration I get
      the following error pulled from Event Viewer:

      Shape name: Trace Setup
      ShapeId: ae11f7bc-98ac-4e09-afdc-213485b366aa
      Exception thrown from: segment 1, progress 9
      Inner exception: log4netConfigHelper: Unable to read registry key for log4net configuration location.
      Exception type: Exception
      Source: log4net.Ext.Serializable
      Target Site: System.String Getlog4netConfigLocation(System.String)
      The following is a stack trace that identifies the location where the exception occured
         at log4net.Ext.Config.RegistryConfigurator.Getlog4netConfigLocation(String registryPath)
         at log4net.Ext.Config.RegistryConfigurator.ConfigureAndWatch(String domainName, String registryPath)
         at log4net.Ext.Serializable.SLog.RegistryConfigurator()
         at Orchestrations.IncomingHL7ToHL7Order.segment1(StopConditions stopOn)
         at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

       

      Any ideas what I am missing?

    • #22169

      Not an expert, but I’ve found various errors like that are tracking back to the account which the BizTalk service is running under not having correct permissions …

      – on my dev box, it’s local administrator (which I know is naughty)

      – on the main test box, it’s not in the admin group, so I get things like file access, event log exceptions as the account isn’t in Administrators

    • #22174

      I have seen some put log4net configuration in the BTSNTSvc.exe.config file.  Open this file (located in Program files\microsoft BiztalkServer 0 to se eif it is in there.  Also may need to create a nEventSource for log4Net.

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