Custom Workflow Activity & Web.Config

Hi,

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

Any way I read the appSettings I cant 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

February 20th, 2015 10:02pm

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

There could be a thousand

reasons.

Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2015 12:38am

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

February 22nd, 2015 3:26am

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.
Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2015 5:03am

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,

February 23rd, 2015 5:13am

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

Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2015 5:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics