Use Client-Activated Objects In Remoting?

Apr 20, 2009

When we use Client-Activated Objects in remoting ? can any one provide an example on Client-Activated Objects

View 3 Replies


ADVERTISEMENT

Remoting With Client Activated Object

Jul 9, 2010

I am trying to switch from a SingleCall Remoting infrastructue to a client activated object infrastructure. But can't get it to work. Probbaly a setting. On the hosting server (a console application) I have:

[Code]....

View 7 Replies

.net - Remoting Clients - If I Press 1 Then One Action Should Happen In Client?

May 2, 2011

I have made 2 application server/client. I want to remote the client from server for example if I press 1 then one action should happen in client, if 2 then another action should occur. How can I do it? I think I should use select statment

Select case a' a dim as integer
case Keys.1
frmmain.axwindowsMediaPlayer1.ctlcontrol.play()
end select

is this right ?

View 1 Replies

C# - Connect With Same Type 2 Servers On Different Destination From Single Client By .NET Remoting?

Aug 31, 2011

I have to connect same type of remote objects on different destination using .net remoting. For example, I have a database access middle layer on a remote server and local server. But both are same type object. but the remote destination addresses are different. So how to connect it using .NET Remoting?

View 1 Replies

VS 2005 Remoting With Server's Event Handling On Client Side?

Oct 26, 2009

Anyone has a quick and dirty sample coding to making this work? Currently, I have server, client with Interface object as intermediate object between the 2. If I declare events in the Interface, then Dim object on client side with "WithEvents", I'll get error when I reach this line:

vb
serverObj = CType(Activator.GetObject(GetType(InterfaceObj), szURI), GetType(InterfaceObj)

Having headaches looking for solutions.

View 7 Replies

.net - Having A File Encrypted To Lets Know The Client Software Got Activated?

Aug 26, 2011

I am facing a rather odd problem right now. If you fellow this : Best place to put key or password used for encryption? i was looking at a way to encrypt data. Using RSA seemed to be a good choice. However we have a problem since my requirements are thoses fellowing...Client must have a file encrypted in order to determine if the software is activated.

That actually mean that the client must read the encrypted file.. but the problem is that we actually need the private key to be there which isnt a good idea since some poeple could start making their license file using that key. The activation server encrypt the data file which are sent back to the client and then the client save that file.

Client must have a file encrypted in order to determine if the software is activated.Client sent user data to the activation server in unencrypted/encrypted form. That doesnt matter. Sure it would be better encrypted at this point.The activation server check that data and then determine if the client can be activated.If the client can be activated then the server send the encrypted form of the license file.. but the problem appear now.. there is no way to deencrypt the file on the client if the private key isnt on the client which would be pretty insecure!

View 1 Replies

Office Automation :: Creating Client Side Excel Objects

Nov 5, 2008

I have a website. In it, I have a button which will export some data from a SQL database to Excel. I want to open an excel workbook on the client and paste the data there. This all works fine locally, but when i publish it, I get this error:ActiveX component can't create object.[code]Have searched the net, and it seems the problem is permission related. Can anyone explain to me how to configure my server so that I can use clientside Excel?

View 2 Replies

Remote Data Objects 2.0 Installation At Client Machine For Application?

Jun 28, 2010

I Converted my project(Its contain the rdo2.0's) from vb6.0 to Vb.net 2005. Its working fine in development machine( in Development have the Vb6.0 and Vb.net 2005). But its not work in Client machine. Its asking the rdo2.0 introp's. How to install the rdo2.0 's to client machine with out installing vb6.0. If i installed vb6.0 at client machine its work fine. How to install rdo2.0's in client machine without vb6.0.

View 2 Replies

Client-Server-Client Multithreading - Instant Message Another Client

Jun 21, 2010

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.

[Code]...

View 2 Replies

How To Configure Remoting For LAN

May 17, 2012

Can we configure remoting for the LAN? I studied it halfway but I realised that its for web, but I think it can be possible for LAN too.

View 2 Replies

VS 2010 .NET Remoting With VB

Apr 5, 2011

I am creating a client/server application that connects via .NET remoting and I'm using TCP. I have 2 config file for client and server. The config file and the server application runs good. But for the client, it runs even though the server is offline and no port is open listening. I've gone through quite a lot of example and don't really know whats happening. This is my client config file.

[Code]...

View 8 Replies

C# - Migrating .Net Remoting From Framework 2 To 4?

Feb 29, 2012

I currently had a .Net Remoting Application running on Framework 2 under IIS. I have to upgrade it to Framework 4 in order to use some new components. I have been able to set everything up and running smootly on Framework 2, but as soon as I change to Framework 4, I get the following exception when I try to call one of the function of my remote object.

The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-52-75-6E-74-69-6D-65-2E-52-65

This bug is not the real bug, it is caused by the fact that the remote object is throwing an exception, and IIS wrap the exception in XML, which throws the BinaryFormatter off.See this for more info on the bug.

This is very unfortunate because I cannot see what is causing the exception, and having never used any Remoting before, I do not have much ideas as to where to start debugging. It seems the Exception is thrown before even stepping in the code because I do a fair amount of logging and none of it seems to be triggering.Basically, I'm looking for some clues or pointer from people that encountered similar problems:

What could be causing the exception when no code has changed besides Compiling from .Net 2 to .Net 4?How can I get the full Exception message that is returned?

[Code]...

View 1 Replies

How To Communcate With Remoting Server

Apr 19, 2009

1)i created remoting server now i want to communicate with that

2)if i want to develop a remoting application how i startadil

