I added FriendlyUrls
package via NuGet to my asp.net web pages project.
When I debug the solution it returns error that ASP.ViewSwitcher
in ViewSwitcher.ascx
could not load.
I did not find anything on the internet about this issue.
Could anybody please help me, how to fix this?
change
<%@ Master Language="C#" AutoEventWireup="true"
CodeBehind="Site.Mobile.master.cs" Inherits="ASP.Site_Mobile" %>
to
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="Site.Mobile.master.cs" Inherits="ASP.Site_Mobile" %>
(Edit) That is the case if you are working on a website as oppose to a web application.