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

7 posts, 0 answers
  1. Eric Moore
    Eric Moore avatar
    25 posts
    Member since:
    Mar 2010

    Posted 26 Aug 2010 Link to this post

    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
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 27 Aug 2010 Link to this post

    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
  3. Eric Moore
    Eric Moore avatar
    25 posts
    Member since:
    Mar 2010

    Posted 27 Aug 2010 Link to this post

    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?
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 27 Aug 2010 Link to this post

    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
  5. Eric Moore
    Eric Moore avatar
    25 posts
    Member since:
    Mar 2010

    Posted 27 Aug 2010 Link to this post

    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
  6. Eric Moore
    Eric Moore avatar
    25 posts
    Member since:
    Mar 2010

    Posted 03 Sep 2010 Link to this post

    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

     

  7. Eric Moore
    Eric Moore avatar
    25 posts
    Member since:
    Mar 2010

    Posted 03 Sep 2010 Link to this post

    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

Back to Top