Hi,
I had a WebAPI project running and wanted to add the CORS feature but after I used the nugent package manager to install the CORS feature I now am getting a Ninject error.
ERROR:
Attempt by method 'System.Web.Http.GlobalConfiguration..cctor()' to access field 'System.Web.Http.GlobalConfiguration.CS$<>9__CachedAnonymousMethodDelegate2' failed."}
Could you please advise why this would be so?
Comments: the line throwing the error is : System.Web.Http.GlobalConfiguration.Configuration.DependencyResolver = new Ninject.WebApi.DependencyResolver.NinjectDependencyResolver(kernel);
I had a WebAPI project running and wanted to add the CORS feature but after I used the nugent package manager to install the CORS feature I now am getting a Ninject error.
ERROR:
Attempt by method 'System.Web.Http.GlobalConfiguration..cctor()' to access field 'System.Web.Http.GlobalConfiguration.CS$<>9__CachedAnonymousMethodDelegate2' failed."}
Could you please advise why this would be so?
Comments: the line throwing the error is : System.Web.Http.GlobalConfiguration.Configuration.DependencyResolver = new Ninject.WebApi.DependencyResolver.NinjectDependencyResolver(kernel);