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

Forums / Designing with Sitefinity / 'Telerik.Cms.Web.CmsPageBase' does not contain a definition for 'ResolveCmsUrl' ...

'Telerik.Cms.Web.CmsPageBase' does not contain a definition for 'ResolveCmsUrl' ...

11 posts, 0 answered
  1. john mirzaei
    john mirzaei avatar
    13 posts
    Registered:
    06 Oct 2009
    10 Oct 2009
    Link to this post
    Hello
    When trying to map the newsItemEdit.ascx or  newsItemNew.ascx i get this error when i'm trying to go to the Create a News Item:
    'Telerik.Cms.Web.CmsPageBase' does not contain a definition for 'ResolveCmsUrl' and no extension method 'ResolveCmsUrl' accepting a first argument of type 'Telerik.Cms.Web.CmsPageBase' could be found (are you missing a using directive or an assembly reference?)
    Can u help with solving this problem?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 Oct 2009
    Link to this post
    Hello john mirzaei,

    A response has been sent the first forum thread that you have posted the questions in. Please follow this link to take a look at the answer - http://www.sitefinity.com/support/forums/sitefinity-3-x/general-discussions/news-module-date-type.aspx.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Hung Tran
    Hung Tran avatar
    3 posts
    Registered:
    13 Apr 2010
    14 Apr 2010
    Link to this post
    I got the same problem but it seems no one response to this subject of the earlier post.

    var

     

    pathLoc = '<%= ((Telerik.Web)Page).ResolveCmsUrl("~/EducationWeb/UserControlServer/Communication/UserTemplateDialog.aspx") %>'

     

    editor.showExternalDialog(


    The error message is below.

    CS0234: The type or namespace name 'Cms' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    14 Apr 2010
    Link to this post
    Hi Hung Tran,

    You should use ((Telerik.Cms.Web.CmsPageBase)Page).ResolveCmsUrl(. In your code you are not casting the correct types.

    You could also call Telerik.Cms.Web.UI.UrlHelper.ResolveUrl(string url)

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Hung Tran
    Hung Tran avatar
    3 posts
    Registered:
    13 Apr 2010
    14 Apr 2010
    Link to this post

    Sorry I modify the code, but that is what I tried to use and it still give me error. The code below is what I use.

    var

     

    pathLoc = '<%= ((Telerik.Cms.Web.CmsPageBase)Page).ResolveCmsUrl("~/EducationWeb/UserControlServer/Communication/UserTemplateDialog.aspx") %>'

     

    editor.showExternalDialog(pathLoc+

    'action=save&userid=' + args.userid + '&loc=classmail&templatetype=' + args.templatetype,

     

    args,

    715,

    465,

    myCallbackFunctionSave,

     

    null,

     

     

    'Save ClassMail Template',

     

     

    true,

     

    Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,

     

    true,

     

     

    true);

     

  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Apr 2010
    Link to this post
    Hi Hung Tran,

    If this is in a custom module, or some other project could you please try adding the Telerik.Cms.dll to the references.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Hung Tran
    Hung Tran avatar
    3 posts
    Registered:
    13 Apr 2010
    14 Apr 2010
    Link to this post
    We have that file, Telerik.Cms.dll
  8. Aparna
    Aparna avatar
    20 posts
    Registered:
    05 Sep 2012
    31 Mar 2011
    Link to this post
    Hi!

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0234: The type or namespace name 'WebModule' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)

    Source Error:

    Line 14: namespace SitefinityWebApp.App_code.Contacts
    Line 15: {
    Line 16:     public class ContactsModule : Telerik.WebModule
    Line 17:     {
    Line 18:     public ContactsModule()


    this is the error i am facing when i am trying to create a module. THe webModule is not recognized as key word. Is there any Name space i am Missing.The following are the name spaces i added:

    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Telerik;

    Please Help at the earliest.

    Regards,
    Aparna

  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    31 Mar 2011
    Link to this post
    Hi Aparna,

    The namespace is Telerik and the class is WebModule, but make sure that you have reference to Telerik.Framework.dll where the class resides. Note that this is valid for 3.x based websites.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
  10. Aparna
    Aparna avatar
    20 posts
    Registered:
    05 Sep 2012
    31 Mar 2011
    Link to this post
    Hi ivan!

    Thank You for Yor Response.
    I have incluced the namespace Telrik;
    I am using 4.0 version.
    Even i am getting htis error

    Regards,
    Aparna
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    31 Mar 2011
    Link to this post
    Hello Aparna,

    This is the forum for 3.x.Please use the thread for Sitefinity 4.0. The classes you are trying to use are not valid for Sitefinity 4.0. Please download our SDK and observe the sample modules that we added there.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
Register for webinar
11 posts, 0 answered