Wednesday, November 7, 2012

Anonymous Access and TaxonomyWebTaggingControl WebTaggingDialog

Trying to use TaxonomyWebTaggingControl with anonymous user? Control works fine, but the popup dialog (WebTaggingDialog). It will ask you for authentication no matter what. The reason is that it is an application page, which by default does not allow anonymous access.

So far I was able to find only one way to fix it, and it is described in Ironworks blog. You have to modify actual application page (WebTaggingDialog.aspx) located in LAYOUTS folder, by adding the following code:

<script runat="server" type="text/C#">
protected override bool AllowAnonymousAccess
{ 
    get
    { 
        return true; 
    } 
}
</script>

Please remember that this change is not supported by Microsoft and could be overridden during service pack deployment.

No comments:

Post a Comment