This is a migrated thread and some comments may be shown as answers.

How do I use the sample Telerik projects

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
AkAlan
Top achievements
Rank 2
AkAlan asked on 09 Sep 2009, 11:48 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 11 Sep 2009, 03:00 PM
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.
0
AkAlan
Top achievements
Rank 2
answered on 11 Sep 2009, 08:30 PM
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.
Tags
General Discussions
Asked by
AkAlan
Top achievements
Rank 2
Answers by
Martin
Telerik team
AkAlan
Top achievements
Rank 2
Share this question
or