I have the following line of code:
<%@ Register %>
When I attempt to add this line of code Visual Studio informs me of this non-informative message:
"Could not complete the action."
I remove even one character from the Register statement and it gives me that message. I type "<%@ Register %>
" and it gives the message.
I am attempting to add this line in full:
<%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Kernel" %>
Some additional information:
Here's the relevant code:
<controls>
<add tagPrefix="sc" namespace="Sitecore.Web.UI.WebControls" assembly="Sitecore.Kernel" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="sc" namespace="Sitecore.Web.UI.WebControls" assembly="Sitecore.Analytics" />
</controls>
You could add the prefix to the config file
, to make it available to other pages in the project.
<configuration>
<system.web>
<pages>
<controls>
<add tagPrefix="sc" src="~/locationofcontrol" tagName="sitecore"/>
</controls>
</pages>
</system.web>
</configuration>
Take a look here
for a thorough explanation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With