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: We built a repro project, and we don't see this happening. My guess is that you have some assemblies that haven't updated to 5.0, alternatively verify you are using the ninject-mvc3 package.
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: We built a repro project, and we don't see this happening. My guess is that you have some assemblies that haven't updated to 5.0, alternatively verify you are using the ninject-mvc3 package.