Re: dotnet security exception issues

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



Thanks for the reply. I'll give it a shot and see if I can make this
work.

I've created a strong key .snk file and put reference to it in the
assembly module, but no matter where I stick the file the compiler says
it can't find it. Where is the file supposed to be?

Thanks

Dave

Cerebrus wrote:

Hi,

When you run code from your local machine, it runs in the MyComputer
security zone, but when you run it off of a server, or network share,
it runs in the LocalIntranet zone. The latter imposes much stricter
restrictions on your code. That would be the reason why you're getting
SecurityExceptions.

Your best option in this case would be to strong name your assemblies
(once you've finished development on them), and then use the .NET
Framework configuration tool to assign a higher level of Trust to these
assemblies. Or create a new code group with a higher trust
configuration, and add your assemblies to that code group.

has any of this improved with the latest dotnet version?

Probably yes, but it still works quite well with VS 2002. I too have
2002 and have no such problems. Those security features are for your
benefit, remember. ;-)

Regards,

Cerebrus.
.



Relevant Pages

  • Re: dotnet security exception issues
    ... security zone, but when you run it off of a server, or network share, ... Your best option in this case would be to strong name your assemblies ... and add your assemblies to that code group. ... Those security features are for your ...
    (microsoft.public.dotnet.languages.vb)
  • Article : Code Access Security Part - 2 (.Net FrameWork Tools Series)
    ... Enterprise Level Security configuration file is:- enterprise.config ... local mahinc policy MyComputer Zone has Full trust permission set. ... To create a code group under intranet with fulltrust to a particular share ...
    (microsoft.public.dotnet.academic)
  • Article : Code Access Security Part - 2 (.Net FrameWork Tools Series)
    ... Enterprise Level Security configuration file is:- enterprise.config ... local mahinc policy MyComputer Zone has Full trust permission set. ... To create a code group under intranet with fulltrust to a particular share ...
    (microsoft.public.dotnet.framework.setup)
  • Article : Code Access Security Part - 2 (.Net FrameWork Tools Series)
    ... Enterprise Level Security configuration file is:- enterprise.config ... local mahinc policy MyComputer Zone has Full trust permission set. ... To create a code group under intranet with fulltrust to a particular share ...
    (microsoft.public.dotnet.faqs)
  • Article : Code Access Security Part - 2 (.Net FrameWork Tools Series)
    ... Enterprise Level Security configuration file is:- enterprise.config ... local mahinc policy MyComputer Zone has Full trust permission set. ... To create a code group under intranet with fulltrust to a particular share ...
    (microsoft.public.dotnet.framework)