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

'Owner' is not a member of 'Appointment'

6 Answers 76 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 17 Apr 2009, 09:28 PM
I'm having trouble using the AdvancedForm.ascx file in our website.  Is there a correct way to copy over and build the file?  I was going through the "Customize the Advanced Template" tutorial and it said something about using "Convert to Web Application".  But that selection does not appear for me.  (BTW, what does that do?)

So I'm getting the above error whenever I try to build our website and the blue squiggly line under Owner in the code file.  (It's under all the Appointment members, Owner just happens to be the one generating the error)

Any direction would be greatly appreciated! Thanks

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 Apr 2009, 11:51 AM
Hello Matt,

There is a sample project of this example here:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/sample-project-of-the-customizing-the-advanced-template-example.aspx

Probably, downloading it and using it as a starting point will help you get the problem sorted out.


All the best,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matt
Top achievements
Rank 1
answered on 20 Apr 2009, 12:45 PM
I'll play with that tutorial, but I'm not sure that will help.  The sample in the Live Demos folder works fine.  It's just when I try to utilize the AdvancedForm.ascx page in my custom app that I'm getting the errors.  I copied all the files from the /Scheduler/Examples/AdvancedFormTemplate/DefaultTemplates/VB folder to my custom app.  Am I missing a definition/class file or something that also needs to be copied over?
0
Peter
Telerik team
answered on 20 Apr 2009, 01:56 PM
Hello Matt,

The AdvancedForm user control references other user controls:
<%@ Register TagPrefix="scheduler" TagName="SchedulerDefaultForm" Src="SchedulerDefaultForm.ascx" %>   
<%@ Register TagPrefix="scheduler" TagName="CustomAttributeControl" Src="CustomAttributeControl.ascx" %>   
<%@ Register TagPrefix="scheduler" TagName="ResourceControl" Src="ResourceControl.ascx" %>   
<%@ Register TagPrefix="scheduler" TagName="MultipleValuesResourceControl" Src="MultipleValuesResourceControl.ascx" %> 
 
So, it cannot be used independently just by itself. Can you make sure you have inluded the other user conrols as well?

Best wishes,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matt
Top achievements
Rank 1
answered on 20 Apr 2009, 02:56 PM
Thanks for all the input.  So the AdvancedForm.ascx should be registered on my custom app and the other control pages should be registered on the AdvancedForm?  Or do all those pages need to be registered on my custom app page?

I still think I'm missing something else that needs to be included or registered.  I'm sure I'm missing something simple.  It's still giving me errors like:
'Owner' is not a member of 'Appointment' (MultipleValuesResourceControl.ascx.vb, line 46)
'Resources' is not a member of 'Appointment' (MultipleValuesResourceControl.ascx.vb, line 115)
Value of type 'Telerik.Web.UI.Appointment' cannot be converted to 'Appointment'  (ResourceControl.ascx.vb, line 18)
....
So on and so on...

It's like the dll isn't registered, but it is because things work when I'm not working with any of the schedule templates.
0
Accepted
Atanas Korchev
Telerik team
answered on 20 Apr 2009, 03:12 PM
Hi Matt,

It seems there is some type called Appointment and the compiler cannot distinguish between that type and Telerik.Web.UI.Appointment. Make sure this is not the case. If it is simply use the fully qualified name "Telerik.Web.UI.Appointment" where needed.

Regards
,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matt
Top achievements
Rank 1
answered on 21 Apr 2009, 06:03 PM
The Linq to SQL DataContext named my Appointments table - Appointment within the context.  I changed that to Appointments and everything works great.  Thanks for walking me through that one.  I knew it was going to be something small and stupid.
Tags
Scheduler
Asked by
Matt
Top achievements
Rank 1
Answers by
Peter
Telerik team
Matt
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or