Hello,
I'm running the CSLA 1.53 code base over .NET 2.0 on Vista.
When Project Tracker tries to write to the database, adding a new project or something, I get the following error:
Access to the registry key 'HKEY_CLASSES_ROOT\CSLA.Server.ServicedDataPortal.DataPortal' is denied.
I assume this is a Vista UAC issue, and that I need to grant administrative rights to Enterprise Services, or something along those lines. any suggestions greatly appreciated.
Thanks,
Bob
Well, after a little poking around I suspect my problem is that I forgot to register the serviced component in COM+ using regsvcs.exe. I don't have the book with me, so can't refer to Chapter 12 for a week or so. Can anyone refresh my memory with the regsvcs.exe command syntax? I have the component set up properly (I think). Hopefully just ned to register it. Thanks.
Best,
Bob
Go to the dir that has EnterpriseServicesHosts(cs or vb).dll and type
regsvcs EnterpriseServicesHosts(cs or vb).dll
use cs or vb depending on which one you've got.
Ryan
Thanks,
Actually found my notes from a year ago or so on my hard drive. I'm using the 1.53 code base and running it on Vista. Here's my command window:
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Bob>cd..
C:\Users>cd..
C:\>cd inetpub\wwwroot\Dataportalcs\bin
C:\inetpub\wwwroot\DataPortalcs\Bin>regsvcs CSLA.Server.ServicedDataPortal.dll
'regsvcs' is not recognized as an internal or external command,
operable program or batch file.
C:\inetpub\wwwroot\DataPortalcs\Bin>
Any idea why 'regsvcs' isn't recognized? Is it a different tool in Vista? I searched my hard drive for 'regsvcs.exe' and didn't come up with anything.
Best,
Bob
Is regsvcs.exe a .Net tool, in which case it sould be in C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin? I'm running the express editions. Don't have a full version of VS installed, but have the 2.0 Framework installed.
Best,
Bob
It should be there...make sure you are using the command prompt from the Visual Studio Tools Window rather than just the regular command prompt...that way your environment variables are set for you.
I'm wondering with the old portal if there won't be some issues with the UAC in Vista. If you get the DLL registered and have issues try disabling the UAC in Control Panels -> User Accounts...
Ryan
Thanks ryan,
Do you know if it installed with the Framework or with the full version of VS. I would assume it installed with the Framework?!? The only reason I can think it wouldn't be there is because I have the Express Editions of VS 2005 installed (I couldn't install VS 2003 on Vista, and I'll never forgive MS for that!)
Also, I don't think the VS command prompt window is available with the Express Editions unless I can launch it as a seperate tool by clicking an exe in the VS bin folder.
I posted to the MS Express Editions forum to get some more clarification on this stuff.
Thanks,
Bob
It installs with the framework and can be found here: C:\Windows\Microsoft.NET\Framework\v2.0.50727
Hope that helps
Got it! Thanks.
One of the coolest new features of Vista is its search functionality in Windows Explorer. Even searches files contents. No lie. However, if you want the search to include 'system files' (which I guess means anything in the Windows directory), ya' gotta click on the Advanced Search icon, and check the 'Include non-indexed, hidden, and system files (might be slow)' check box.
Thanks for the reply. Havn't been able to figure out yet if the Express Editions have the VS Command Window (don't appear to), but I can set add the the environment path variable and all should be well.
Thanks again,
Bob
Thought I'd mention that I got the serviced data portal registered OK, and no, Vista UAC doesn't appear to interfere with its functioning. I have UAC turned on and can do updates and deletes.
Bob
You're welcome and it's good to know the UAC doesn't stomp there.
Best of luck.
Ryan
Copyright (c) Marimer LLC