RadCalendar for ASP.NET AJAX(Version 2008 Q3) is not supporting SelectedDate.ToUniversalTime() method

8 posts, 1 answers
  1. Ashok
    Ashok avatar
    4 posts
    Member since:
    Sep 2011

    Posted 29 Sep 2011 Link to this post

    Hi,

    I am using Telerik RAD controls in asp.net application and As a process of RAD control migration, Insatlled RadControls_Q3_2008_dev  application on my machine and replaced all the old RAD dlls  references with 2008 Q3 version dlls but while trying to build the application, Its throwing method not supporting errors.

    RadCalendar control is giving the major errors(no extension method available issue)

    dtRADCalender.SelectedDate.ToUniversalTime();


    Example:

    Error 48 'System.Nullable<System.DateTime>' does not contain a definition for 'ToUniversalTime' and no extension method 'ToUniversalTime' accepting a first argument of type 'System.Nullable<System.DateTime>' could be found (are you missing a using directive or an assembly reference?) 

    Please suggest the solution ASAP.

    Thanks,
    Ashok
  2. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 30 Sep 2011 Link to this post

    Hi Ashok,

    This exception indicates that, the ToUniversalTime() method is called with parameter, although it should be called without any parameters.

    Please, check if this is the case, and if a parameter is passed to the method call, try to remove the parameter and let us know whether the problem is resolved.

    Best wishes,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Ashok
    Ashok avatar
    4 posts
    Member since:
    Sep 2011

    Posted 30 Sep 2011 Link to this post

    Hi Andrey,

    Thank you for the reply,

    Telerik RadCalendar control(2008 Q3 Version) is not supporting ToUniversalTime() method, where as in the previous version(2008 Q2) It was supporting, Since while doing migration am facing complication errors.

    Please find the Attached error screenshot for better understanding.

    Please suggest the possible ways to fix the compilation errors with  out code changes.

    Thanks,
    Ashok.
  4. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 03 Oct 2011 Link to this post

    Hi Ashok,

    Note that 2008 Q3 version is not supported. Please upgrade to the latest version of our controls and let me know whether the issue is resolved.

    Also I have created sample project to illustrate how to work with ToUniversalTime method in our latest release.
    Check it out and let me know if it helps.

    Kind regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Ashok
    Ashok avatar
    4 posts
    Member since:
    Sep 2011

    Posted 03 Oct 2011 Link to this post

    Hi Andrey,

    Thank you for much help.

    I am currently using .Net 2.0 version, Is Version 2011 Q2 is compatable with .Net 2.0/3.5.

    Please Clarify.

    Thanks,
    Ashok
  6. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 03 Oct 2011 Link to this post

    Hello Ashok,

    Starting with version Q1 2011 RadControls for ASP.NET AJAX are shipped with .NET 3.5 and .NET 4 assemblies only. But despite that fact, you should not have any problems with Q3 2008 SP1 Version. I tested that on my machine and the code executes without an issue. Try running the project I have sent you in my last reply with your assemblies and check whether it is working as expected.

    All the best,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  7. Ashok
    Ashok avatar
    4 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2011 Link to this post

    Thank you Andrey,

    Uninstalled all the RAD control software on my machine and Installed Telerik RAD Q3 2008 SP1 Version as mentioned in below reply and tried to build the .Net application but it is still giving me the complication error(missing directive or assembly reference).

    Could you please provide the RAD control software installation process.

    Many Thanks,
    Ashok.
  8. Answer
    Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 06 Oct 2011 Link to this post

    Hi Ashok,

    Try removing all Telerik assembly references that you use in your project and then add them again. After this step is done, please clear the content of the following folders on your local drive - they hold temporary files about your project.

    C:\Users\[currently_logged_user]\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

    About the installation process of RadControls, you just need to follow the on-screen instructions.

    Regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top