I have enabled CORS in the Host Environment -- global.asax file. I am trying to post data from one domain to another.
I am trying to fire a post api request from JQuery. This request gets cancelled in chrome and status code 500 is returned in firefox. The reuquest succeeds with the same configurations in local environment but fails after deploying.
I am using openrasta, c#, CORS, IIS7 7.5.
Exception captured via Elmah.
System.NullReferenceException: Object reference not set to an instance of an object. at OpenRasta.Hosting.AspNet.AspNetLogSourceExtensions.StartPreExecution(ILogger`1 log) at OpenRasta.Hosting.AspNet.OpenRastaModule.HandleHttpApplicationPostResolveRequestCacheEvent(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)