Error message: Exception has been thrown by the target of an invocation.

Error details:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.PlatformNotSupportedException: This operation requires IIS integrated pipeline mode. at System.Web.HttpResponse.get_Headers() at ASP.global_asax.Application_PreSendRequestHeaders() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) at System.Web.HttpApplication.RaiseOnPreSendRequestHeaders()