|
Home > Archive > BizTalk Server Orchestration > February 2006 > Reading parameters from config file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Reading parameters from config file
|
|
| medhanush 2006-02-17, 10:51 pm |
| Hi,
Orchestration calls a .NET component.
..NET component requires to make calls to database,hence it needs to access
config file. So, added entries to BTSNtSvc.exe.config file.
..NET component is reading params from config file using NameValueCollection.
Sometimes orchestration throws excpetion, NameValueCollection can't be
serialized.
Is there any other way to read params from config file ?
TIA
Kishore
| |
| Alan Smith 2006-02-19, 5:49 pm |
| Hi,
Try using a static method in your C# class to retive the config parameters.
If this is not possible, you can place the code in an atomic transaction in
your orchestration, ensuring that your class is a variable of the atomic
transaction. You will get a performance hit for using an atomic transaction,
so using the static method is the best way to solve this.
Regards,
Alan
"medhanush" <medhanush@discussions.microsoft.com> wrote in message
news:B2C4BAEA-D5A8-4027-8AEA-1763B0B96E7D@microsoft.com...
> Hi,
>
> Orchestration calls a .NET component.
> .NET component requires to make calls to database,hence it needs to access
> config file. So, added entries to BTSNtSvc.exe.config file.
> .NET component is reading params from config file using
> NameValueCollection.
> Sometimes orchestration throws excpetion, NameValueCollection can't be
> serialized.
>
> Is there any other way to read params from config file ?
>
> TIA
> Kishore
| |
| medhanush 2006-02-20, 8:47 pm |
| Alan,
thanks for your reply.
made changes, so far no issues.
thanks
Kishore
"Alan Smith" wrote:
> Hi,
>
> Try using a static method in your C# class to retive the config parameters.
> If this is not possible, you can place the code in an atomic transaction in
> your orchestration, ensuring that your class is a variable of the atomic
> transaction. You will get a performance hit for using an atomic transaction,
> so using the static method is the best way to solve this.
>
> Regards,
>
> Alan
>
>
> "medhanush" <medhanush@discussions.microsoft.com> wrote in message
> news:B2C4BAEA-D5A8-4027-8AEA-1763B0B96E7D@microsoft.com...
>
>
>
|
|
|
|
|