Deploying BizTalk 2006 MSI: Configuration file issue
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Deploying BizTalk 2006 MSI: Configuration file issue




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Deploying BizTalk 2006 MSI: Configuration file issue  
Milan Bobde


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-08-06 12:18 AM

Hi,
Situation:
My BizTalk solution had BizTalk components along with some Dll's. I also
have a config file used by Dll's. I have added it as one of the resource. Th
e
destination path for this resource file is
"%BTAD_InstallDir%\My.ConfigFile.xml".

Question: how can I know the path where this application is installed? I
need that path to access that configuration file. So, basically while
creating my Dll's, I need a way to reach the My.ConfigFile.xml destination
path without hard coding it.

Thanks in Advance,
Milan






[ Post a follow-up to this message ]



    RE: Deploying BizTalk 2006 MSI: Configuration file issue  
Doug Girard [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-09-06 12:18 AM

Can you elaborate on your scenario?

Are you calling a post-processing script and looking to gain access to the
My.ConfigFile.xml?  If so, can you have this script be written to the same
directory and just reference the file locally?
string configPathName =
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
, "MyConfigFile.xml"); // or something similar

If I'm missing something, please explain more about what you are looking to
do.

Regards,
Doug Girard [MSFT]

Note: This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>Thread-Topic: Deploying BizTalk 2006 MSI: Configuration file issue
>thread-index: AcaKhWjuI5dt9eb1QhGMeVqsdOm5rw==
>X-WBNR-Posting-Host: 12.170.224.254
>From: examnotes <Milan Bobde@discussions.microsoft.com>
>Subject: Deploying BizTalk 2006 MSI: Configuration file issue
>Date: Wed, 7 Jun 2006 15:55:02 -0700
>Lines: 15
>Message-ID: <84343558-9BB3-4C3D-9020-DE627AA92C31@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
>	charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
>Newsgroups: microsoft.public.biztalk.general
>Path: TK2MSFTNGXA01.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.biztalk.general:38137
>NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
>X-Tomcat-NG: microsoft.public.biztalk.general
>
>Hi,
>Situation:
>My BizTalk solution had BizTalk components along with some Dll's. I also
>have a config file used by Dll's. I have added it as one of the resource.
The
>destination path for this resource file is
>"%BTAD_InstallDir%\My.ConfigFile.xml".
>
>Question: how can I know the path where this application is installed? I
>need that path to access that configuration file. So, basically while
>creating my Dll's, I need a way to reach the My.ConfigFile.xml destination
>path without hard coding it.
>
>Thanks in Advance,
>Milan
>
>






[ Post a follow-up to this message ]



    RE: Deploying BizTalk 2006 MSI: Configuration file issue  
Milan Bobde


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-09-06 12:18 AM

Hi Doug,

My BizTalk solution has a configuration file. This file has details other
than biztalk configuration like user credentials, types of loads etc. The
dll's, which I have added as resources to this biztalk application from MMC
need to access this file to get the configuration information. Where this
Myconfig.XML lands up is driven by where the user installs it.  So, if the
user installs it at c:\MyApp, the dll should look for path
c:\MyApp\Myconfig.xml and if the user installs it at c:\Program
Files\BizTalk, it should look at path c:\program Files\BizTalk\MyConfig.xml.

This is not required duing installation at all. This is required while the
application is running. For ex, when the orchestration kicks in, it calls th
e
methods in dll and the those methods need this configuration file. The way i
t
is done now is in the method, path is hard coded and when I install using th
e
MSI, I install it at the same path only.

I did try similar to what you said, but the path returned by the
GetAssembly.Location() returned me c:\windows\assembly\GAC_****\ which is no
t
useful.

-Milan
"Doug Girard [MSFT]" wrote:

> Can you elaborate on your scenario?
>
> Are you calling a post-processing script and looking to gain access to the
> My.ConfigFile.xml?  If so, can you have this script be written to the same
> directory and just reference the file locally?
> string configPathName =
> Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Locatio
n)
> , "MyConfigFile.xml"); // or something similar
>
> If I'm missing something, please explain more about what you are looking t
o
> do.
>
> Regards,
> Doug Girard [MSFT]
>
> Note: This posting is provided "AS IS" with no warranties, and confers no
> rights.
> -------------------- 
> The 
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:35 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register