BizTalk Server Orchestration - Config file

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > May 2005 > 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 Config file
Itay Beeri

2005-05-23, 2:47 am

Hi ,
I have a biztalk 2004 orchestartion
I have put in a construct message block in a message assigment code that
reads from a private config file a URL for my web service.
when i deploy the project and run it he cant find my config file (which is
in the same directory as the project dll)

Is it possible to read from private config file?

Thank you
Itay




sanket.bakshi@gmail.com

2005-05-23, 7:50 am

I had tried this scenario once, but could not get it to work.
About reading from the config file, one thing I know definitely is that
we can read from the Biztalk Config File.
You assembly can read from the Biztalk Config as it uses the config
file of the process that hosts it.
For this, you can modify the BTSNTSVc.exe.config file found in your
Biztalk Installation folder.
The assembly can read it with -
System.Configuration.ConfigurationSettings.AppSettings["keyname"].ToString()

Regards,
Sanket
chk out my Biztalk Blog at -
http://mydotnetandbiztalkspace.blogspot.com

Yves Peneveyre

2005-05-23, 7:50 am

Hello !

The code in your dll is executed by the BTSNTSvc.exe process.
So, the config file used is the BTSNTSvc.exe one.

You can put some configuration in the BTSNTSvc.exe.config file and
read them from this file.

Best Regards

Yves Peneveyre


"Itay Beeri" <itaybeeri@hotmail.com> wrote in message
news:Oo9JAQ2XFHA.2664@TK2MSFTNGP15.phx.gbl...
> Hi ,
> I have a biztalk 2004 orchestartion
> I have put in a construct message block in a message assigment code that
> reads from a private config file a URL for my web service.
> when i deploy the project and run it he cant find my config file (which is
> in the same directory as the project dll)
>
> Is it possible to read from private config file?
>
> Thank you
> Itay
>
>
>
>



Scott Colestock

2005-05-23, 5:53 pm

Are you calling a web service from .NET code, rather than using an adapter?
(If you're using the adapter, then the binding file should be your method of
indirection.)

If not, you should consider putting this information within the SSO. Both
Flanders and myself have discussed this recently -

http://www.traceofthought.net/Perma...70894e8c3f.aspx
http://www.masteringbiztalk.com/blo...b1eb6c4def.aspx


Scott Colestock


"Itay Beeri" <itaybeeri@hotmail.com> wrote in message
news:Oo9JAQ2XFHA.2664@TK2MSFTNGP15.phx.gbl...
> Hi ,
> I have a biztalk 2004 orchestartion
> I have put in a construct message block in a message assigment code that
> reads from a private config file a URL for my web service.
> when i deploy the project and run it he cant find my config file (which is
> in the same directory as the project dll)
>
> Is it possible to read from private config file?
>
> Thank you
> Itay
>
>
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com