deval chawda
deval chawda

Reputation: 3

While deploying in IIS getting error : The view 'Index' or its master was not found or no view engine supports the searched locations

I am getting this error after deploying the code on the server or local IIS, but in debug mode everything is working fine. The message is clear that it is not able to find index.cshtml file but everything is in its place.

Application error:

app error

Project files:

project files

Assembly information:

assembly

Upvotes: 0

Views: 571

Answers (1)

GanHJ
GanHJ

Reputation: 330

You should check whether ~/Views/Home/Index.cshtml is available in your deployed application and also is in the correct directory, not your development location as you said it works in debug mode.

Upvotes: 1

Related Questions