Conflicting namespace in support classes!

Posts   
 
    
cfwettermark avatar
Posts: 7
Joined: 04-May-2005
# Posted on: 07-Jun-2005 19:39:02   

Hi,

I have a problem that I BADLY need some help with to resolve. In our solution, we use a content management tool called EPiServer, the compiled assemblies of which references an undocumented type called 'SD'.

Needless to say, this is causing me some headaches, as the project refuses to compile due to a conflict between the Solutions Design namespace and the mystery type. I realize that this can be resolved by recompiling the support classes and the DQE for SQL Server, but, frankly though, I'm too stupid to do that, having tried and failed miserably this entire afternoon.

So, if anyone has pity with me and would consider compiling a .NET 1.1 version without the "SD" in the namespace, or just about any other namespace you feel like (and send to figgewettermark at yahoo dot com), I would ow you big time. However, I would equally appreciate any instructions as to how to proceed in getting rid of the "SD"...

Best wishes, y'all

CFW, Stockholm

jtgooding
User
Posts: 126
Joined: 26-Apr-2004
# Posted on: 07-Jun-2005 19:57:57   

Most namespace conflicts can be resolved with aliasing a namespace.

i.e.

 using AliasName = System.Collections
AliasName.ArrayList MyList = new AlaisName.ArrayList();

That or changing your using statements around, i.e. you shouldn't define:

 using SD;

you should define your namespaces more explictly:

using SD.LLBLGen.Pro.DQE;
using SD.LLBLGen.Pro.ORMSupportClasses;

Hope that helps, without seeing the actual declared namespaces and the line of code that is ambigous it's difficult giving a specific answer.

John

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 07-Jun-2005 20:15:43   

I don't understand how internally in an assembly you can get a conflict with a type called 'SD'.

Or do you get teh conflict in your OWN code? In that case, use the full path to that SD type, instead of just 'SD'. Could you paste some code which fails to compile (i.e. causes the compiler to throw an error) ?

Frans Bouma | Lead developer LLBLGen Pro
Anders
User
Posts: 1
Joined: 22-Feb-2006
# Posted on: 22-Feb-2006 15:45:48   

The Scheduler in Episerver declare a class named SD, that is not in a namespace. If you use the Episerver scheduler, which you normally do in an epi project, you can not use LLBLGEn, or even reference a project that uses LLBLGen. I don't know how to solve the problem.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 22-Feb-2006 18:48:21   

In c# you can define a using statement which renames a type. Could you paste a piece of offending code which doesn't compile because of this SD type?

Frans Bouma | Lead developer LLBLGen Pro
MoonerX
User
Posts: 6
Joined: 03-Mar-2008
# Posted on: 04-Mar-2008 19:18:49   

So I guess there is no answer... to bad... I can't replace EPiServer, I'm gonna have to use another O/R mapper rage

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 04-Mar-2008 19:25:12   

MoonerX wrote:

So I guess there is no answer... to bad... I can't replace EPiServer, I'm gonna have to use another O/R mapper rage

Have you tried the 'using' statement?

It's really an odd issue... do you get the compile error on a lot of places or just on a couple of places? (I think we can better continue in the other thread you've started). Also have you contacted the EpiServer people so they should place their 'SD' type in a namespace? (so everything is solved) ?

Frans Bouma | Lead developer LLBLGen Pro