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


ADVERTISEMENT

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

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

.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

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

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

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

.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

Build Correct Way Of N-tier Apps Without Service And Remoting?

Jul 4, 2009

How to build the n'tier application. I have read some book tell about this, like "Building Client/Server Applications With VB.NET" by Jeff Levinson, beth massi video tutorial "building simple n-tier applications", and other else.

In my practice, i create 3 projects to handle each layer progress. That are DAL (Data Access Layer), BLL(Business Logic Layer) and UIL (User Interface Layer).

My problem is i don't want to use web service like beth massi do, and i don't want to use remote object like Jeff L do. So i decide to create it by my rules. Here above something that i do.

In DAL Section, I put all datasource like Beth Massi do over here. I also create a manager class like massi do to handle datasource over here. Also in this class, i create the UML structure of this datasource.

[code]...

View 1 Replies

VS 2008 System.Runtime.Remoting.RemotingConfigHandler Error

Jul 15, 2009

When running a program, that error (in the title) shows up. I managed to get the stack trace, shown below.

System.TypeInitializationException was unhandled
Message="The type initializer for 'System.Runtime.Remoting.RemotingConfigHandler' threw an exception."
Source="mscorlib"
TypeName="System.Runtime.Remoting.RemotingConfigHandler"
StackTrace:

[Code]...

View 5 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

Show User Form On A System Service Event Via IPC Remoting?

Jul 7, 2009

I am struggling with this issue for serveral days now.My application needs to work like wsus (windows updates) does. On a certain event triggered by a windows service working under SYSTEM account it needs to show a (second) form under the user context.The IPC Remoting works fine so I think my issue is in the threading.When I use form2.Show() form2 appears but the form freezes.When I use form2.ShowDialog() the form appears but I cannot get the focus on it.

Service running under system account (in this example a simple console application)

Code:Imports ClassLibrary1Module Serv
Sub Main() Dim SDSIPC As Semaphore = CType(Activator.GetObject (GetType(ClientFromServer), "ipc://Client/SreeniRemoteObj"), Semaphore)
SDSIPC.DoSomething()

[Code]...

View 5 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

VS 2010 Visual Basic 2010 And Crystal Reports 2010?

Oct 2, 2010

When trying to import CrystalDecisions.CrystalReports.Engine, and CrystalDecisions.Shared. I'm getting a green line. What might be the problem?

View 3 Replies

VS 2010 Involved VB 2010 And Visual Studio 2010 (WPE PRO)?

Jan 8, 2012

I'm new to visual basic, used it for a few months. My friend is addicted to using a program called Wpe Pro [URL].. and he wanted me to make it more advanced and able to do more stuff.if you no anything about this program please message me

View 5 Replies

VS 2010 .Net 2010 Program .exe Wants Excel 2010?

Aug 4, 2011

VB.Net 2010 program .exe on PC with Excel 2007 gives error when cannot find Excel version 14, which is Excel 2010 I have developed a program in VB.Net 2010 which reads from an Excel spreadsheet. It works fine in the IDE on my computer. I built an .msi and executed it on my computer. I get "Error: 53 - Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified."

The only version of Excel on my computer is 2007, which is version 12.0.6557.5000. The version the error says it needs, version 14, is actually the version of Excel 2010.I have put in MsgBox statements to find where the error occurs.

[Code]...

View 2 Replies

Visual Studio 2010, Outlook 2010 And Windows Application, Return Emails?

Jan 5, 2011

At present I have wrote an application (in-house CRM, vb .net 2010) which allows me to send emails under the selected customer & I categorised these emails.As these are categorised I can return data to display email history in my program by using search criteria:

Dim oMail As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail)
Dim sSearch As String
sSearch = "[Categories] = '" + "[" + tAccount.Text.Trim + "]" + "(" + tShipTo.Text.Trim + ")'"
Dim oItems As Outlook.Items = oMail.Items.Restrict(sSearch)

However the limitation to the above is it only looks at sent items & no other folder.My ideal solution would be to display all email correspondence for a certain contact.

View 1 Replies

VS 2010 - Build My Project (or Publish) VB 2010 Makes And Exe And A Couple Ddl Files

Jun 6, 2012

The situation: when i build my project (or publish) Visual Basic 2010 makes and exe and a couple ddl files. when i run the project with the .exe and the other files the program works perfectly.

My problem: I want to share it with friends and it is just a verry little program ( a n internet radio) so i want it to be 1 .exe with out any other instalation needed so i can easly share it to anyone who wants it. when i make an even smaller program and Debud->build it, it is only 1 exe and no instalation needed. so is there a way to make my program to 1 exe only?

View 4 Replies

VS 2010 Addin For Excel 2010 - Getting The Cursor (4 Arrowheads) For Moving The Form?

May 26, 2010

Basics Details:
VS 2010
Making an Addin for Excel 2010
Win 7

Problem:I am not getting the cursor (4 arrowheads) for moving the form.I am using the Panel1_MouseHover to display the cursor. Right now if I choose any other cursor then it is working but the same cursor also displays when I hover the mouse over any other control. I want the cursor to show only in the areas of the Panel where there are no controls.How do I show Tooltips for the images? The play,stop,next, previous,playlist,Hideme(with the smiley),volume are all images and not buttons?

View 9 Replies

VS 2010 Change Version After Install-Visual Studio 2010 Installer

Jun 21, 2010

Well I used the Visual Studio 2010 installer to install my application and I want it to be able to change the version displayed in the in the Add/ Remove Programs (in the Control Panel). How can I do this without going through the install wizard again?

View 3 Replies

VS 2010 Class Library / - If Create A DLL Using VB 2010 Express Can It Be Used By Previous Versions Of Of .Net (3.5 - 2.0)

Aug 19, 2011

If I create a DLL using VB 2010 express can it be used by previous versions of of .Net (3.5, 2.0)? Will the DLL use .Net 4.0 components, which is what I want. I don't see a way to force that to be the case.

View 1 Replies







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