Welcome Guest Search | Active Topics | Sign In | Register

Security issue Options
Morten Snedker
Posted: Monday, June 11, 2007 1:59:32 AM
Rank: Newbie
Groups: Member

Joined: 6/11/2007
Posts: 1
VS 2005, Framework 2.0:

When dragging the menu to an ampty page and running it, it produces the error:

Error 1 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Z:\web\s3import\menu.ascx 3


I tried adding the dll to the policy assemblies to Policy Assemblies from the Framework 2.0 Configuration, but this fails with

"Unable to add the selected assembly. The assembly must have a strong name (name. version and public key)."

I don't know how to get around the problem - maybe I'm at a totally wrong approach. Running demo pages you provided, produces no errors and runs flawless.

Regards /Snedker
eo_support
Posted: Monday, June 11, 2007 6:44:38 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi Morten,

The problem has to do with your code access security setting. Most of the time it is caused by something --- either some DLLs that your project use or your project itself is sitting on a network drive. Try it with a local project and see if it works.

A rather good article about how to configure code access security can be found at here:

http://www.15seconds.com/issue/040121.htm

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.