Visual Basic .NET » Windows Forms
Smart Client application in 2.0 - Solution Required -- Duraisamy --

Hi Group,

Currently I am developing one smart client application in .net 2.0. I tried the following code of codeproject.com to call the server application. I have developed one server application and client (console) application to achieve this.

string strURL = "
http://localhost/Smart/Bin/Release/Smart.exe 
";
string sClassName = "MySmartClient.SmartForm";
Assembly assemblyContent = null;
assemblyContent = Assembly.LoadFrom(strURL);
Type typeContent = assemblyContent.GetType(sClassName);
typeContent.InvokeMember("Main", BindingFlags.Public
| BindingFlags.InvokeMethod | BindingFlags.Static, null, null, null);

It is working fine.

But when i tried the same code in windows application, i am geting error.
Exception has been thrown by the target of an invocation.

I am new to smart client application.

Can anybody explain the process?
and also i need solution to the above error.

Thanks in advance.

Regards,
Duraisamy



---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business.
[Submit Comment]Home