2
votes
1answer
43 views

SPWebConfigModification adding child nodes in undesired order

I have some code that uses SPWebConfigModification to add a couple of nodes to the system.webServer/modules section. What I want to do is add a <remove name="MyModule" /> and then an <add ...
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
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 ...
3
votes
1answer
1k views

How do I set CallStack=“false” but still get the exception in a custom error handler?

I've got a pretty custom SharePoint 2010 Server solution. We have a custom HttpModule setup for error handling (relevant code provided below): public class ErrorHandlerModule : IHttpModule { ...