none
Custom Workflow Activity & Web.Config RRS feed

  • Question

  • Hi,

    I'm using a custom activity and I want to read some parameters from config.

    Any way I read the appSettings I can´t find de keys. I tried diferent ways:

    System.Web.Configuration.WebConfigurationManager.AppSettings["LogFilePath"];              
    System.Configuration.ConfigurationSettings.AppSettings["LogFilePath"];
    System.Configuration.ConfigurationManager.AppSettings["LogFilePath"];

    and the configuration exists on the FIM Portal web.config like this:

    <configuration>
       <appSettings>
          <add key="LogFilePath" value="D:\temp2"/>
       </appSettings>
    </configuration>

    What can be happening??

    Many thanks,

    DD

    Friday, February 20, 2015 7:02 PM

All replies

  • You need to debug it to see if the condition is met or file read

    There could be a thousand

    reasons.


    Nosh Mernacaj, Identity Management Specialist

    Saturday, February 21, 2015 9:38 PM
  • The condition is met. The activity runs and logs several data about the request.

    The log path is obtained in the activity parameters from UI. Now, I'm trying to read it from config without success (allways get empty string when reading the configuration. WCF configuration is also not being readed.

    Thanks,

    DD

    Sunday, February 22, 2015 12:26 AM
  • so you need to debug it to see. I dont know what is in your code. You need to step through code and it should be easy to find out. This is standard .NET.

    Nosh Mernacaj, Identity Management Specialist

    Sunday, February 22, 2015 2:03 AM
  • Hello,

    You need to put your parameters in the FIMService config file and not in the web.config of the FIMPortal.

    You can also to choose to use an external config file!

    Regards,


    Sylvain

    Monday, February 23, 2015 10:11 AM
  • I found that the appSettings are readed from the Microsoft.ResourceManagement.Service.exe.config file

    Leave this info for someone who gets the same issue.

    Tks,

    DD

    Monday, February 23, 2015 10:21 AM