Groups | Blog | Home
all groups > dotnet remoting > may 2004 >

dotnet remoting : Specified cast is not valid.


John Lee
5/5/2004 5:01:06 PM
Hello

I am working on .Net Remoting application with three project in the solution as below. I am getting "Specified cast is not valid." on the UI when making a call to the remote object. Any help would be greatly appreciated. Thanks

UI
#1 on the load event of U
RemotingConfiguration.Configure("MyApp.exe.config")

#2 on the button click event of U
dim oRem as new Remoting, oDS as datase
oDS= oRem.Logon(oUserDataset)

Getting error "Specified cast is not valid." for #2. If I comment out #1, it worked fine

What's wrong

Remoting - .net remoting modul
Public Function Logon(ByVal oDS As DataSet) As DataSe

HostRemote -.net hosting modul

juergen doubrawa
5/6/2004 2:55:49 PM
Hi,

check your configuration file(MyApp.exe.config).
seems to me like your getting another object from the server as you configured in your config file.

hope this helps.

greetings jürgen



[quoted text, click to view]
Allen Anderson
5/10/2004 8:46:13 AM
if your still having problems with this, you might check out this
article I've written about sharing interfaces and classes between
client and server.

http://www.glacialcomponents.com/ArticleDetail.aspx?articleID=RemoteObject

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com

On Wed, 5 May 2004 17:01:06 -0700, "John Lee"
[quoted text, click to view]
AddThis Social Bookmark Button