microsoft.public.dotnet.framework.remoting Archive - February 2003
Post a message to this list
Messages
Page: 123
Here is a tough one! - C# Form Hangs when Remoting delegate fired (2 replies)
microsoft.public.dotnet.framework.remoting
Alright here is the scenario: Client C# Windows For Applicaiton that implements a delegate. This delegate cannot be ASYNC since it requires a response from the client. Server Hold a reference to the delegate and calls back Syncronously, and awaits the client's response. Easy? Well it should be I would think..here is the issue: When the function is run, it pops up a form in Dialog mode, AND this fo...
VB6 client and .Net Remote Server (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, i have the following problem but can't find the correct starting point. I have a .net class on a server which should be started as singleton and kept running. The problem is the client. I have a VB6 client which should be able to access the server method via a simple HTTP GET (this would be best) or an HTTP POST. E.g I want to use the MSXML.XMLHTTPRequest object. I don't want to have the requi...
Creating objects on different servers (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I would greatly appreciate any tips and advice on which objects and object members to use when creating instances of custom objects on different servers. I.e. how do I use .NET to achieve the equivalent of VB6 CreateObject("ClassLib.MyClass","Server1")? Regards, kk
HELP! Serializable attribute vs. ISerializable (3 replies)
microsoft.public.dotnet.framework.remoting
Hi all, I'm in a time crunch and really dont have the time to test this myself, so I am hoping one of you has an answer for me. What would be the faster method of serialization, using the Serializable attribute on the class or implementing your own custom serialization routine via the Serializable attribute?? Supposedly, the Serializable attribute uses reflection to determine the types and such, s...
Using TCPChannel instead of HTTPChannel for Events (11 replies)
microsoft.public.dotnet.framework.remoting
Greetings: All of the examples I've seen about raising events to listening clients from remote servers use config files and http channels. I'm looking for an example that uses tcpchannels programatically to raise events on the client(s). I've figured out (finally!) how to create a single remote server w/ multiple clients listening for events raised by the remote server like the chat sample (which,...
Works with C#, Not VB (2 replies)
microsoft.public.dotnet.framework.remoting
Hello, I attempting to learn about remoting and have a weird thing going on. I have a simple class i am attempting to run via iis and soap. I am attempting to access the service like this http://localhost/grabber/licensing.soap?wsdl The code in C# returns a web page as i expected. The VB version causes an error. Any help would be appreciated thanks VB Code: Namespace CBS Public Class xxLicense Inh...
Finding MarshallByReference wrapper URL (2 replies)
microsoft.public.dotnet.framework.remoting
when i return a marshallbyreference object, that object contains extra information such as a remote URL for reconnecting to it. i've seen how to do this before somwhere and thought "oh thats cool", but saw no need for it until now. how can i do it? simon
CAO (2 replies)
microsoft.public.dotnet.framework.remoting
Hi all, I'm using remoting since a couple of days and I'm really happy about it. I'm using remoting over http and tcp with success, the only thing I'm not shure is how to handle CAO objects if the assemblies are hosted in IIS and the server is behind a firewall. The problem I have is that I'm loosing the connection to the remoted object after the lifetime expires. I found a working solution for tc...
Error while tying to pass a Dataset to a remoting function (2 replies)
microsoft.public.dotnet.framework.remoting
Hello ng, I'm trying to pass a Dataset to a remoting function. It worked well until I installed my PC newly with W2K & .NET(both englisch versions). Now I'm getting the remoting error below. A dataset as a return parameter works but passing it as a parameter value does not work any more. Also, on other machines it works fine. Have I got to set any settings to my newly installed system, .NET or ......
Get ObjectHandle (3 replies)
microsoft.public.dotnet.framework.remoting
Hello, How can I return a ObjectHandler when loading an assembly from a particular file? I've tried using AppDomain but found problem when using a delegate to call the BeginInvoke method.
Moving Images across Network using Remoting (2 replies)
microsoft.public.dotnet.framework.remoting
v r developing a simple application which needs to retrieve Images across network. although the remoting works fine as long as the program runs on single machine, when client is executed on different machine, it pops out SerializationException message is "Invalid type code in stream Invalid" i have used Binary formatter over http channel local/ single machine this WORKS let me know is ne one can h...
Channel Registration & Well Known Type Registration (2 replies)
microsoft.public.dotnet.framework.remoting
I'm (finally!) doing some experimenting with Remoting, and have created an application which allows you to choose either a "host" form or a "Client" form. I've been successful at having two instances of the application running, setting up a listner programatically on one instance and calling an object from the "host" instance through a client instance, which again is being configured programatical...
'Unable to write data to the transport connection' error (2 replies)
microsoft.public.dotnet.framework.remoting
Hello, I have a server component which is hosted by a Windows service and handles requests from clients via remoting. This component has three objects, each with its own methods. If I want to call a method on one of the objects from the client, I use remoting to get a proxy for the object then I call the object's method. Unfortunately, when I do this, I get the error listed above. There's an inner...
Adapting to diff serialization versions (2 replies)
microsoft.public.dotnet.framework.remoting
I have an object that is being serialzied to sql server 2000. I have run into the problem in development that when I make additions to the object I can no longer deserialize the older version from the db. I need to be able to support all backwards versions of a serialized assembly object. Has anyone run into this yet and have a solution?
Remoting a Typed Dataset (5 replies)
microsoft.public.dotnet.framework.remoting
I have my Data Access code remoted on my SQL Server, and I regularly return datasets to the Business Layer with no problem. I recently learned about Typed Datasets (for a good overview, see Bill Vaughn's ADO.NET Examples and Best Practices, pages 549 554). When I tried to return a Typed Dataset to the Business Layer, I got the following exception: System.Runtime.Serialization.SerializationExceptio...
Problems with WSDL using configuration file... (2 replies)
microsoft.public.dotnet.framework.remoting
Hi all, I've a problem configuring my remoting console application/windows service server. After running the service, I can navigate to http://localserver:8080/DARemoteSQL.rem?WSDL only if I manually create and register channel/service (Option 2 in code below). If I use the configuration file (Option 1 in code below), browsing to the above address returns "There is a problem with the page you are ...
app failing to be created when I instantiate through the remoter (2 replies)
microsoft.public.dotnet.framework.remoting
I''ve got a strange situation. I''ve got a dll (using MarshalByRefObject) which has a server exe which handles it for client requests (using Singleton). When I get the object using a client app (using Activator.GetObject) it retrieves the TP but as soon as I try to use any of its methods it hangs. now the dll works fine when I create it and call it from an exe on the server so I''m a bit confused ...
ISerializationSurrogate and remoting (6 replies)
microsoft.public.dotnet.framework.remoting
Hi! The whole surrogate thing looks just great. It would allow me to add custom serialization for certain types (i.e. the well known problem with DataSet serialization). The ISerializationSurrogate interface is provided for that purpose. Now, the way it seems to be usable is by manually creating a formatter and passing a SurrogateSelector instance that has been filled with the desired surrogates: ...
Q: How do I let remoted objects access the local network? (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, I am creating a remoted C# solution. Remoting is done via IIS. Problem: An object on the client calls a remote object. The remote object creates a new thread and executes a method, DoWork(), on that thread. The method tries to create Stream objects on files that reside on another server on the network. I get Access Denied! : ( Yes, it certainly looks like a simple problem but I've been at it f...
translate c# to VB.net (2 replies)
microsoft.public.dotnet.framework.remoting
This is in C# to load the form with the form1 load method. How would I translate this into VB. Please help! this.Load new System.EventHandler(this.Form1 Load);
How to Remote Datasets (4 replies)
microsoft.public.dotnet.framework.remoting
I currently have a class that inherits from a strongly typed dataset. I notice that you also have to inherit from MarshalByRefObject to get remoting to work. Without totally redoing the implementation of my class that inherits from the strongly typed dataset, is there a way to build you own class that inherits from a strongly typed dataset and still somehow get remoting to work? Thanks.
Deploy an application with soapsuds (2 replies)
microsoft.public.dotnet.framework.remoting
Hi to everone, I've got the following problem. When I want to deploy my application, I don't want to distribute my server dll's to the clients. I created with soapsuds ia:server oa:metaserver.dll nowp a meta dll. This all works fine. When I reference this metaDLL in my VS.NET,the project compiles and all the methods are visible. But when I run my application, I get the following error : System.Nul...
FileSystemWatcher Service.. (4 replies)
microsoft.public.dotnet.framework.remoting
Hello all.. I have a FileSystemWatcher service that looks for any changed / created files.. I then record all events to an xml file for further use.. the problem I'm having is this: 1. when a new file is created (drag n drop) to the 'root folder' (path of FileSystemWatcher), two events are recorded .. one for 'Created' one for 'Changed'. ... is there away around this? .. can i only raise an event ...
Problems with Collections (2 replies)
microsoft.public.dotnet.framework.remoting
Hello out there, I have a little problem with collections in my remoting environment. At first a short overview: The class I want to access remotely has 2 properties defined which itself are custom collections. Each of these two collections inherits from CollectionBase. Now if I ask my remote object how many items it has in the collection, it returns the right value. If I now try to loop through t...
Remoting: VB6 via SOAP to .Net Server Component (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, hopefully someone cann help me I have the following code running on the server: namespace Server { class Service1: MarshalByRefObject { public string getValue(string param0) { return param0 "Server :)"; } } class ServerStartup { static void Main(string[] args) { string port "1234"; Console.WriteLine ("ServerStartup.Main(): Server started"); HttpChannel httpChannel new HttpChannel(1234); Channe...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com