Fixing: The file /_catalogs/masterpage/_controltemplates/Welcome.ascx does not exist.

The file /_catalogs/masterpage/_controltemplates/Welcome.ascx does not exist.

This was the error I found in the logfiles as the page gave the usual correlation ID of head scratchiness.  In my case it was popping up only when users were creating a new page, but there are several places you could hit this.  some might even case a whole site to come up as a 404 error.

In IIS you will find _controltemplates, but no _catalog.  Resist the urge to create a _catalog, just like I didn't.  This won't fix the issue, but will move your error along.

After some googling, I found this tidbit:

Most likely the tilde sign "~" has dissapeared in your references on the masterpage after editing it in the sharepoint designer.
In the beginning of the masterpage you have register statements that should look like this

Code Snippet
<%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %>

I reviewed the master page used by the site and then I opened the master page gallery and edited the master page that was in question.  Sure enough, I saw src="_controltemplates... so I hand edited it to "~/_controltemplates.  Then I saved, checked in, published a major version, and then approved my changes.  That fixed the issues.




Comments

Popular posts from this blog

Setting SharePoint announcements to auto delete after expiration

Updating a single field in a SharePoint List using Power Automate Flows

SharePoint driven rich text dashboard using jqueryui. (JQuery file)