Last post Mar 14, 2017 01:17 PM by flameater
Mar 14, 2017 10:22 AM|flameater|LINK
My project was targeted for Net Framework 4.6. Then I upgraded it to 4.6.1 and updated the various packages accordingly.
Now with the project targeting 4.6.1, and Microsoft.ASPNet.WebAPI version 5.2.3, I am getting the above error in the file Startup.Auth.cs.
Originally, errors lit up like a Christmas tree after the Net Framework version change. I have uninstalled, installed and upgraded various related packages several times, and now only two errors remain.
The type or namespace name 'ApplicationOAuthProvider' could not be found (are you missing a using directive or an assembly reference?
The type or namespace name 'Providers' does not exist in the namespace 'CorsApi' (are you missing an assembly reference?)
Does anyone know how to overcome these? As far as uninstallation and reinstallation of the packages are concerned that has been done several times. The Local Copy properties for all packages are also set to True.
Mar 14, 2017 01:17 PM|flameater|LINK
The file Startup.Auth.cs, which was auto-generated, was malformed.
Here's a way to solve it.
Create a new Web API project. Make sure that it is running. Then compare the same files against the malfunctioning project and make changes accordingly.