.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

TypeLoadException w/ ASP.NET

Posted By:      Posted Date: August 24, 2010    Points: 0   Category :ASP.Net
 

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

 

I get this error 9 out of 10 times that I launch my application in the VS2010 debugger (using the development web server).  It only happens on pages with EntityDataSources in them.  Sometimes I can clean and rebuild and get the error to go away, but it isn't consistent.  Does anyone have any ideas?


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 c


View Complete Post


More Related Resource Links

TypeLoadException for DropShadowEffect on .net4.0 when .net3.5sp1 not installed

  
Hi, I've been starting to get a TypeLoadExceptions on some clients: Could not load type 'System.Windows.Media.Effects.DropShadowEffect' from assembly 'PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The problem is repeatable on systems where .NET4.0 is installed but .NET3.5sp1 isn't. Looking at the GAC on a system with only 3.0 and 4.0 installed, PresentationCore exists and is at version 3.0.0.0. Am I missing something or is the DropShadowEffect missing from the 4.0 installation? Please help me solve this! Sincerely Andreas

System.TypeLoadException: Could not load type 'Microsoft.Office.Server.Security.LdapMembershipProvi

  
So this is odd, I am attempting to setup FBA with Sharepoint Foundation 2010 and i get the following Error: (from ULS log viewer): System.TypeLoadException: Could not load type 'Microsoft.Office.Server.Security.LdapMembershipProvider' from assembly 'Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) and in IIS Logs: Exception information:     Exception type: ConfigurationErrorsException     Exception message: Could not load type 'Microsoft.Off

System.TypeLoadException: Could not load type 'Microsoft.SqlServer.Management.Smo.Agent.JobBaseColl

  

Hi All,

I am getting the following error while trying to invoke a DB JOB from my application code.

System.TypeLoadException: Could not load type 'Microsoft.SqlServer.Management.Smo.Agent.JobBaseCollection' from assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91

I have installed my code in application server and the DB where the sql jobs are installed is in another server. (Different physical servers).

When I analysed, I could see that the Application server has Microsoft.SqlServer.Smo version 9.0.242.0 in its GAC. The DB server has got both 9.0.242.0 and 10.0.0.0 versions of the same DLL in its GAC.

I wonder whether this can cause the issue.

Any help is appreciated.

With regards,

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend