The virtual path '/UserControls/FormExtra.ascx' maps to another application, which is not allowed

Category ASP.Net Sub Category Page Interaction
Bookmark and Share
This error occured when publishing a site but was working ok inside visual studio usage. The solution in this case is simple.
The problem is that a reference was added as below to an aspx page

Copy Code
<%@ Reference control="/UserControls/FormExtra.ascx" %>


All it needed was the ~ added

Copy Code
<%@ Reference control="~/UserControls/FormExtra.ascx" %>



Share the love
Bookmark and Share