开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