Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# El Gringo 6/11/2007 7:23 AM
Hello,

I did some load tests in VS. Although, I also tested some heavy weigthed modules, the only errors I ran into was this one.
500 An error occured:
There is a component already registered for the given key module.Cuyahoga.Modules.StaticHtml.StaticHtmlModule

Any ideas? I checked the registration of the StaticHtml module, but it seems ok.

Best regards

Ricardo

# martijnb 6/11/2007 11:37 AM
A patch was just committed to the SVN trunk that should make module loading more thread-safe. Are you building from source? In that case, you can try and replace /Web/Components/ModuleLoader.cs with the version from the trunk and see if that makes a difference.
# El Gringo 6/12/2007 6:43 AM
martijnbA patch was just committed to the SVN trunk that should make module loading more thread-safe. Are you building from source? In that case, you can try and replace /Web/Components/ModuleLoader.cs with the version from the trunk and see if that makes a difference.

Thanks alot,

I am using the 1.5 version and patched it with ModuleLoader.cs . It seems that this drastically improved the stability under high load. But I still get some "could not instantiate XXX". I will first chek if this is a problem of my custom modules.

Thank you

Ricardo
# El Gringo 6/13/2007 8:53 AM
Turned out that the way I added my domain classes was also one problem. Is there a elegant way to add your own NHibernated domain classes to the config? Using INHibernateModule won't do the job, as my domain classes are stored in a seperated dlls (including the hbml files).
Thanks

Ricardo
# El Gringo 6/14/2007 5:52 AM
Found it myself. Just add it to the facilities.config.