Fork501
Freshman
Hi, all!
I was wondering if anyone knows how to adjust the granted security zone for a .NET ActiveX control?
I am currently working on a project that will allow me to list my user's tasks in Outlook, but am unable to run the control without giving the security zone it's part of unrestricted access.
When I launch it locally, it is part of the Intranet zone. When I launch it for my users, it will be part of the Internet zone. Unfortunately, neither of these are desierable, as I need the MyComputer zone.
I would honestly have no problems with launching this in the Intranet zone and setting each user up with the proper security, since anything launched under Intranet will be created by me, either way.
I have tried putting the following line in the AssemblyInfo.cs file for the ActiveX control:
That doesn't do anything at all. I have even tried putting the following line at the top of my class declaration:
Unfortunately, the control won't even load when launched in a web page.
I've hit a brick wall here and can't figure this out
My only other option is to find the DLL file somewhere in the Internet Explorer cache and grant the assembly full access privilages, but I wouldn't even know WHERE to look for that and if it would allow itself to remain with the access, if I make any changes.
Any help would be GREATLY appreciated!
Thank you in advance!
~Derek
I was wondering if anyone knows how to adjust the granted security zone for a .NET ActiveX control?
I am currently working on a project that will allow me to list my user's tasks in Outlook, but am unable to run the control without giving the security zone it's part of unrestricted access.
When I launch it locally, it is part of the Intranet zone. When I launch it for my users, it will be part of the Internet zone. Unfortunately, neither of these are desierable, as I need the MyComputer zone.
I would honestly have no problems with launching this in the Intranet zone and setting each user up with the proper security, since anything launched under Intranet will be created by me, either way.
I have tried putting the following line in the AssemblyInfo.cs file for the ActiveX control:
Code:
[assembly: AllowPartiallyTrustedCallersAttribute]
That doesn't do anything at all. I have even tried putting the following line at the top of my class declaration:
Code:
[ZoneIdentityPermission(SecurityAction.Demand, Zone=SecurityZone.Intranet)]
Unfortunately, the control won't even load when launched in a web page.
I've hit a brick wall here and can't figure this out
My only other option is to find the DLL file somewhere in the Internet Explorer cache and grant the assembly full access privilages, but I wouldn't even know WHERE to look for that and if it would allow itself to remain with the access, if I make any changes.
Any help would be GREATLY appreciated!
Thank you in advance!
~Derek