Solution: The owin. Environment item cannot be found in the context, and the USB flash drive solution cannot be found.
After the website is published to the virtual space, the following error is displayed: The owin. Environment item cannot be found in the Context. Baidu has not solved the problem for a long time. Add the following configuration in web. config.
<System. webServer>
The problem seems to have been solved. But there is a new problem. An error occurred while loading all static content. The final modification method is to remove the above Code and give
Add runAllManagedModulesForAllRequests = "true" to the modules node. The Code is as follows:
<System. webServer> <modules runAllManagedModulesForAllRequests = "true"> <remove name = "FormsAuthentication"/> the following content is omitted </modules> </system. webServer>
Although the problem has been solved, I still don't know where the problem is.