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

Type is not defined - MainPage.g.i.vb

6 Answers 258 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eric Moore
Top achievements
Rank 1
Eric Moore asked on 26 Aug 2010, 07:14 PM
I am currently getting errors stemming from MainPage.g.i.vb stating that
Type 'Telerik.Windows.Controls.RadTreeView' is not defined
Type 'Telerik.Windows.Controls.RadScheduler' is not defined

It's an auto generated file, so any changes I make get reverted right away. I tried deleting the file in question, but that just creates other errors. What file generates that file? Thanks!

Eric

6 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Aug 2010, 07:14 AM
Hi Eric Moore,

Indeed it is a auto generated file and basically you are not supposed to make any changes on it. What you may try is to Clean your project and then Rebuild it.
I hope that helps.
 

Regards,
Maya
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
0
Eric Moore
Top achievements
Rank 1
answered on 27 Aug 2010, 03:23 PM
Thanks for the reply. I tried the clean and rebuild with no luck. Where does that file get it's references from? Can I look at the master file to see if it's missing something that's causing the generated file to error?
0
Maya
Telerik team
answered on 27 Aug 2010, 03:45 PM
Hi Eric Moore,

Another possible cause of that problem may be a result of mingling different versions of Silverlight. Thus you may take a look at all your project and check their references so that to be sure they are all the same. Then again Clean & Rebuild your application.


Greetings,
Maya
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
0
Eric Moore
Top achievements
Rank 1
answered on 27 Aug 2010, 07:18 PM
I'll bet you that's it. I was working on a test project and using one of your samples as a starting block. I'll bet you part of it's done with SL3 and part with SL4. Thank you very much! That was a great answer!

Eric
0
Eric Moore
Top achievements
Rank 1
answered on 03 Sep 2010, 09:53 PM
I've rebuilt a new solution and I hit the same wall. The problem seems to be when I create a custom context class and access the function below

Imports

 

 

System

 

Imports

 

 

System.Collections.Generic

 

Imports

 

 

System.ComponentModel

 

Imports

 

 

System.ComponentModel.DataAnnotations

 

Imports

 

 

System.Data

 

Imports

 

 

System.Linq

 

Imports

 

 

System.ServiceModel.DomainServices.Hosting

 

Imports

 

 

System.ServiceModel.DomainServices.Server

 

Imports

 

 

Telerik.OpenAccess

 

 

 

Namespace

 

 

EIW_Suite.Web

 

 

 

Partial Public Class ShopMaintenanceContext

 

 

 

Inherits OpenAccessDomainService(Of ShopMaintenanceEntityDiagrams)

 

 

 

Public Function GetmyDistinctEquipments() As IQueryable(Of myEquipment)

 

 

 

Dim Query = From c In Me.DataContext.myEquipments

 

 

 

Select c.Name.Distinct

 

 

 

Return Query

 

 

 

End Function

 

 

 

End Class

 

End

 

 

Namespace

 

0
Eric Moore
Top achievements
Rank 1
answered on 03 Sep 2010, 09:55 PM
The change I should mention from the last error is now the errors are found in EIW_Suite.Web.g.vb. I'm sure the following warning sums it up, I'm just not sure how to fix it.

Warning 1 Failed to load types from assembly 'Telerik.OpenAccess.40.Extensions, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' so the assembly will be ignored.
Could not load file or assembly 'Microsoft.Data.Services, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. EIW_Suite

Happily while writing this I got my solution.

The ADO.Net Data Services 1.5 CTP 2 runtime needs to be installed as well as a patch.

The runtime can be found at: http://www.microsoft.com/downloads/details.aspx?FamilyID=a71060eb-454e-4475-81a6-e9552b1034fc&displaylang=en#filelist

The patch is available at:
http://www.microsoft.com/downloads/details.aspx?familyid=79d7f6f8-d6e9-4b8c-8640-17f89452148e&displaylang=en#filelist

Tags
General Discussions
Asked by
Eric Moore
Top achievements
Rank 1
Answers by
Maya
Telerik team
Eric Moore
Top achievements
Rank 1
Share this question
or