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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
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.htmThanks
|