RE: Need help from .NEt remote expert ??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • Re: Changing from App mode to Remote Admin mode via registry
    ... applications on the terminal server. ... Remote admin mode is simply activated by going ... Microsoft MVP - Terminal Server ... We'd like to do this because our application doesn't install right now in ...
    (microsoft.public.windows.terminal_services)
  • Re: Problems after SP2
    ... Can you connect to RWW and then remote to a client PC, or is this effecting clients and server? ... > install last time we tried it I think I'll just skip it and forge ahead ...
    (microsoft.public.windows.server.sbs)
  • SecurityFocus Microsoft Newsletter #152
    ... MICROSOFT VULNERABILITY SUMMARY ... Real Networks Helix Universal Server Remote Buffer Overflow ... ... NEW PRODUCTS FOR MICROSOFT PLATFORMS ...
    (Focus-Microsoft)
  • Re: X11 forwarding through SSH: Cant open display
    ... Do you have the xauth package installed on the remote server? ... the X server itself doesn't block the remote ports. ... I am using FreeBSD 6.2 and I have been trying to get X11 forwarding ... not have an X server install. ...
    (freebsd-questions)
  • Re: Run VB6 .exe on server from a remote machine on same network; db is SQL Server 2000
    ... If you have a connection by DSM you already have all the components needed, ... > Ours is the first scenario: Running the app (residing on a remote server) ... > When you say "might as well install the program at the ... > If "Yes" then I assume we can delete the app from the server. ...
    (microsoft.public.vb.general.discussion)