I was creating a materpage when I got following error on publishing my masterpage:
CS0030: Cannot convert type "Microsoft.SharePoint.Webcontrols.Scriptblock" to "System.Web.UI.IAttributeAccessor".
The solution of this error was hidden in warning of debug.When I check the content of my masterpage I found some extra properties added to ScriptBlock tag. My tag looked like below:
<SharePoint:ScriptBlock runat="server" __designer:Preview="<script
type="text/javascript">// <![CDATA[
var g_Workspace = "s4-workspace"; // ]]>
</script>" __designer:Values="<P N='ID' T='ctl09' /><P
N='Page' ID='1' /><P N='TemplateControl'
ID='2' /><P N='AppRelativeTemplateSourceDirectory' R='-
1' />"></SharePoint:ScriptBlock>
I make it simple like below and my page was working like a charm.
<SharePoint:ScriptBlock ID="ScriptBlock2" runat="server" ></SharePoint:ScriptBlock>
Subscribe to:
Post Comments (Atom)
-
Issue : Recently, we had a requirement to sync the calendar between shared mailbox outlook and SharePoint Calendar list. We have created 2 f...
-
Issue : Recently there was an issue we face while training React. Generally we give training using video series on YouTube but this time we ...
-
Issue: Recently, we were developing a SPFx webpart in which we needed to open a dialog. For that we decide to use Office Fabric UI Dialog co...
No comments:
Post a Comment