none
Adding App.config in biztalk RRS feed

  • Question

  • Hi All,

    I am integrating DOTNET component with Biztalk. For that DOTNET functionality, i ve added the dll as reference to access the methods inside it. But that component is having App.Config file. I also added that one as reference in biztalk orchestration. But i got the following exception when running. That component is also unable to access the app.config. How to add that ref??

    Inner exception: Object reference not set to an instance of an object.

    Exception type: NullReferenceException

    Source: Sample.Uploader

    Target Site: System.String[] GetSchema()

    The following is a stack trace that identifies the location where the exception occured

    at Sample.Uploader.Uploader.GetSchema()

    at Sample.Uploader.Uploader.ReadXMLData(XmlDocument xmlFile)

    at DDL.Demo.Orchestration.EmployeeProcessor.segment2(StopConditions stopOn)

    at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

    Wednesday, August 22, 2012 3:45 AM

Answers

  • Hi,

    accessing configuration values from a helper class could be done using the SSO Configuration Application MMC Snap-In. The SSO Configuration Tool allows you to organize your data related to your BizTAlk Server Applications in a key/value format.

    Go: SSO Configuration Application MMC Snap-In

    You can access the SSO Configuration from any .net assembly, not only BizTalk Server Application. 

    Furthermore your BizTalk Server Application gets current values from SSO without having to restart your BizTalk Server host instance, which is the case when using BTSNTSvc.exe.config.

    hth

    Paul Endras
    Endras IT Consulting www.endras.de  

    If this answers your question and is a helpful post, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.

    Wednesday, August 22, 2012 5:40 AM
  • Because your dll is now being executed by BizTalk so you need to move the settings from this app.config to BTSNTSvc.exe.config or BTSNTSvc64.exe.config depending if the handler for the orchestration is 32 bit or 64 bit file.

    Please mark the post answered your question as answer, and mark other helpful posts as helpful, it'll help other users who are visiting your thread for the similar problem, Regards -Rohit Sharma (http://rohitt-sharma.blogspot.com/)

    • Proposed as answer by Pål Carlsen Wednesday, August 22, 2012 11:35 AM
    • Marked as answer by Anand Venkatraman Wednesday, August 22, 2012 1:14 PM
    Wednesday, August 22, 2012 4:32 AM
    Moderator

All replies

  • Because your dll is now being executed by BizTalk so you need to move the settings from this app.config to BTSNTSvc.exe.config or BTSNTSvc64.exe.config depending if the handler for the orchestration is 32 bit or 64 bit file.

    Please mark the post answered your question as answer, and mark other helpful posts as helpful, it'll help other users who are visiting your thread for the similar problem, Regards -Rohit Sharma (http://rohitt-sharma.blogspot.com/)

    • Proposed as answer by Pål Carlsen Wednesday, August 22, 2012 11:35 AM
    • Marked as answer by Anand Venkatraman Wednesday, August 22, 2012 1:14 PM
    Wednesday, August 22, 2012 4:32 AM
    Moderator
  • Hi,

    accessing configuration values from a helper class could be done using the SSO Configuration Application MMC Snap-In. The SSO Configuration Tool allows you to organize your data related to your BizTAlk Server Applications in a key/value format.

    Go: SSO Configuration Application MMC Snap-In

    You can access the SSO Configuration from any .net assembly, not only BizTalk Server Application. 

    Furthermore your BizTalk Server Application gets current values from SSO without having to restart your BizTalk Server host instance, which is the case when using BTSNTSvc.exe.config.

    hth

    Paul Endras
    Endras IT Consulting www.endras.de  

    If this answers your question and is a helpful post, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.

    Wednesday, August 22, 2012 5:40 AM