How do I use the sample Telerik projects

3 posts, 1 answers
  1. AkAlan
    AkAlan avatar
    121 posts
    Member since:
    Jun 2009

    Posted 09 Sep 2009 Link to this post

    I'm trying to utilize the sample Telerik projects and am having problems. In VS 2008 I go to File_Open Web Site and go to any of the projects that were installed under the VS Projects folder. I open Solution explorer and configure the site to be a Telerik site which seems to remove all but one error when I do a build. I always get an error "Could not load type 'xxx._Default" with xxx being in the Page line of the Default.aspx web page. 
    So if this is the header from my web page:

     

    <%

    @ Page Language="vb" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="WebApplication4._Default" %>
    I get "Could not load type 'WebApplication4._Default" as an error.

    What am I doing wrong?

     

  2. Answer
    Martin
    Admin
    Martin avatar
    811 posts

    Posted 11 Sep 2009 Link to this post

    Hello Alan,

    Since you are trying to open a website (and not an application) I would suggest you to correct the CodeBehind attribute of the page directive to CodeFile attribute like this:

    <%@ Page Language="vb" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="WebApplication4._Default" %> 


    I hope this helps.

    Regards,
    Martin
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. AkAlan
    AkAlan avatar
    121 posts
    Member since:
    Jun 2009

    Posted 11 Sep 2009 Link to this post

    Hi Martin, thanks for the response. I changed CodeBehind to CodeFile and it works. I don't quite understand why the examples are written like that  but as long as I can open them for now I'm good to go.
Back to Top