[Mono-devel-list] Trouble reloading DLLs with XSP!

Martin Honermeyer lists at strahlungsfrei.de
Thu Jun 17 14:51:28 EDT 2004


Hello,

I am using Maverick.NET, a .NET MVC-framework for web apps. This works great
with mod_mono. It utilizes it's own http-handler, like this (web.config):

<httpHandlers>
        <add verb="*" path="*.htm" type="Maverick.Dispatcher, Maverick" />
</httpHandlers>

I have controller code in dll's in the bin-directory. This means, every time
the controller code gets changed, I have to recompile the DLL and put it
into /bin.

After doing that, the next page reload looks like this:


Server error in '/mavnet' application



Description: Error processing request. 

Error Message: HTTP 500. 


Stack Trace: 


System.NullReferenceException: Object reference not set to an instance of an
object
in <0x000ec> System.MonoCustomAttrs:GetCustomAttributes
(System.Reflection.ICustomAttributeProvider,System.Type,bool)
in <0x00043> System.MonoType:GetCustomAttributes (System.Type,bool)
in <0x0002a>
System.Xml.Serialization.XmlReflectionImporter:ImportIncludedTypes
(System.Type,string)
in <0x003f0>
System.Xml.Serialization.XmlReflectionImporter:ImportClassMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string)
in <0x00105>
System.Xml.Serialization.XmlReflectionImporter:ImportTypeMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string)
in <0x000e1> System.Xml.Serialization.XmlSerializer:.ctor
(System.Type,System.Xml.Serialization.XmlAttributeOverrides,System.Type[],System.Xml.Serialization.XmlRootAttribute,string)
in <0x00021> System.Xml.Serialization.XmlSerializer:.ctor (System.Type)
in <0x001a4> Maverick.View.XmlSerializingView:Go
(Maverick.Flow.IViewContext)
in <0x00051> Maverick.Flow.ViewWithTransforms:Go
(Maverick.Flow.IViewContext)
in <0x000a9> Maverick.Flow.CommandBase:RunView
(string,Maverick.Flow.MaverickContext)
in <0x0003a> Maverick.Flow.CommandBase:Go (Maverick.Flow.MaverickContext)
in <0x00203> Maverick.Dispatcher:ProcessRequest (System.Web.HttpContext)
in <0x002e8> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)


I have to do
/etc/init.d/apache2 stop && killall mono && /etc/init.d/apache2 start
for the application to work again! 

I suppose this has something to do with DLL caching?



Greetings,
Martin






More information about the Mono-devel-list mailing list