asp.net mvc 2 - ASP MVC 2 in Sharepoint 2007 Security Exception -


i trying configure asp mvc 2 framework run within sharepoint 2007 install on iis 6.0. have managed 2 web.config setups together, , made gac , global.asax changes.

when try access mvc application within sharepoint domain (http://sharepoint.com/mvcapp), security exception.

**source error:**   unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.    **stack trace:**   [securityexception: request permission of type 'system.web.aspnethostingpermission, system, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' failed.]    system.web.mvc.buildmanagerwrapper.system.web.mvc.ibuildmanager.getreferencedassemblies() +14    system.web.mvc.typecacheutil.filtertypesinassemblies(ibuildmanager buildmanager, predicate`1 predicate) +88    system.web.mvc.typecacheutil.getfilteredtypesfromassemblies(string cachename, predicate`1 predicate, ibuildmanager buildmanager) +65    system.web.mvc.arearegistration.registerallareas(routecollection routes, ibuildmanager buildmanager, object state) +80    system.web.mvc.arearegistration.registerallareas(object state) +55    system.web.mvc.arearegistration.registerallareas() +7    capexrequest.mvcapplication.application_start() in c:\documents , settings\administrator\my documents\visual studio 2008\projects\capexrequest\capexrequest\global.asax.cs:29   -------------------------------------------------------------------------------- version information: microsoft .net framework version:2.0.50727.3603; asp.net version:2.0.50727.3614 

i have tried adding permissions machinename\aspnet account \mvcapplication suggested in 1 article. no joy.

other occurences seem related accessing remote file share. there no remote file share in instance.

any thoughts, suggestions, answers??

so, here setup is, , steps taken together...

  • followed basic instructions running asp.net mvc application in sharepoint (see link below), put custom mvchttpapplication in it's own project , created standalone assembly;

  • updated sharepoint include ajax 3.5 (ours referencing 1.0 standalone);

  • built signed application , deployed virtual directory, including adding application assembly in gac.

actually pretty straight-forward far. took while come senses.

"using asp>net sharepoint publishing" http://vspug.com/mbailey/files/2010/04/using-asp.net-mvc-2-with-sharepoint-publishing.pdf


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -