Re: Windows Control Hosted in IE Problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I am not sure but it might be that the IE explicitly denies FileIOPermission to any control hosted on a Web page.

Please also refer to the following documents:

'Internet Explorer Security and Managed Execution' MSDN article (.NET Framework Developer's Guide)
'INFO: How Internet Explorer Determines Permissions for .NET Framework Assemblies' (KB article KB311301)


--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"Saurabh Garg" <saurabhgarg2k@xxxxxxxxx> wrote in message news:f625a255.0504290618.7779c612@xxxxxxxxxxxxxxxxxxxxx
Hi there,

I am facing a problem in my app which is a Windows Control hosted in
IE through object Tag.But when I try to do WebClient.UploadFile method
it throws SecurityException although i have done all the things i know
i have to do

1. Strong Name the Assembly
2. Create a permission set and a Custom Code Group in .NET
configuration tool
3. AllowPartiallyTrustedCallers at assembly level
4. The File IO and Security Permissions are included in the custom
permission set
5. FileIoPermission.Assert before calling WebClient.UploadFile method

I have no User Interface on the Windows Control, so UI permission is
not needed although i have tried that also, but the problem is not
about rendering the Control but when I fire UploadFile method of
WebClient a security Exception is thrown.

Ya one more thing i have also tried to Turn off the security by
caspol -s off
and also tried to register my assembly in fully trusted assembly list
by
caspol -m -addfulltrust <AssemblyName>

Plz if anybody have any suggestions plz tell me, its kind of very
urgent and i have to deliver the application to the client.

Thanks and Regards
Saurabh Garg

.



Relevant Pages

  • Re: Server Reports empty
    ... Security Exception ... To grant this application the required permission ... The server will start to collect new counter value from ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Code Access Security, Evidence Based Security, Code Access Permission, Role Based Permission, et
    ... confused on the relationship between Code Access Security, Evidence Based ... Security, Code Access Permission, Role Based Permission, Declarative and ... user running it (if this is true, then only the Identity Permission Code ...
    (microsoft.public.dotnet.security)
  • RE: Do all three permission classes (Identity Permission, Code Access Permission and Role Based Perm
    ... That is correct -- the inputs to CAS for each assembly are that assembly's evidence and the current security policy. ... classify them as a code access permission and an identity permission, since StrongNameIdentityPermission is also a code access security ...
    (microsoft.public.dotnet.security)
  • [NT] Windows 2000 Weak Default Permission on System Partitions
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The system partition by default has Everyone/Full Control access ... permission settings of Everyone/Full Control or Authenticated Users/Full ...
    (Securiteam)
  • Re: [Keyrings] [PATCH] Keys: Add LSM hooks for key management
    ... > for the key being instantiated and Write permission on that key. ... >> security module to inspect the key data and set a label based on data? ... > Whether the security module should use it to impose a lable, probably not, I ... Yes, thanks, I missed the rka instantiation at first. ...
    (Linux-Kernel)