G
Guest
I have a winForm control that contains an openFileDialog.
I am using this control in a webForm by enbedding it using an <object> tag.
I need to access some information about the file on the client.
I strongly named my control assembly .
I created a machine level permission set, and assigned FileDialog, FileIO
and User interface permission.
I created a code group under all_Code, associated my assembly's strong name
to that group and assigned the permission set i created previously.
I also added the following attributes to my assembly:
[assembly:AllowPartiallyTrustedCallers]
[assembly: FileDialogPermission(SecurityAction.RequestMinimum, Unrestricted
= true)]
[assembly: UIPermission(SecurityAction.RequestMinimum, Unrestricted = true)]
[assembly: FileIOPermission(SecurityAction.RequestMinimum, Unrestricted =
true)]
I am having a file IO Exception while trying to retreive the FileName
property of the openFileDialog.
Any help will be very appreciate it.
Thanks!
I am using this control in a webForm by enbedding it using an <object> tag.
I need to access some information about the file on the client.
I strongly named my control assembly .
I created a machine level permission set, and assigned FileDialog, FileIO
and User interface permission.
I created a code group under all_Code, associated my assembly's strong name
to that group and assigned the permission set i created previously.
I also added the following attributes to my assembly:
[assembly:AllowPartiallyTrustedCallers]
[assembly: FileDialogPermission(SecurityAction.RequestMinimum, Unrestricted
= true)]
[assembly: UIPermission(SecurityAction.RequestMinimum, Unrestricted = true)]
[assembly: FileIOPermission(SecurityAction.RequestMinimum, Unrestricted =
true)]
I am having a file IO Exception while trying to retreive the FileName
property of the openFileDialog.
Any help will be very appreciate it.
Thanks!