View 1 Replies

VS 2005 Remoting Causes Threading?

Oct 1, 2009

I have a server, listening to Remoting request on TCP channel. When first client was connected, it was able to proceed on the lines of code shown in the picture. When a second client connected, it shows this error

View 6 Replies

Activated Event

Jun 2, 2010

Hello, everyone! I'm having problems with the Activated Event in Visual Basic. When trying to click my btnNext, IF THE DATA ON THE PAGE IS NOT SAVED YET, then a message box is to appear and alert the user that the data is not saved yet. When clicking the OK button on the MessageBox, it is supposed to return control back over to the main form. HOWEVER, I can't get past the Activated Event on the main form. It crashes the program. I've tried global flags, but it still does not want to work! Can anyone please help? Any thought in the right direction will be greatly appreciated! Thanks in advance, y'all!

View 2 Replies

Form.activated In .net?

Jun 30, 2010

I am trying to migrate a vb6.0 application to vb.net. I have a major issue while executing the code under form.activated and form.deactivate. There is a difference in behaviour between form.activate in vb6.0 and form.activated in vb.net. How can I simulate the behaviour of vb version in vb.net.

I have read that the form.activated fires even when the control goes to a different application and comes back.

View 5 Replies

Get The Timers To Get Activated?

May 31, 2006

I recently upgraded an application from VB 6.0 to VB.NET. This application contains a timer in its form (only one form is there). But after upgrading, the timer is not getting activated. Form is using DefInstance as follows: frmMain.DefInstance.Show()

[Code]...

View 8 Replies

Maintain An App Activated?

Jul 21, 2011

I need to create a program that when it is opened, Focus will be always in that program until someone with any way will close it. I've tried to add Me.GetFocus() in the LostFocus event but nothing happens, I've tried to add Me.activate() when the Deactivate() event raises and when I debugged the program worked but when I run the biulded .exe file nothing happens again! how I can manage this Function?

View 6 Replies

.net Remoting Returns System.BadImageFormatException?

Aug 4, 2011

I am working on a .net remoting project (VS 2008). I have a .dll hosted in IIS 6 windows server 2003 r2.

When i try to test it in internet explorer "http:localhost/hellone/test.rem", it shows the following error

System.BadImageFormatException: The format of the file 'SimpleTest' is invalid.File name: "SimpleTest"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)

[Code]...

View 2 Replies

Communications :: Download An Application That Uses .net Remoting

May 26, 2011

I have downloaded an application that uses .net remoting.

The problem is that I don't know how to configure it to communicate over the internet.

From the blog [url] says to set the tcp 192.168.1.100 . As far as I know this is the intranet IP. My external IP is different. Do I need a server or a Static IP from my provider?

View 1 Replies

Cross-AppDomain Singleton With Remoting ?

Mar 8, 2011

I have an Addin for MS Excel which needs a singleton to share data amongst modules.Depending on the version of Excel (2003, 2007, 2010), and how Excel was started, it calls my addin from different, unpredictable AppDomains, which prevents the classic singleton approach.Creating a custom AppDomainManager won't work because Excel has already created the AppDomains before the addin is called.

Linking to mscoree to enumerate domains breaks the addin registration process (and I really don't want that anyway); there doesn't seem to be any other way of enumerating, so that isn't an option either.The only solution that I've found is to use remoting. Here's my test rig:

Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
' Remeber to add reference to System.Runtime.Remoting DLL[code].....

Once everything is running, access to the singleton takes ~100µS, which is perfect. I can live with the ~400mS the first time each AppDomain is initialised. The problem is at startup, where the remoting invocation takes ~2.5 seconds.

View 1 Replies

Explain Singleton Architecture Of Remoting?

Jun 6, 2011

Explain Singleton architecture of Remoting.

View 1 Replies

Make Remoting Cache Object?

Aug 5, 2011

I'm using the following code in a singleton remoting object MBRO. This function is only called on the server side.

''' <summary>
''' Return a cached DataCentricObject

[code].....

View 1 Replies

VS 2008 Capture .NET Remoting Calls?

Sep 22, 2010

We have a client server application that 650 users are using everyday. Lately they have started complaining about over all slow responses and slowdowns in normal application usage like searching, reporting etc.We are using .NET Framework 3.5 and .NET Remoting is the technology we have used for client connection to the server side. We can't remove that and use something else due to legacy application maintenance. We are using SQL 2008 R2 x64 on a very good server.We have gone though the basic steps of making sure that all the SQL side is ok everything is well tuned but we need to convenience the client that it is not the application but the database that needs to be regularly maintained by a DBA in order for it to run smooth due to the nature of the application making tons of changes and inserts in the database everyday.

Anyways I need to write some sort of module that can plugin into the .NET Remoting calls so it can log the normal usage of different methods on the server like;* How many times a remoting method is called* What params a remoting method is called with* How much time it takes to execute each remoting callIs there anything available in .NET Framework that can help me? I read something about .NET Remoting Sync but not too sure if that is what I need to use? If any can shed any light on the subject or nudge me in a right direction with some sample code, that would be great.

View 2 Replies

Remoting - Threading Or Running Multiple Servers

Aug 20, 2009

after my last post i dove into remoting to try to solve my performance problem in a client-server fashion.
This works very well, but i come across a big problem which i don't seem to get solved.

I made a well known singleton servicetype on the server that retrieve all customers. Whith 1 db connection this works fine. But very often customers and i use in 1 sql instance multiple databases (for each administration a separate db). so the whole purpose of a singleton object is hereby destroys as soon i connect in my class to a different db. Is there some way to overcome this for example threading or running multiple servers (for each db it's own server-application)?

View 13 Replies

Update A Database From A Datagridview Over The Network Using .net Remoting?

Sep 20, 2009

i am working on a project that i have to retrieve data and send data to a database over the network. I am using .net remoting i have successfully retrieved a dataset and attached to a datagridview. The problem is how to update the database from the datagridview over the network using .net remoting.

View 1 Replies

VS 2005 Difference Between The Socket Programming And Remoting?

Apr 9, 2010

i am a newbie in socket programming and remoting.May i know where lies the difference between the socket programming and remoting? Where do i start off to learn the basics of the socket programming?I haad a goo with the google search but unfortunately the search outcome results are a bit tough for me to understand

View 4 Replies

Display Text When ComboBox Is Activated?

Sep 21, 2011

I have a combobox and a rich text box. When I select different items in the combo box, I want some text to appear in the rtb next to it. Such as, selecting "Dog" in the combobox puts "Golden retriever, lab" and etc in the rtb.

1) I don't know what kind of event handler would trigger the combobox. I tried a click event but it's crashing so I want to know if there's a different way

2) How do I find what the user selected in the combobox, so it can display stuff in the rtb accordingly? I thought it was .Items.IndexOf but nothing seems to be working so.

View 1 Replies

Form Activated And Deactivate Events

Apr 3, 2011

This is a non-MDI windows application. I have a home form containing a panel named Panel1 and two buttons btnForm1 and btnForm2. Clicking btnForm1 and btnForm2 opens up Form1 and Form2 respectively in Panel1. Before a form is opened in Panel1, all opened forms in Panel1 are cleared. The code follows:[code...]

In which events should the above lines be written? In MDI apps this could have been accomplished by including them in Form_Activated and Form_Deactivate events respectively.

But here neither Activated nor Deactivate events fire when you open forms in frmHome.Panel1. Instead of Activated and Deactivate you can use Form_Load an Form_FormClosed events but they will only merge/unmerge menus if existing forms are closed before opening a new form in the panel.

But as I sometimes need forms to be opened and closed keeping existing forms opened, using these events won't fulfill the task. Even the GotFocus and LostFocus events won't work. So I want Activated and Deactivate events to be fired or some other means by which the menus and toolstrips can be merged/unmerged when the form gains/looses focus respectively.

View 1 Replies

VB 6.0 To .Net Conversion - Form Activated Event

Jul 9, 2010

We are converting a Visual Basic 6.0 application to vb.net 2008 and are having an issue, while executing the code under form activated event. There is a difference in behavior between form.activate in Visual Basic 6.0 and form.activated in vb.net. In Visual Basic 6.0, the Activate event was raised only when switching between forms in the application; in Visual Basic .NET, the Activated event also is raised in case of showing messagebox and when switching from other applications.(by msdn)

In vb6 application the purpose to use form activate event is, to execute some code when forms become active. In our application forms are loaded, hide and show in different flows. So whenever this form is shown from hide state or any of its child form return focus to it, we need to reflect different changes in the application to the specific form controls.

* For example user changes its application preferred language. * As the application is huge, so shifting logic to other place with respect to the current scenario might solve the problem for the current form but then I have to re think it for all other forms (which is very hectic and more or less not feasible). In the migration process it is required to make as little changes in the existing code execution hierarchy. So we need a similar behavior like form.activate in vb6.0 with some other event or restrict some functionality of Activated event in vb.net.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved