dkim18
asked on
System.UnauthorizedAccessException from closing my app?
I used the Setup project to create an installer and it installed OK.
But I try to close my app, it is giving me this error.
My app creates this xml file in my application folder under program Files folder.
If I use the ClickOnce install, it works fine and closes.
Why not use ClickOnce install then?
My VS is not creating the Setup.exe file but only .application file (today).
It created the setup file last night but today and i have same project.
It is driving me nut!
Any sugget as why I am getting this error?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessE xception: Access to the path 'C:\Program Files (x86)\WebTool\Settings.xml ' is denied.
at System.IO.__Error.WinIOErr or(Int32 errorCode, String maybeFullPath)
But I try to close my app, it is giving me this error.
My app creates this xml file in my application folder under program Files folder.
If I use the ClickOnce install, it works fine and closes.
Why not use ClickOnce install then?
My VS is not creating the Setup.exe file but only .application file (today).
It created the setup file last night but today and i have same project.
It is driving me nut!
Any sugget as why I am getting this error?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessE
at System.IO.__Error.WinIOErr
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.