What you should do is first revert the config permission elevation and cause
the error to be generated. Then, once you have the error generated, turn
caspolicy off on the machine and see if you get the error. If you do get the
issue, you have another issue masquerading as a security issue since no
security policy is running on the machine.
If you do not get the error, you can simply create a cas policy for the
particular permission shown in the error message dialog. Create your policy
using the graphical interface to the caspol command line tool, mscorcfg.msc.
By the way, I always us mscorcfg.msc to resolve permissions on an assembly
because it knows exactly how to find and call the dll with the right
options.
CAS policies are not that hard to create (an hour or 2 of trial and error
for instance) and once you understand what's going on, these issues will
never get the better of you again.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on
www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------
"Brian Gideon" <(E-Mail Removed)> wrote in message
news:95c74442-dc75-4774-b56e-(E-Mail Removed)...
> On Aug 21, 7:29 pm, "Alvin Bruney [ASP.NET MVP]" <vapor dan using hot
> male spam filter> wrote:
>> This resolveperm call will likely give you incorrect results because you
>> are
>> pointing to a file on disk which should run with full trust or
>> unrestricted
>> and be sourced from a different zone. However, your web application may
>> be
>> calling the dll through a virtual path from the
>> serverhttp://server/my.dll
>> for instance.
>
> I figured that might have something to do with it. That's unfortunate
> really because I'd like to do a resolvegroup on that dll as well to
> assist in troubleshooting. I guess I'll have to go through the config
> files manually.
>
>>
>> Another thing is that you haven't fixed your issue at all, in fact,
>> you've
>> made it worse. consider this: you try to open the front door of your
>> house
>> with a key and the key is giving problems. Your fix is simply to remove
>> the
>> door ensuring that the key problem goes away right? Now you have a bigger
>> problem. I think you should fix the lock instead of removing the door.
>> it's
>> there for a reason.
>>
>
> That is an enlightening analogy.