I tried using "Enterpriseservicehost" for testing the PTWeb application. I have registered the "EnterpriseServicesHostcs" component as well in COM+.
The application is expecting the COM+ runtime to look for configuration details in the application.config file.
At runtime the COM+ runtime looks for "C:\WINNT\system32\dllhost.exe.config" for configuration details.
Because of that we are getting runtime errors. Any workaround for this.
Appreciate any quick help.
-DON.
I'm using WIN2K server as development and deployment machine. In that case the procedure we are following is not useful right. Pls correct me If I'm wrong.
-DON.
From: don012001 [mailto:cslanet@lhotka.net]
Sent: Wednesday, October 18, 2006 1:30 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Using EnterpriseServiceHostI'm using WIN2K server as development and deployment machine. In that case the procedure we are following is not useful right. Pls correct me If I'm wrong.
-DON.
Rocky,
We can make our code work with Enterprise Services (COM+) in 2 ways.
1. having a file dllhost.exe.config created and place it under <windows Folder>\System32, and place the config details in this file.
2. Change the class definition of
public class EnterpriseServicesPortal : Csla.Server.Hosts.EnterpriseServicesPortal
{
// no code needed - implementation is in the base class
}
to
public class EnterpriseServicesPortal : Csla.Server.Hosts.EnterpriseServicesPortal
{
public EnterpriseServicesPortal() : base()
{
AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", <path>\app.config");
}
// no code needed - implementation is in the base class
}
This is working fine with me.
-DON.
Copyright (c) Marimer LLC