How to solve 404 page using Sitecore MVC?

I am using Sitecore 7. For the project I am using MVC functionality. First I will explain what I did. I

  • Created a new MVC3 project with deployment to the file system (with reference to Sitecore.Kernel.dlland Sitecore.Mvc.dll, Sitecore.Mvc.config);
  • A new layout was created in the MVC3 project with the name Main.cshtml;
  • A new layout was created in Sitecore and set to the path: /Views/Main.cshtml(when I click on the Grid constructor, the layout is displayed);
  • Configured layout The main Home element as a layout;
  • The whole site is published;
  • Clicking on the item-Home: Presentation > Preview.

Problem: 404 error occurred, page not found. Does anyone know how I can solve the 404 problem?

Many thanks.

+4
source share
1 answer

I solved the problem. This seems to be caused by an invalid web.config file. I installed it using the Sitecore installer. After installation, I have a web.config file copied to my project.

+1
source

All Articles