Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# gedw99 12/5/2007 8:47 PM
Hey in the CommonDAO i am getting "Duplicate type name within an assembly. ".

i think i must be not loadin the assemblies correctly in some way.
Can someone help me out here as to where the issue is.

i always get this after i have rebuilt a Module project and the post build event copies it down to the "Web" folder.

ged
# martijnb 12/6/2007 9:51 AM
Usually, this happens when you have two domain classes in different modules with the same name (can be in different namespaces).

Could you check if that is the case here? Especially a class like 'Category' is often the problem.
You can work around it by adding auto-import="false" in the class declaration of the mapping file, but you also have to use the full name in hql queries (select c from MyNamespace.MyClass c).
# gedw99 12/9/2007 8:34 PM
Thats what i thought, but i only have one module installed. StaticHTML.

I have done alot of custom work and i remember there is a kind of hack technique for loading the NHib mapping or then redirecting or something.
Do you know what i mean?

Mayeb i missed it in the customisation i did to allow unit testing and web services.

G