Last post Feb 05, 2016 07:09 AM by Yohann Lu
Feb 04, 2016 04:57 PM|pafeth|LINK
I am build a WebAPI/MVC application. It works fine without configuring CORS. When I added the CORS dll, I am receiving this errors. I think it has to do with target framework vs version framework but I don't know how to resolve this.
could not load type 'system.runtime.compilerservices.scriptassemblyattribute' from assembly 'mscorlib, version=188.8.131.52,
Feb 05, 2016 07:09 AM|Yohann Lu|LINK
From your description, I suggest you change your Framework version 4.5 or later in your program.
Then, enable CORS. In Visual Studio, from the Tools menu, select Library Package Manager, then select Package Manager Console. In the Package Manager Console window, type the following command:
The following tutorial to enable CORS in Web API for your reference: