applied. As I understand, methods of the HttpModule will always be called by ASP.NET code(System.Web.HttpApplication) which is located in GAC, hance having FullTrust permission set.
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] on HttpModule is that some providers may not allowe FullTrust for Microsoft's assemblies?
None
0 Points
2 Posts
AspNetHostingPermission and HttpModule
Dec 29, 2011 10:00 PM|joxa83|LINK
Hi guys,
I can not understand why HttpModules usually have
AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)
applied. As I understand, methods of the HttpModule will always be called by ASP.NET code(System.Web.HttpApplication) which is located in GAC, hance having FullTrust permission set.
Contributor
2184 Points
786 Posts
Re: AspNetHostingPermission and HttpModule
Dec 30, 2011 01:17 AM|mayankpathakyours|LINK
Hey there
Ask your hosting providers for the permission, Yes there are some hosting providers who do not support http handlers on their servers.
and check for details about httpmodules
http://msdn.microsoft.com/en-us/library/bb398986.aspx
http://aspalliance.com/articleViewer.aspx?aId=442&pId=-1
None
0 Points
2 Posts
Re: AspNetHostingPermission and HttpModule
Dec 30, 2011 01:28 AM|joxa83|LINK
Hi mayankpathaky,
are you trying to say that ony reason for
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] on HttpModule is that some providers may not allowe FullTrust for Microsoft's assemblies?
Contributor
2184 Points
786 Posts
Re: AspNetHostingPermission and HttpModule
Dec 30, 2011 01:34 AM|mayankpathakyours|LINK
I'm sorry i didn't read your question carefully first time....
But yes some hosting companies don't trust httphandlers on their servers i'm sure about it.
and for your question read this for details...Its interesting and useful for you and me also.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webparttransformer.aspx