[Mono-aspnet-list] Getting error: Could not load type 'Users.UserHandler' from assembly 'userhandlerlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

don rhummy donrhummy at yahoo.com
Mon Jan 28 04:21:30 UTC 2013


I discovered the problem but am not sure why it occurs (can someone please tell me what I'm misunderstanding?):

I had created two DLLs.

1. Contained Users.UserHandler
2. Contained a class that inherited from Users.UserHandler

When I deleted the second DLL, suddenly the aspx page (that only used the first DLL) started working! Why is this? I'm compiling my DLLs via the command line, so what setting do I need to make this work?

Thanks!


________________________________
 From: don rhummy <donrhummy at yahoo.com>
To: "mono-aspnet-list at lists.ximian.com" <mono-aspnet-list at lists.ximian.com> 
Sent: Sunday, January 27, 2013 10:43 PM
Subject: [Mono-aspnet-list] Getting error: Could not load type 'Users.UserHandler' from assembly 'userhandlerlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
 

I have a DLL that has a public class in it called "Users.UserHandler". It's in the "bin" folder of the ASP.Net base. It's been working perfectly. And I haven't changed it at all. I created a new aspx page and tried to create an object of that class but it suddenly started throwing the error:

[CODE]
Could not load type 'Users.UserHandler' from assembly 'userhandlerlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Description: HTTP 500. Error processing request.

Stack Trace:

System.TypeLoadException: Could not load type 'Users.UserHandler' from assembly 'userhandlerlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
  at ASP.test_aspx.Page_Load (System.Object sender, System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.LoadRecursive () [0x00000] 
  at System.Web.UI.Page.ProcessLoad () [0x00000] 
  at System.Web.UI.Page.ProcessPostData () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] 
[/CODE]

Restarting Apache isn't fixing the problem and neither is recompiling the DLL!

What could cause this? How do I diagnose/fix it?
_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130127/232f75c0/attachment.html>


More information about the Mono-aspnet-list mailing list