I'm sick of the security feature
Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1184
Printed Date: 13-Mar-2025 at 2:02pm
Topic: I'm sick of the security feature
Posted By: monkeyking
Subject: I'm sick of the security feature
Date Posted: 01-Apr-2009 at 7:48pm
I have put the security feature into our application, but it always come with perplexing errors, for example, my first application got such error regarding to the DomainModelEntityManager.

from the error above, it doesn't make sense, because i initialized '_manager' in the beginning by the 'DomainModelEntityManager.DefaultManager', it shouldn't have such error.
i rewirte whole security feature second time, every thing are the same, but it comes out different error regarding to 'LoginManager.cs' reference.

this error should because the config file doesn't list proper assembly names as once DomainModelEntityManager.Login once being code, the program will look through the app.config file to go through the list of assembly names to find out 'LoginManager' class. BUT i do list the aseembly names PROPERLY
 you see, I put "Server" as assembly name in the end. this fold contains the login manager.

in that 'LoginManager.cs" file I declared 'LoginManager' class.
but once i rewrite the 3rd time of program, everyting runs properly which doesn't make sense to me.
so I decide to put security feature into our program, but once i did that, the second error comes out again, program couldn't find 'LoginManager' class which has been defined and properly listed in the app.config file. I really feel frustrated, because all the program are the same, but come out different errors and even runs once, which doesn't make sense to me.
|
Replies:
Posted By: monkeyking
Date Posted: 01-Apr-2009 at 7:54pm
i just post the content of LoginManager class to prove this class has
no problem. it inherit from 'IEntityLoginManager' interface and
implement the 'Login' method

|
Posted By: monkeyking
Date Posted: 01-Apr-2009 at 9:28pm
well, I have found the reason of second error. I must import 'Server' in the client side, otherwise it will have the error of 'Login Manager is required but failed to find one'.
I think 'Server' folder must be in the Server side only, it shouldn't be imported in the client side. but how can I run the program without any bug is i don't import is in the clientside?
|
Posted By: monkeyking
Date Posted: 02-Apr-2009 at 4:03pm
another bug, i can't understand why LoginCredential object doesn't work.

|
Posted By: monkeyking
Date Posted: 04-Apr-2009 at 12:03am
I have fixed this one, i must assign LoginClientCore instance, LoginCredential instance and DomainModelEntityManager instance in the server side. then this bug will disappear, it doesn't make sense to me, but it works.
|
|