开发者

System.ComponentModel.Win32Exception: Access is denied

开发者 https://www.devze.com 2023-02-02 06:14 出处:网络
I am developing C# windows based application. I am getting System.ComponentModel.Win32Exception: Access is denied

I am developing C# windows based application. I am getting

System.ComponentModel.Win32Exception: Access is denied

in my installed application.

2011-01-05 12:41:42,916, ERROR, RINXUI.main, System.ComponentModel.Win32Exception: Access is denied
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()

I get this error only when I install application. When I try to debug my application from Visual studio, there is no exception.

I have installed application using IzPack install开发者_开发百科er utility and its installed on desktop (for testing purpose).

Anyone knows why this exception is occuring only in installed version?


What about System.Diagnostics.Process.Start() from stack trace - are you trying to launch any process from your application. If yes then you need to see if the a/c under which your application is running has sufficient privileges to read/write the location where executable is stored.

0

精彩评论

暂无评论...
验证码 换一张
取 消