简体   繁体   中英

.Net Core 2.1 project doesn't use scaffolded Identity when deploying on IIS, instead uses an old template from 2016

My problem is the following, I have a pretty huge project where I've deployed The Identity Scaffolding, so it has scaffolded in The Areas map. When I run this project in IIS Express on Visual Studio 2016, everything works fine, but when I published it and deploy it on IIS 10 on my local pc or on an remote server with Windows 2016 and IIS 10 installed on it, he refers everytime to a default template of inlogpage.

How it looks on IIS Express and how it should look. This how it looks like.

I deploy it in the local IIS Express of Visual Studio but it doesn't in the normal IIS. IIS Express

Scaffolded Identity

Update project is finally running had something to do with the roles on sql server, but still it doesn't explain why he isn't taking my changed my login page Right page Default page

Those seem to be different projects, see the year and the project name in the footers. To deploy to IIS, consider using the Web Deploy method instead the File system method. See Deploy the app for further information.

Make sure that your site is using the same folder by click on the explore on the site.

在此处输入图片说明

do not forget to refresh the site after publishing from the visual studio.

在此处输入图片说明

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