0

I have configured the log4net as in the link Configure log4net. I have one more project where I have the addin project. The addin project has the same app.config file and I am trying to add the same configure to it. But it is not working. How can I do this?

The addin is designed using VSTO 2010

Community
  • 1
  • 1
roopini n
  • 503
  • 2
  • 7
  • 29

1 Answers1

0

It seems the can be problems in vsto when searching for the application.dll.config file. Following the msdn blog the issue was introduced in sp1:

vsto-4-0-sp1-will-cause-a-vsto-addin-to-not-find-its-config-file

In the blog the solution is to change the value of the manifest from:

Manifest="C:\Program Files\<Path>\WordAddIn.vsto|vstolocal"

to:

Manifest="file:///C:\Program Files\<Path>\WordAddIn.vsto|vstolocal"
Peter
  • 27,590
  • 8
  • 64
  • 84
  • should this be changed in the registry? The value for the manifest file is [TARGETDIR]MyExcel.vsto|vstolocal as now. The target folder of my project is Program Files x86. – roopini n Jun 18 '14 at 09:49