CSLA.Server.ServicedDataPortal.DataPortal can't access registry key on Windows domain network

CSLA.Server.ServicedDataPortal.DataPortal can't access registry key on Windows domain network

Old forum URL: forums.lhotka.net/forums/t/4634.aspx


fsjohn posted on Tuesday, April 08, 2008

Hi there,
my company is on a Windows domain network.
Logged in as DomainUsers account installing the application works fine but when I launch the application I get the error:

CSLA.DataPortal threw an exception.....
Failed to register CSLA.Server.ServicedDataPortal, Version=....
Access to registry 'HKEY_CLASSES_ROOT\CSLA.Server.ServicedDataPortal.DataPortal' denied.

I know I can avoid tha problem adding the account on the "PowerUser" group on the client machine but I would not give such privilege to the DominUsers group.

Can anyone help me?

thanks



JohnB replied on Tuesday, April 08, 2008

So you're storing the configuration information in the registry and not the app.config?

fsjohn replied on Tuesday, April 15, 2008

Hi JohnB,
thanks for replay.

What do you mean "storing the configuration information..." ?

I just deploied my application using ClickOnce and my app.config is quite simple, nothing seems to be set about ServicedDataPortal dll on the file.

I do not use windows registry at all on my application.

I get the error using CSLA 1.x version.
I developed a new application using CSLA 2.x and it works fine!

It seems to be something different to how CSLA 1 and CSLA 2 manage csla dll.
But I need to fix the problem on my old application based on CSLA 1

help...

JohnB replied on Tuesday, April 15, 2008

fsJohn,

I'm not really sure how to help you with that version of Csla. I was not aware you were using that version from your original post.

John

fsjohn replied on Thursday, April 17, 2008

I solved the problem:

Log in as administrator - install the application - run the application. (just to let write the registry entries)
Log in as user - install the application again (due to the different profile)- run the application.

It seems to work fine... so far

Copyright (c) Marimer LLC