473,782 Members | 2,498 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.Net Remoting - Did something change from '2003 to '2005?

I've been using Remoting in VB 2003 app's for a while now.

Over the last couple of days, I've been playing around, trying to use
Remoting to talk to a '2005 Windows Service.

If I set up the client with a configuration file ...

<configuratio n>
<system.runtime .remoting>
<application>
<client>
<wellknown
type="[-class-name-], [-assembly-name-]"
url="tcp://localhost:[-port-]/[-uri-]"
/>
</client>
<channels>
<channel ref="tcp" port="0"/>
</channels>
</application>
</system.runtime. remoting>
</configuration>

.... everything works as expected; Remoted objects are loaded and run.

So why am I complaining?

Under VB '2003, I /didn't/ need to have any of this; I just added - in
code ...

Dim sURI As String _
= "tcp://localhost:[-port-]/[-uri-]"
Dim oPlugin As Plugin _
= DirectCast( RemotingService s.Connect( _
GetType(Plugin) _
, sURI _
))
Dim sRequest As String = ...
Dim sResult As String _
= oPlugin.Execute (sRequest)

If I try the above code (that /used/ to work; I have it in loads of
client applications), I get a connection to the service (if I kill the
service, I get the "connection forcibly closed" exception in the client)
but the remoted objects never get loaded or executed.

Any ideas?

TIA,
Phill W.
Aug 2 '07 #1
0 1071

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3292
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
3
2275
by: Sunny | last post by:
Hi all, I'm creating client/server app in C# (VS. 2003). So, I need the client to call the server with some auth info (user and pass). If the auth is OK, server will do some work and will prepare a zip-file and some other text and numeric data and will notify the client that everything is ready. And the client will fetch the data. So if it was all console/desktop application, I know what to do (in
0
805
by: Ron L | last post by:
We are in the process of upgrading our application from Visual Studio 2003 to 2005, and we have run into a problem with the server component of our remoting application. Apparently there is a change in the way the web portion is handled in 2005, and instead of appearing as a project named "ServerModel", it has changed it to a url corresponding to the url that the ServerModel was at and moved the source code into an App_code directory....
11
4148
by: kiln | last post by:
I am starting a project that may be suitable for vb.net, using windows forms. I want a rich client, thus win forms vs web forms. Most users will access the app data over a LAN, but some will be remote users, accessing via vpn. I could use terminal services for this but am thinking that an alternate technology like remoting or web servies could be viable. - Rich client - N-Tier - LAN & Internet clients (via VPN)
0
924
by: m.posseth | last post by:
Hello All , I encounter the following strange situation ,,, I have developed a remoting component , this functions fine ,,, however a customer wanted to have the ability to access this component directly through COM so i made the necessary changes and it works fine with COM in VB6 ,,,,,,, however now we have the situation that a third party wants to create a wrapper to this component ( to translate XML to classic adodb
0
755
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. The same code works fine in a standalone app. I have inspected System.Runtime.Remoting.dll with ildasm, and I can see the ....Channels.Http namespace there. I verified that the virtual directory is configured to use v2.0.50727 (the error message...
1
1068
by: ThunderMusic | last post by:
Hi, I have a web project in VS 2005 and I'm using a wrapper to work with a COM object. this object must work in a remoting environment. So we've done a simple console app to give us the access to the remote object. In our test web app, everything works fine... if we copy paste all the code from the test app to the real app so we can have exactly the same thing in each one, the real application raise an exception on the first call I do...
5
1847
by: Nick | last post by:
Hi there, Can anyone tell me what RTD is? And can it be used for simple interprocess communication? I am just interested in sending strings to a previous instance. I am currently using .NET Remoting via the "Windows Application Framework", but unfortunately McAfee's crappy firewall is capable of blocking the internal connection and causing any application that utilises it to crash, it doesn't even raise an unhandled exception via the
6
3183
by: Mike9900 | last post by:
How can I connect my .NET app which use remoting to communicate over internet, 2 instance of the same app? My app is already done using .NET Remoting. I am wondering if to change them to WCF or just I can make them communicate over the internet. -- Mike
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.