Go Back   Velocity Reviews > Newsgroups > MCSD
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

MCSD - Need help from .NEt remote expert ??

 
Thread Tools Search this Thread
Old 02-02-2006, 08:05 AM   #1
Default Need help from .NEt remote expert ??


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



=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
  Reply With Quote
Old 02-03-2006, 06:03 PM   #2
=?Utf-8?B?Y2Jt?=
 
Posts: n/a
Default RE: Need help from .NEt remote expert ??
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
>



=?Utf-8?B?Y2Jt?=
  Reply With Quote
Old 02-10-2006, 09:33 AM   #3
=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
 
Posts: n/a
Default RE: Need help from .NEt remote expert ??
Yes you are right, it comes from thsi book.
And I am uinsg th VB syntax and I have to add also missing name space, and
gettype as you mention .. After this it compile and I am able to run the
server part and start the service correctly.

But as soon as I start the Client.exe which is suppose to get at a certain
stpep a reference to the server component, it fails with "Cannot get remote
server, internal error"

I will really appreciate that at least example provide in this book that are
suppose to teach at least have running samples. In all the remoting section
and Server compoenent of that books, none of labs provides are working.

If any specialist could help us to identify why then it will be a good
thing, and good practice also.

thnaks for your help
serge

"cbm" wrote:

> 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
> >



=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
  Reply With Quote
Old 08-12-2006, 11:29 AM   #4
haff
Junior Member
 
Join Date: Aug 2006
Posts: 1
Default Corrections.
Developing XML Web Service and Server Components with Visual Basic. NET and Visual Studio C#.NET
The Errors in Chapter 5 Lab. that I have found:

I got the same errors as descriped in the previous threads.

page. 290:
...
private void initialize()
{
connection = new SwlConnection(connectionstring);
DataAdapter = new SqlDataAdapter(select * from Flights",connectionstring);

page 292:
...
private void initialize()
{
connection = new SwlConnection(connectionstring);
DataAdapter = new SqlDataAdapter(select * from Bookings",connectionstring);

page 298:
...
RemotingConfiguration.RegisterWellKnownServiceType (typeof(FlightBookings), "RemoteDataAccessServer", WellKnownObjectMode.Singleton);


Then it worked.


haff
haff is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to activate Remote Assistance with XP using Windows Live Messenger Oziisr General Help Related Topics 0 02-01-2008 04:45 PM
Computer Security aldrich.chappel.com.use@gmail.com A+ Certification 0 11-27-2007 02:11 AM
RE: .NET 3.0 Certification / Exams Joel MCITP 1 03-28-2007 03:05 AM
Best universal remote? eganders@yahoo.com DVD Video 6 01-23-2006 12:05 AM
FS: JP1 cable to program your universial remote control, now youcan control anything you want! Mike DVD Video 0 07-15-2005 02:46 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46