|
SearchForum Home |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|