473,326 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Delegate Failure after Migration to .NET 2.0 - Vista

Hello,

I am converting a C# .NET 1.1 based system to .NET 2.0. I am
encountering a socket exception with delegate events. The system uses
an NT service as a remoting host that provides services that desktop
applications consume.

Exception Message:
SocketException : No connection could be made because the target
machine actively refused it.

We are using the tcp remoting channel with the binary formatter. This
works in Vista with .NET 1.1, but not in 2.0 Vista, with UAC on or
off. No other code has been changed, I only migrated the project
files, and tried to run.

The events are fired from the remoting host (service) back to the
client (desktop) in another process.

Here is how I initialize the tcp channel in the client, (basically the
same as server):
************************************************** ****************
BinaryServerFormatterSinkProvider serverProv = new
BinaryServerFormatterSinkProvider();
serverProv.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilter Level.Full;

BinaryClientFormatterSinkProvider clientProv = new
BinaryClientFormatterSinkProvider();
IDictionary props = new Hashtable();
props["port"] = 0;
props["name"] = "ESF Channel";
props["machineName"] = "localhost";

ChannelServices.RegisterChannel(new TcpChannel(props, clientProv,
serverProv));

************************************************** ************

Are there any known issues with the tcp channel and delegates in .NET
2.0/Vista?
Could this be a CAS security related problem?

Any help will be greatly appreciated.

Thanks,
Victor Grippi

Jul 14 '07 #1
0 1274

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

Similar topics

0
by: Patrick Finnegan | last post by:
Running UDB V7 FP10a and 8.1 .4 on Windows 2000. Did full offline backups of three V7 databases. Restored two databases to V8 instance successfully. Third restore ended with: SQL2517W The...
6
by: Prince Kumar | last post by:
I am trying to run db2ckmig on my new db2 v8 ESE instance on AIX 5.2. My previous db2 version was V7.1. when I issue the db2ckmig for the db, I get the following error. % db2ckmig sample -l...
1
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
2
by: ChitraCK | last post by:
Hi All, I have a VC++ application its a bit big application having more than 10 ATL components. The application is client/server architecture with multi-threading. The server does the data...
0
by: ABC | last post by:
How to delegate IIS's FTP File Upload and Upload Failure Events from C#?
22
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I have an Assembly that has various usercontrols that all implemnet an Interface The Interface public interface ISettings { bool SaveSettings();
4
by: saikatbarman | last post by:
Dear All, Just want to ask a few questions: 1) Is IBM DB2 9.5 Express-C fully compatible with vista home premium. I am getting some errors after installation, using first step. Though its...
3
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, There is a fatal error while installing VS2008 SP1 on Vista 64bit Business edition. The last line of error log is Installation failed with error code: (0x80070643) I tried to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.