阅读背景:

在Windows启动时运行应用程序时找不到app.config文件

来源:互联网 

Recently, I added a setup project to my application. In the setup project, I added a registry value that would start my application at windows startup to the HKLM\Software\Microsoft\Windows\CurrentVersion\Run key. When the application runs from this location, it crashes with a System.NullReference exception (it can't find my app.config file, which gets read in a method when the app loads up). I can run the application perfectly fine from the start menu, or from the installed folder. How can I get my application to run at Startup?Recently, I added a setup project to my applica




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: