I'm using VS2015 Community. I've created an empty ASP.NET project and installed Umbraco from NuGet package manager by following:
Install-Package UmbracoCms
During the installation I've selected to overwrite web.config files. Then I've successfully logged into Umbraco but made no changes. Now when I'm trying to load the default home page, I'm getting this configuration error.
Thanks Lee,
It was a good point. I've upgraded the MVC as described in the link but sadly, it didn't helped. The configuration error is still there. Have you got any other ideas what might be causing this problem?
There were actually two sectionsGroups, and when I've deleted the second one everything worked fine. However, the real problem was that I left checked MVC checkbox when creating a new project. Problem solved.
Configuration Error after nuget installation
Hi,
I'm using VS2015 Community. I've created an empty ASP.NET project and installed Umbraco from NuGet package manager by following:
During the installation I've selected to overwrite web.config files. Then I've successfully logged into Umbraco but made no changes. Now when I'm trying to load the default home page, I'm getting this configuration error.
What might went wrong or how to fix it?
Thanks,
John
Hi John,
The issue is with VS2015, it doesn't support MVC4, so you'll need to upgrade the project to MVC5.
There are instructions on the Umbraco.com blog:
https://umbraco.com/follow-us/blog-archive/2015/7/29/upgrading-your-umbraco-site-to-mvc5-and-webapi2
The alternative is to use an earlier version of VS. (Pain in the bum, I know!)
Cheers,
- Lee
Thanks Lee, It was a good point. I've upgraded the MVC as described in the link but sadly, it didn't helped. The configuration error is still there. Have you got any other ideas what might be causing this problem?
Hi Jan,
Oops, I didn't look very closely at the error message in your screengrab, it says:
If you open your
/Views/Web.config
file, you should see that there is more than one<sectionGroup>
with the name of "system.web.webPages.razor".Remove the duplicated one, (or others if there are more than one?)
Cheers,
- Lee
OK,
There were actually two sectionsGroups, and when I've deleted the second one everything worked fine. However, the real problem was that I left checked MVC checkbox when creating a new project. Problem solved.
Thank You.
is working on a reply...