RE: Need help from .NEt remote expert ??
- From: cbm <cbm@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 3 Feb 2006 10:03:38 -0800
Hello Serge
I think this example is from the MS Press self-paced book chapter 5. I'm
also having trouble with it.
First, it didn't compile. I had to add a couple of "namespace XXXX {...}"
that were absent in the original code.
Second, I had another problem saying that it could not find the remote
object. I changed "GetType" to "typeof". And then RemoteAccessAgent started
correctly.
But now whenever I start the RemoteClient I get the following error in the
event log (this is where you should look for error messages):
"The following component is configured for Construction, and either the
IObjectConstruct:Construct() method failed , or the component does not
support IObjectConstruct."
Any one else having problems with this lab?
"serge calderara" wrote:
Dear all.
In order to understand remoting, I have found a sample which is based on :
A remote object named "BuisnessComponent" which collects data from an SQL
server database which is handle as a service component as follow:
=======>
<Transaction(TransactionOption.RequiresNew), _
ConstructionEnabled([Default]:="server=localhost;User=sa;Pwd=sa;
database=FLIGHT"), _
JustInTimeActivation(True)> _
<=======
Then I have a "Remote Access Component" which refer to "Buisnes Component"
which is host in a windows service. IN the OnStart routine of my service
following code is executed:
====>
ChannelServices.RegisterChannel(new TCPChanel)
RemotingConfiguration.ApplicationName = "Remote Flight System Access"
RemotingConfiguration.RegisterWellKnownServiceType(GetType(RemoteAccessComponents.FlightBookings), "RemoteDataAccessServer", WellKnownObjectMode.Singleton)
<====
If i try to runit locally , it fails
Then I try to run it really physically remote. for that I have install
the remote object library into my server GAG, then install the host service
and start the service on the Server. I can then see in my Server component
list my Buisness Component application
Then from my local PC , I simply start my Client.exe application but it fails
I guess it cannot acces or find the remote server
Where to check ?
Does the installation procedure I have made is correct ?
I could not get any straight forward, sample which is fully working.
The one I get is from MS press book, XML web service and server component
but still not working
Thnaks for your help
regards
serge
- Follow-Ups:
- RE: Need help from .NEt remote expert ??
- From: serge calderara
- RE: Need help from .NEt remote expert ??
- Prev by Date: "Microsoft Certification - It's how they know you know"
- Next by Date: Design Patterns
- Previous by thread: "Microsoft Certification - It's how they know you know"
- Next by thread: RE: Need help from .NEt remote expert ??
- Index(es):
Relevant Pages
|