Skip to content

_ViewStart not found after upgrading to .Net Core 3.1 #17625

@joetherod

Description

@joetherod

My app renders its views from the database using all of the provided extensions of razor, fileprovider, locationexpander, etc. All worked fine with 2.0, 2.1, 2.2, 3.0. It doesnt work with 3.1. In debug mode it works. In release mode it doesnt. And my production environment uses release mode. When it parses the razor for my virtual provider, the layout is not set. Request of ViewStart is not called.
My viewstart file is in the root as it always been. Nothing changed except upgrading all packages to 3.1. On the initial load of the site, it calls the for the layout, It doenst afterwards. Since this is a tenant based app, hosted many sites with their own layouts, I need this viewstart called everytime.

Please help. This was working fine in previous versions. Do I need some location expander for the viewstart file now?

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesinvestigate

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions