简体   繁体   中英

.Net Core Identity Login Page is not working hosted application on IIS

This is my first time hosting a .net core application on Server IIS. after publishing the application on IIS it is working fine. when I go to the login page and after entering the user credentials, it gives me the following page. (It is working fine locally) What is the problem?

Also for the database in code first approach, Am I creating the database and restoring the backup on it or there is a way to run the migration and seed data?

I solved it by adding the following line to project file

<PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>    
</PropertyGroup>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM