Timeout problems

Posts   
 
    
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 20-Apr-2005 17:39:06   

In self servicing, once in a great while a procedure of mine is crashing due to a busy server ASP.NET server.

Is there now a way to lengthen the connection timeout?

Thanks,

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 20-Apr-2005 17:59:37   

yes simple_smile

DbUtils.CommandTimeOut = numberofseconds

Frans Bouma | Lead developer LLBLGen Pro
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 21-Apr-2005 22:03:49   

Thanks on that. That's available in helper namespace I see.

I tried to use an Interface with 2 of your entityclasses that are almost identical except for some fields missing from one table.

One's history and the other is current test samples.

I wanted the same hlbl = highest level business layer simple_smile methods to handle the 2 cases.

I'm pretty sure I defined the Interface properly as I got no compile time errors.

On runtime it basically says that the entity I'm passing in is not one of those Interface things.

I solved the problem by just putting object instead of IRequestEntity in method signature, but wonder if you can tell me why this would not work.

TIA Terry

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Apr-2005 10:54:56   

How did you define the interface on the 2 entity classes? I think that's crucial, could you paste some code, please? simple_smile

Frans Bouma | Lead developer LLBLGen Pro