Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1745
UnauthorizedAccessException on Load()
posted

One of our largest customers is upgrading to Windows7 and has reported that they now get a System.UnauthorizedAccessException when our application first loads. (No problem on WinXP)

The problem occurs at the following line:
   Infragistics.Win.AppStyling.StyleManager.Load(fs)
(where 'fs' is a FileStream)

The file exists under the 'Program Files' branch, so it will be ReadOnly for a standard user.

Does the Load() function attempt to open this file for Write?
If so, how do I tell it NOT to do that.
If not, what else might cause an UnauthorizedAccess exception?

Parents Reply Children