Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to create a custom action for a installer project (in VS 2005) which will get executed after the installation is completed. This custom action points to the primary output of a dll that has a App.Config file. I have tested this dll independently (by calling from a console application), i had to add the App.Config of the dll in the console application also to make it work.

When i tried installing the installer; after installation the dll is invoked but its not able to detect the App.Config file and hence throws error that "key is not found".

How can i make the installer project use the App.Config of the dll it is invoking?

Regards,
Priya.
Posted

1 solution

You have to add the app.config manually, it is not added by default. This is because it is specific for the environment and would also mean that the web.config could be overwritten in case someone is just performing an update but wants to keep it's own web.config.

So just add it yourself and that's it.

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900