SharePoint Masterpage – “Resource cannot be found”

Eine Fehlermeldung, die man gar nicht gerne sieht, aber manchmal einfach nicht verhindern kann… oder doch?

Wer eine Masterpage für eine SharePoint Site erstellt oder ändert, arbeitet vielleicht mit SharePoint Designer. Aber bei den meisten meiner Kunden ist der SharePoint Designer gesperrt. Denno: Wenn man die Masterpage mit dem SharePoint Designer ändert und wieder hochlädt, dann kann es sein, dass man genau  diesen Fehler bekommt:

 

 

 

 

 

 

 

 

 

 

 

Wenn man Detailinformationen haben will, dann öffnet man von dieser Seite den Source Code – Artikel dazu.Und wie kann man diese Herausforderung nun lösen und was ist die Ursache?

Die Ursache liegt beim SharePoint Designer. Wenn man eine Masterpage lokal speichert und dann hochlädt, entfernt dieser automatisch die Tilde (“~”) vor bestimmten Einträgen und damit können natürlich die benötigten Ressourcen nicht gefunden werden:

<%@ Register TagPrefix=”wssuc” TagName=”Welcome” Src=”~/_controltemplates/Welcome.ascx” %>

<%@ Register TagPrefix=”wssuc” TagName=”DesignModeConsole” Src=”~/_controltemplates/DesignModeConsole.ascx” %>

<%@ Register TagPrefix=”PublishingVariations” TagName=”VariationsLabelMenu” Src=”~/_controltemplates/VariationsLabelMenu.ascx” %>

<%@ Register TagPrefix=”PublishingConsole” TagName=”Console” Src=”~/_controltemplates/PublishingConsole.ascx” %>

<%@ Register TagPrefix=”PublishingSiteAction” TagName=”SiteActionMenu” Src=”~/_controltemplates/PublishingActionMenu.ascx” %>

Am besten Notepadd++ oder ähnliches öffnen, die Tilde hinzufügen und wieder hochladen. Danach funktioniert es wieder.

Das Problem mit dem SharePoint Designer soll angeblich nicht vorkommen, wenn man SP1 installiert hat – Angeblich! 🙂

..:: I LIKE SHAREPOINT ::..

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

About Karsten Schneider 312 Articles
Consultant for Microsoft 365 Applications with a strong focus in Teams, SharePoint Online, OneDrive for Business as well as PowerPlatform with PowerApps, Flow and PowerBI. I provide Workshops for Governance & Security in Office 365 and Development of Solutions in the area of Collaboration and Teamwork based on Microsoft 365 and Azure Cloud Solutions. In his free time he tries to collect tipps and worthy experience in this blog.

Be the first to comment

Leave a Reply

Your email address will not be published.


*