HighTechTalks DotNet Forums  

System.Reflection.TargetInvocationException....The system cannot find the file specified.

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss System.Reflection.TargetInvocationException....The system cannot find the file specified. in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Roey
 
Posts: n/a

Default System.Reflection.TargetInvocationException....The system cannot find the file specified. - 10-28-2006 , 03:10 PM






I have a problem when using remoting to distribute my app between
multiple tiers. I am getting an error that the system cannot find the
file specified. I have done quite a lot of research on the web and
found one solution involving a wrapper class although I can't seem to
get anywhere with it.

Any help anyone could give me would be greatly appreciatted.....

***CLIENT***

The client sets the address of the handling configuration form

objRequirements.SetDeleg(AddressOf LoadConfigurationForm)

***SERVER***

The server side processes a list of items until it finds a configurable
item and then calls confCallBack which displays a new UI screen to the
client and prompts for a selection, which is in turn returned back to
the server.

Public Delegate Function ConfigurationScreen(ByVal CategoryID As
Integer, ByVal CategoryDescription As String, ByVal ItemID As Integer)
As Integer

Dim confCallBack As ConfigurationScreen

Public Sub SetDeleg(ByVal retAddress As ConfigurationScreen)
confCallBack = retAddress ' forms return address
End Sub

....
....
If CType(rowChildItem("ConfigurableItem"), Boolean) = True Then
'check if item is configurable
Dim intNewItem As Integer =
Me.confCallBack(CType(rowChildItem("CatID"), Integer),
CType(rowChildItem("CatDescription"), String),
CType(rowChildItem("ItemID"), Integer))
.....


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.