Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
329 views
Hi,

I am getting this error about 75% of the time when running my project in VS 2010.  This seems to be since upgrading to version 2010.2.929.40.  This is now getting in the way of speedy development and debugging.

The full error is:

[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +4
   System.Reflection.Assembly.GetTypes() +78
   System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +32
   System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +25
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +160
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +166
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +316
   System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +53
   System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +93
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +130
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +585
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +76
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1256
   Telerik.Web.UI.RadComboBox.PerformSelect() +37
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadComboBox.DataBind() +70
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
   Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +36
   Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +46
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

This could be an Entity Framework error, but seems to have started happening around the time of the upgrade.  Can you confirm for me whether it is EF or the RadComboBox?

Thanks.

Dan
Top achievements
Rank 1
 answered on 02 Mar 2011
2 answers
281 views
I am using Entity Framework 4.0 + EntityDataSource + RadGrid on my pages and I got
Server Error in '/' Application.
--------------------------------------------------------------------------------
  
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
  
Source Error: 
  
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
  
Stack Trace: 
  
  
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +4
   System.Reflection.Assembly.GetTypes() +78
   System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +75
   System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +42
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +233
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +162
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +648
   System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +78
   System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +119
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +124
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) +39
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +1109
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +164
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +96
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +212
   Telerik.Web.UI.GridTableView.PerformSelect() +38
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +127
   Telerik.Web.UI.GridTableView.DataBind() +364
   Telerik.Web.UI.RadGrid.DataBind() +173
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +108
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +130
   System.Web.UI.Control.EnsureChildControls() +162
   Telerik.Web.UI.GridBaseDataList.get_Controls() +33
   Telerik.Web.UI.RadAjaxControl.PopulatePlainPanels(Control parent, List`1 list, Control root) +119
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1808
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +124
   System.Web.UI.Control.PreRenderRecursiveInternal() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4771
    
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

I spend a lot of time on google and I found this issue happens same time and no solution for that. But pages where I do not use EntityDataSource work fine. What is an alternative for EntityDataSource if I need to edit data in RadGrid?
Dan
Top achievements
Rank 1
 answered on 02 Mar 2011
9 answers
469 views
Hi,
I am using Rad Scheduler for booking a conference room. I have a scenario where user can book conference room for others as well. Now my question is

1. Does Telerik enables us to add control in the Appointment Insert form like a dropdown list to ask user wether he wants to get the room booked for him self or some one other ??
2. Except for Subject I would like to add some more details of the booking that are kept in separate columns in the Data Table such as Meeting Room Booked By, Booked For etc. Is it possible ??
3. The requests sent by users are then sent to the approver to approve, Deny, Or cancel requests. Is there any way to handle these administrative tasks using Scheduler UI ??


Awaiting responses.

Best Regards
Hammad Haneef Pasha



Peter
Telerik team
 answered on 02 Mar 2011
5 answers
227 views
Hi,

I need to control field values before a record is inserted or updated from a Radgrid using an EntityDataSource.

I want to do something as simple as setting the value of one field based on the value of another, and expected to see Radgrid events for OnInserting and OnUpdating (where logic could be used before the transaction is committed). With the traditional ASP GridView, this could be done on the OnUpdating event.

Thanks,
Dan
Dan
Top achievements
Rank 1
 answered on 02 Mar 2011
1 answer
96 views
Hi Experts, 

I have Rad-Scheduler component on my aspx page, i wrote the code for insert appointment and it is working fine for me. It saves the appointment into database and displays on rad-scheduler. However when I try to edit any appointment I am not getting updated values. Here is my code....

protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
string upd = e.ModifiedAppointment.Subject;
string org = e.Appointment.Subject;
}

Above both the case I am getting similar values.
Can any one tell me how to fix that.

Further more I am unable to select multiple timeslots from my mouse in rad-scheduler.

Thanks,
Mohsin
Veronica
Telerik team
 answered on 02 Mar 2011
1 answer
146 views
Hi team,
I do all the steps described in your site to create custom commands in the editor and it worked successfully, I create the editor in a user control and add this control to my page , its ok great .

I do the following scenario

  1. Add the editor in user control (say  UCtrl ) with the new custom button.
  2. Add two instance of the user control (Say UCtrl1,UCtrl2 ) in the same page.
  3. unfortunately when I click the custom command button in the editor in the first instance( UCtrl1 ) , the execution of the comand occurs in the second instance (UCtrl2)

 

Breifly the command executed in the last instance of control added to the page.

Is there any solution for this issues??

Tools and Technologies

ajax control for asp.net  version 9 Q3.
IE as web browser
windows 7 as an operating system
microsoft asp.net 3.5
sql server 2005 database
Dobromir
Telerik team
 answered on 02 Mar 2011
2 answers
144 views
I have implemented the GridSettingsPersister class to save the state of my grids and i am still having issues with column widths.

The grid will re size itself to fit the default content - even when I adjust the grid and set the columns wider than the page allows.

If i use a fixed table - rows at the end seems to cut off.
If I use scrolling it works only if the content does not have to scroll vertically.

Is there some way just to turn off the self adjustments the grid makes and draw the columns at the widths being saved ???

It has to be a simple setting i am missing.
Pavlina
Telerik team
 answered on 02 Mar 2011
2 answers
152 views
Hello,

Is there a way I can set the currently selected date without the ValueChanged event firing?  Other than using a JavaScript variable?

Thanks.
Maria Ilieva
Telerik team
 answered on 02 Mar 2011
3 answers
267 views
Hello,

I come back to some of my code from 2009 and found that the RadStyleSheetManager is placed in the header section.
What was the advantage of this and is it still recommended for asp.net 4.0 ?

I recently found that my web application compiled with .net 3.5 but with .net 4 installed on the production server and with a Telerik version from 12/2010 is generating very large Viewstates and long load time.

I am porting it to ASP.Net 4 and checking every detail concerning compression and scripts combining.

Best regards
CS
Peter
Telerik team
 answered on 02 Mar 2011
1 answer
128 views
I put a radcombobox in a radwindow. the radwindow have difined a Opacity="93" property.
Wenn I click to the radcombobox to view the list items thy are not shown.
I find this article where the same behavior is discribed and shown:
http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-dropdown-invisible-in-radwindow.aspx
I drop the opycity property from the radwindow defination and i can see the list entries.
do you have a solution to use the opycity property and to fix the problem?
thanks
thomas
Svetlina Anati
Telerik team
 answered on 02 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?