1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / 3.2 to 3.6 patch asp.net error

3.2 to 3.6 patch asp.net error

4 posts, 0 answered
  1. nogatek
    nogatek avatar
    35 posts
    Registered:
    23 Apr 2008
    17 Feb 2009
    Link to this post
    Hi,

    I've just performed an update (patch) from 3.2 to 3.6 running on IIS 6.0 and ASP.NET 2.0. (local machine, Windows XP)

    I've carefully followed the upgrade instructions and have tried merging the web.config files and / or modifying the new one supplied with the download.

    The upgrade appeared to work fine and my web project successfully loads.

    However, when I click on any link to other SF pages I'm getting the following run time error (see below bottom of email).

    Question: Is there anything I need to do for running on ASP.NET 2.0 (I definately downloaded the correct patch package).

    Question: RE: the KB article "How to map a view to an external template, in Sitefinity 3.6 or later? - ID#1264" - Is this optional? I only need to do this to force a load / override custom controls. What about the controls specified in the telerik.cms.toolboxControls namespace in web.config?

    Anyway, hopefully you may have a suggestion for troubleshotting the error below. I've just about ran out of ideas.

    Thanks, Mark

    The 'asp' tag is referenced in my web.config like so:

        <system.web>
        <!-- Start CUSTOM -->
        <trust level="Full" originUrl="" />
        <!-- Sets the allowed upload file size -->
        <httpRuntime maxRequestLength="51200" />
        <customErrors mode="Off">
          <error redirect="~/sf404.aspx" statusCode="404"/>
          <!-- Start SF -->
          <error redirect="~/Sitefinity/nopermissions.aspx" statusCode="403"/>
          <!-- End SF -->
        </customErrors>
        <trace enabled="false" requestLimit="10" pageOutput="false" localOnly="true"/>
        <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="en-AU" uiCulture="en-AU"/>
        <!-- End CUSTOM -->
        <pages theme="Navon" enableEventValidation="false" validateRequest="false">
                <controls>
            <!-- Start AJAX -->
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="ajax" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="ajax" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=1.0.10618.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
            <!-- End AJAX -->
            <!-- Start SF -->
                    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
            <add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI"/>
            <add tagPrefix="telerik" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Cms.Web.UI"/>
            <add tagPrefix="telerik" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Framework"/>
            <!-- End SF -->
          </controls>

    ...
    ...
    Could not resolve type for tag "asp:Image". Make sure the proper namespace is registered.

    Server Error in '/Navon' Application.

    Could not resolve type for tag "asp:Image". Make sure the proper namespace is registered.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: Could not resolve type for tag "asp:Image". Make sure the proper namespace is registered.

    Source Error:

    Line 71: 			TextBoxMessage.Attributes.Add("onblur", "keyPressOK=false;")
    Line 72: 
    Line 73: 			Me.DataBind()
    Line 74: 		End If
    Line 75: 	End Sub

    Source File: D:\Visual Studio 2008\Projects\Navon\UserControls\Contact\VB\EmailFriend.ascx.vb    Line: 73

    Stack Trace:

    [ArgumentException: Could not resolve type for tag "asp:Image". Make sure the proper namespace is registered.]
       Telerik.Cms.Web.UI.Templates.TemplateParser.ResolveType(String tag) +608
       Telerik.Cms.Web.UI.Templates.TemplateParser.CreateObjectBuilder(HtmlChunk chunk) +184
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseOpenTag(HtmlChunk chunk) +302
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +98
       Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +199
       Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(TemplateParser parser) +106
       Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(String html) +96
       Telerik.Cms.Web.UI.Templates.ObjectBuilder..ctor(ObjectBuilder parent, String html) +58
       Telerik.Cms.Web.UI.Templates.ObjectBuilder..ctor(ObjectBuilder parent, String html, ResourceManager resourceManager) +40
       Telerik.Cms.Web.UI.Templates.ControlBuilder..ctor(ObjectBuilder parent, String html, ResourceManager resourceManager) +43
       Telerik.Cms.Web.UI.Templates.RootBuilder..ctor(ResourceManager resourceManager, String html, ObjectBuilder parent) +43
       Telerik.Cms.Web.UI.Templates.RootBuilder..ctor(ResourceManager resourceManager, String html) +42
       Telerik.Framework.Web.StringTemplate..ctor(String declaration, ResourceManager resourceManager, String templateName) +63
       Telerik.Framework.Web.StringTemplate..ctor(String declaration, String templateName) +42
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo) +1006
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo) +48
       Telerik.Web.UI.SpamProtection.SpamProtector.CreateCaptchaLayoutTemplate() +79
       Telerik.Web.UI.SpamProtection.SpamProtector.get_CaptchaLayoutTemplate() +74
       Telerik.Web.UI.SpamProtection.SpamProtector.CreateChildControls() +184
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.WebControls.CompositeControl.DataBind() +41
       System.Web.UI.Control.DataBindChildren() +211
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.Control.DataBindChildren() +211
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.Control.DataBindChildren() +211
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.Control.DataBindChildren() +211
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
       System.Web.UI.Control.DataBind() +15
       UserControls_VB_EmailFriend.Page_Init(Object sender, EventArgs e) in D:\Visual Studio 2008\Projects\Navon\UserControls\Contact\VB\EmailFriend.ascx.vb:73
       System.Web.UI.Control.OnInit(EventArgs e) +99
       System.Web.UI.UserControl.OnInit(EventArgs e) +77
       System.Web.UI.Control.InitRecursive(Control namingContainer) +333
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
       System.Web.UI.ControlCollection.Add(Control child) +80
       UserControls_ModalPopup.Page_Load(Object sender, EventArgs e) in D:\Visual Studio 2008\Projects\Navon\UserControls\Other\VB\ModalPopup.ascx.vb:74
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082



  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Feb 2009
    Link to this post
    Hi Mark,

    I am surprised by this error.

    Could you please try the following:
    • Add the record<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>. The image control is defined in that namespace.
    • Add a reference to System.Web.UI.WebControls directly in your template.
    If these do not help, we would require to see your project locally in order to determine the problem. We are looking forward for your reply, results, and decision about our suggestion.
    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. nogatek
    nogatek avatar
    35 posts
    Registered:
    23 Apr 2008
    23 Feb 2009
    Link to this post
    Hi Georgi,

    Yes, adding a new "asp" tag prefex reference to the System.Web.UI.WebControls namespace in web.config solved the problem!

    It's interesting that this was required, as the old set of references worked fine in 3.2.

    In any case, thank you very much for helping me out with this one Georgi.

    Best regards,

    Mark Lawton
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Feb 2009
    Link to this post
    Hi Mark,

    I am glad this fixed the problem. I will investigate the issue with 3.2 and 3.6, and will follow up if I find something interesting to know.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered