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))
..... |