[Mono-list] Reloading controller dll's?

Martin Honermeyer lists@strahlungsfrei.de
Tue, 15 Jun 2004 11:55:05 +0200


Hello,

I am forwarding this to the mono list as this seems to be a mod_mono bug /
missing feature! Can anyone comment?


Thanks,
Martin


Scott Hernandez wrote:

> Martin,
> 
> This sounds like a an error in mod_mono. In IIS (ASP.Net Processor) all
> assemblies are shadowcached (the real binaries are copied to a cached dir)
> then you can replace the files without any problem. The shadow cache then
> checks for new assemblies periodically, and when they are found, reloads
> the application (most likely the web appdomain). If mod_mono does not do
> this, then what you see is probably what you get.
> 
> I would suggest following up with the mono/mod_mono team.
> 
> ----- Original Message -----
> From: "Martin Honermeyer" <lists@strahlungsfrei.de>
> To: <mavnet-user@lists.sourceforge.net>
> Sent: Monday, June 14, 2004 4:13 PM
> Subject: [Mavnet-user] Reloading controller dll's?
> 
> 
>> Hello,
>>
>> I am using Maverick.NET with mono (mod_mono-0.10) under Linux. It works
>> really good. There is one problem though. I don't know if it is related
>> to the mono implementation, or if this is the same with IIS under
>> Windows.
>>
>> After changing the controller classes, I put the new compiled DLL into
>> the Bin sub-directory. Now, the next reload of a page causes an error
>> like this:
>>
>>
>> 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[],Sy
> stem.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 restart the (Apache) webserver in order to get the site to work
>> again! Can someone help? I will ask the mono list otherwise..
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND