1
Vote

Start Page Security Error

description

When I run the project (starturl- /BlogMVC.Web) it throws an security exception:
 
"System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed"
 
Stack Trace:
 
 
[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +58
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +99

comments

Trevor wrote Aug 3, 2008 at 12:41 PM

First of all, sorry for my late reply. I hadn't expected anyone to start posting issues yet. I will take a look at this. I haven't seen this exception myself. From what I've seen on Google this has to do with running on medium trust.

CuriosVB wrote Aug 8, 2008 at 5:35 AM

You are doing a great job.... The architecture and the use of extension methods is real good.
I tried giving security to the assembly but it doesnt work. Please let me know.

wrote Feb 13, 2013 at 12:45 AM