I have an branding solution with custom master page. I have also utilities assembly, which is deployed into GAC.
I have a button in my master page and I'd like to bind it's navigate URL to result of static method which is located in utilities assembly. My branding solutions has reference to util assembly. My class looks as follows:
namespace GPE.Utilities.Integration
{
public static class AuthenticationHelper
{
public static string GetSignoutUrl()
{
// logic here
}
}
}
and my button in master page:
<SharePoint:SPLinkButton runat="server" Text="Signout" NavigateUrl="<%# GPE.Utilities.Integration.AuthenticationHelper.GetSignoutUrl() %>" />
And I'm getting following error:
error CS0234: The type or namespace name 'Utilities' does not exist in the namespace 'GPE' (are you missing an assembly reference?)
EDIT
I added this at top of my master page:
<%@ Register Tagprefix="GpeIntegration" Namespace="GPE.Utilities" Assembly="GPE.Utilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6dd8f89f9df3b99" %>
And I got following error:
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
I also tried with:
with same result.