0
votes
1answer
56 views

Global.asax requires AllowPartiallyTrustedCallers on assembly with child class of SPHttpApplication

In my class NinjectSPHttpApplication I have inherited SPHttpApplication class in order to use Ninject as IOC container. When I set global.asax to inherit from this class it throws an exception that ...
0
votes
1answer
72 views

When is SPHttpApplication class created and destroyed/disposed?

I would like to know when exactly is the SPHttpApplication class created and when destroyed/disposed. Does it last for the whole user session or only for a single request?
4
votes
2answers
1k views

Add custom error handler at beginning of modules section in web.config (not manually)

Is there a way to put an error handler HTTPModule at the beginning of the modules section in web.config without doing this manually? I've tried the supplemental web.config approach like this: ...
1
vote
2answers
1k views

Access denied in Sharepoint 2010 HTTP handler (.ashx)

I've developed a Visual Web Part for Sharepoint 2010 that includes an HTTP handler for some AJAX functionality. I followed this guide to accomplish this. I've createad a brand new SP 2010 web ...
1
vote
3answers
1k views

HttpModule does not register

I recently need to register a custom HttpModule to intercept the mobile redirection feature. I followed this tutorial. At one point, I need to register my HttpModule in the web.config and put my DLL ...
4
votes
2answers
2k views

Logging document library downloads with HttpModule

I'm stuck with a problem here that leaves me stupefied. I am writing an HttpModule which examines the URL of all HTTP requests in order to log which users have downloaded each document in a document ...