Help for newbie

Help for newbie

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


dstarkey posted on Tuesday, June 13, 2006

Registration Exception when trying to get sample project tracker to run.  I have the project set up at C:\TSP\csla20\ProjectTracker20cs\EnterpriseServicesHostcs


virtual web PTWeb points to C:\TSP\csla20\ProjectTracker20cs\www\PTWeb

Error received on login.  Granted machinename\Aspnet full rights to csla20 folder but still same problem.

Any help is GREATLY APPRECIATED!!!

Do not know where to grant the rights, or to which account the error is referring to.  Please help a newbie! Error follows:

Exception Details: System.UnauthorizedAccessException: Access to the registry key 'HKEY_CLASSES_ROOT\EnterpriseServicesHost.EnterpriseServicesPortal' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

Line 11:       Csla.Server.Hosts.EnterpriseServicesPortal GetServerObject()
Line 12:     {
Line 13:       return new EnterpriseServicesPortal();
Line 14:     }
Line 15:   }

Source File: C:\TSP\csla20\ProjectTracker20cs\EnterpriseServicesHostcs\EnterpriseServicesProxy.cs    Line: 13

 

PaulS replied on Friday, September 08, 2006

what was the resolution for this? I have the same question.

dstarkey replied on Friday, September 08, 2006

Hi Paul, I think the problem stemmed from an improper web config file.  I commented out all references to EnterpriseServices, and used the local data portal as outlined in chapter 8 I believe.  This fixed the issues I was having.  Hope this helps.

 

Thank you,

 

 

Don Starkey

 

Senior Programmer

Synergy

 

180 N. Michigan Ave., Ste. 1100

Chicago, IL 60601

Phone: (312) 899-1024

Toll Free: 1-800-432-1026

Fax: (312) 977-1026


From: PaulS [mailto:cslanet@lhotka.net]
Sent: Friday, September 08, 2006 7:09 AM
To: Don Starkey
Subject: Re: [CSLA .NET] Help for newbie

 

what was the resolution for this? I have the same question.

lixingjian1984 replied on Wednesday, July 09, 2008

me too ??????!!!!!!!!!!!!!!!!!!!!

RockfordLhotka replied on Friday, September 08, 2006

It sounds like you forgot to run regsvcs.exe to put the enterprise services host assembly into COM+. ASP.NET tried, but of course can't, because it doesn't have permissions to alter the registry.

You can get install directions for ProjectTracker from www.lhotka.net/cslanet/download.aspx, and that may help.

jspurlin replied on Tuesday, September 12, 2006

Rocky may I ask for a command line example of the syntax for registering the EnterpriseServices? This is a new technique for me, and I do not know if there are any command line flags I need to be aware of.

Also, do I just register it once and then add it from the References tab where I find the other system dll's?

Thank you.

RockfordLhotka replied on Tuesday, September 12, 2006

The exact command you need is in Chapter 12, where I walk through the process of creating and configuring the enterprise services data portal channel.

DavidDilworth replied on Thursday, January 11, 2007

I know this answer is a little late, but someone else might find it useful.

This problem is caused by not registering the appropriate EnterpriseServicesHostxx.Dll, where the xx is either cs or vb depending on your language choice.

See step 7 in the installation guide notes from Rocky.  Follow the instructions and the problem is resolved.

Copyright (c) Marimer LLC