Configuration.save won't work on Citrix C#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
When I try to save config file on Citrix machine it fails with below error, but it works on user desktop without any issue. It works for me and few others in our team on Citrix as well, but for few users it wont work. My System Admin told me you and other
users have same security settings. We compared it manually by going to file -> properties -> Advance and its all same between me and other user. Other interesting thing is when I open the file and save it manually under user account it works. Is there
any suggestion in such situation from expert? Also is there a way programmatically we can find out what security settings user have? And can user copy security permission between files or not?
<span style="font-size:10.0pt; color:#1f497d Exception type: System.UnauthorizedAccessException
<span style="font-size:10.0pt; color:#1f497d Message: Attempted to perform an unauthorized operation.

<span style="font-size:10.0pt; color:#1f497d; background:yellow System.Security.AccessControl.Win32.SetSecurityInfo<span style="font-size:10.0pt; color:#1f497d (System.Security.AccessControl.ResourceType, System.String, System.Runtime.InteropServices.SafeHandle,
System.Security.AccessControl.SecurityInfos, System.Security.Principal.SecurityIdentifier, System.Security.Principal.SecurityIdentifier, System.Security.AccessControl.GenericAcl, System.Security.AccessControl.GenericAcl)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fd980 0000064278a248cf System.Security.AccessControl.NativeObjectSecurity.Persist(System.String, System.Runtime.InteropServices.SafeHandle, System.Security.AccessControl.AccessControlSections, System.Object)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fda40 0000064278ae06f9 System.Security.AccessControl.NativeObjectSecurity.Persist(System.String, System.Security.AccessControl.AccessControlSections, System.Object)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fda90 00000642492180e1 System.Security.AccessControl.FileSystemSecurity.Persist(System.String)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdb00 0000064249218141 System.Configuration.Internal.WriteFileContext.DuplicateTemplateAttributes(System.String, System.String)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdb40 0000064249217d4b System.Configuration.Internal.WriteFileContext.DuplicateFileAttributes(System.String, System.String)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdb90 00000642491f6cac System.Configuration.Internal.WriteFileContext.Complete(System.String, Boolean)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdbe0 00000642491f688c System.Configuration.Internal.InternalConfigHost.StaticWriteCompleted(System.String, Boolean, System.Object, Boolean)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdc60 00000642491f5d57 System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.WriteCompleted(System.String, Boolean, System.Object)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdca0 00000642491fa67f System.Configuration.Internal.DelegatingConfigHost.WriteCompleted(System.String, Boolean, System.Object)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdcd0 00000642491fde3f System.Configuration.UpdateConfigHost.WriteCompleted(System.String, Boolean, System.Object)
<span style="font-size:10.0pt; color:#1f497d 000000001b8fdd20 000006428019442c
<span style="background:yellow System.Configuration.MgmtConfigurationRecord.SaveAs(System.String, System.Configuration.ConfigurationSaveMode, Boolean)

<span style="font-size:10.0pt; font-family:"Calibri","sans-serif"; color:#1f497d 000000001b8fde50 00000642801855c3

<span style="font-size:10.0pt; font-family:"Calibri","sans-serif"; color:#1f497d Thanks,
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif"; color:#1f497d Alkingson
<br/>

View the full article
 
Back
Top