![]() |
|
|
|||||||
![]() |
MCSD - Need help from .NEt remote expert ?? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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?= |
|
|
|
|
#2 |
|
Posts: n/a
|
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?= |
|
|
|
#3 |
|
Posts: n/a
|
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?= |
|
|
|
#4 |
|
Junior Member
Join Date: Aug 2006
Posts: 1
|
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 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |