Forum  General Visual ...  Install It!  LoaderExceptions
Previous   Previous
 
Next   Next
New Post  2/13/2009 11:42 AM
   Alexnaldo
288 posts
www.automato.org
4th Level Poster


LoaderExceptions  

Hi,


Does anyone know about this exception on deploy?


ALL Gizmox.* dll already in the "bin" folder.

 

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.]
   Gizmox.WebGUI.Server.Content.ProcessRequest(HttpContext objHttpContext) +1246

[HttpException (0x80004005): Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   Gizmox.WebGUI.Server.Content.ProcessRequest(HttpContext objHttpContext) +4265
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 
New Post  2/14/2009 6:24 AM
   palli
12382 posts
1st Level Poster




Re: LoaderExceptions  

Hi Alexnaldo,

No I haven't, but I did some digging and searching and what I came up with all leads to some kind of missing DLL or something like that. Could be that you do have some DLL on your dev machine, even in the GAC, that is not available at the server.

This might not be easy to spot, but I did find one article/thread on CodePlex that has a procedure for debugging this and get info about the "LoaderExceptions" mentioned it the error messgae. Take a look here and see if this might help you. It has some code at the end to put into Global.asax to debug.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: [email protected]
 
New Post  2/15/2009 12:09 PM
   Alexnaldo
288 posts
www.automato.org
4th Level Poster


Re: LoaderExceptions  
Modified By Alexnaldo on 2/15/2009 4:11:33 PM)

Thanks Palli.  Here is the code for  "global.asax" to found the problem.

 

<%@ Application Language="C#" %>
<%@ Import Namespace="System.Diagnostics" %>
<%@ Import Namespace="System.Reflection" %>

<script language="C#" runat="server">
void Application_Error(object sender, EventArgs e)
{


    // Before, set access to Network Service and the "event name"(MyEvents) must exists.
    // http://www.jameskovacs.com/blog/WritingToTheEventLogFromASPNETFailsWhenRunningOnWindowsServer2003SP1.aspx
   
   //get reference to the source of the exception chain
   Exception ex = Server.GetLastError().GetBaseException();

   ReflectionTypeLoadException excep = ex as ReflectionTypeLoadException;
   if (excep != null)
   {
       foreach (Exception exception in excep.LoaderExceptions)
       {

           EventLog.WriteEntry("MyEvents",
             "MESSAGE: " + exception.Message +
             "\nSOURCE: " + exception.Source +
             "\nFORM: " + Request.Form.ToString() +
             "\nQUERYSTRING: " + Request.QueryString.ToString() +
             "\nTARGETSITE: " + exception.TargetSite +
             "\nSTACKTRACE: " + exception.StackTrace,
             EventLogEntryType.Error);

       }
   }

}
</script>

 

 
New Post  2/19/2009 3:12 AM
   dror.shahak
302 posts
3rd Level Poster




Re: LoaderExceptions  

Hi Alexnaldo,

I am afraid I don't understand whether the problem was solved or not.

Please tell us whether you still need assistance on this.

Thanks,
Dror Shahak
The Visual WebGui Team


Dror Shahak, The Visual WebGui Team
 
Previous   Previous
 
Next   Next
  Forum  General Visual ...  Install It!  LoaderExceptions
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS