problems with using assembly with config file

Home Page Forums BizTalk 2004 – BizTalk 2010 problems with using assembly with config file

Viewing 1 reply thread
  • Author
    Posts
    • #16946

      Hello,

      I've build an assembly file which uses an config file. In my biztalk application i use the assembly. Now I have an problem with runing the application. I can deploy my application but when i'm running my application i get the follow message:

       Could not find file 'C:\WINDOWS\assembly\GAC_MSIL\######.Biztalk.MailReceivers\1.0.0.0__fc48e45a648aa1b8\#####.Biztalk.MailReceivers.dll.config'.

      I know why this is happened, because the assembly is installed in GAC, and can't find the config file in that location. How can i solve this problem. One option is to build the assembly file with an hard coded path to the config file. But is there another solution?

       Thanks 

       

    • #16956

      You could put the config settings in C:\Program Files\Microsoft BizTalk Server 2006\BTSNTSvc.exe.config instead.

      • #16978

        thanks for your answer. The reason I create a seperate config file, is the use of the DLL by another applications. May be it isn't possible to do, or i must hard coded program the path to the config file. I'm thinking about a solution, or hard code, or the BTSNTScv.exe.config.

         

         

        • #16980

          Another option you may like to consider is using the SSO database as a config store.

          There is an example here:
          http://msdn.microsoft.com/biztalk/downloads/samples/
          SSO as a Configuration store.

          This is most useful if you wish to store config data securely (e.g. passwords), but may not suit your needs as all users of the dll need access to the SSO database.

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