Application cannot find app.config file when Windows Startup starts
I recently added a setup project to my application. In the setup project, I added a registry value that would launch my application when Windows starts at HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ Run. When the app is launched from this location, it crashes with a System.NullReference exception (it cannot find the app.config file that is read in the method when the app loads). I can run the application fine from the start menu or from an installed folder. How can I run my application in Startup?
+1
a source to share