using app.config in addinmodule.cs constructor.

Add-in Express™ Support Service
That's what is more important than anything else

using app.config in addinmodule.cs constructor.
 
Sanjay Varma




Posts: 38
Joined: 2008-06-16
Hi

In the AddinModule.cs constructor I am trying to read value from the app.config file. When I try to register the application I am getting an error Target method invocation error. When I comment the line which reads form the app.config file my application registers successfully.
Why is that so? how can I read the value form the app.congig file in the addinmodule class constructor.

Thanks,
Sanjay.
Posted 05 Aug, 2008 05:18:21 Top
Eugene Astafiev


Guest


Hi Sanjay,

1. The add-in module constructor is not a good place for such calls.
2. It seems that you forgot to configure your .config file properly.

I have replied you http://www.add-in-express.com/forum/read.php?FID=5&TID=3824.
Posted 05 Aug, 2008 06:10:22 Top