Re: dotnet security exception issues
- From: Dave Cullen <nospam@xxxxxxxx>
- Date: Fri, 21 Apr 2006 10:33:27 -0400
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.
- Follow-Ups:
- Re: dotnet security exception issues
- From: Cerebrus
- Re: dotnet security exception issues
- References:
- dotnet security exception issues
- From: Dave Cullen
- Re: dotnet security exception issues
- From: Cerebrus
- dotnet security exception issues
- Prev by Date: Re: Best Practices
- Next by Date: Re: Emailing with default client
- Previous by thread: Re: dotnet security exception issues
- Next by thread: Re: dotnet security exception issues
- Index(es):
Relevant Pages
|