By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,315 Members | 1,736 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,315 IT Pros & Developers. It's quick & easy.

How to use java class object in ASP.NET?

P: n/a
I have to translate an ASP project to ASP.NET, in the former project, a java
class object was used by vbscript:
Set Obj = Server.CreateObject("ccb.pub.RSAsig")
Obj.generateKeys()
Obj.getPrivateKey()
Obj.getPublicKey()

the object "ccb.pub.RSAsig" is a java class object registered by
javareg.exe, and
generateKeys(), getPrivateKey(), getPublicKey() is its methods.
In the ASP.NET, I create the object(C# language):
object Obj;
Obj = Server.CreateObject("ccb.pub.RSAsig");
Obj.generateKeys();
Obj.getPrivateKey();
Obj.getPublicKey();

then compile error: object Obj not include the method generateKeys(),
getPrivateKey() and getPublicKey().

I'm so confused, waiting for help......

Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
AFAIK in C# you have to use late binding explicitely. See for example :
http://www.c-sharpcorner.com/1/call_com.asp

You could probably use early binding by referencing this component from your
project...

Patrice
--

"cartooncat" <cl***@sina.com> a écrit dans le message de
news:eA**************@TK2MSFTNGP10.phx.gbl...
I have to translate an ASP project to ASP.NET, in the former project, a java class object was used by vbscript:
Set Obj = Server.CreateObject("ccb.pub.RSAsig")
Obj.generateKeys()
Obj.getPrivateKey()
Obj.getPublicKey()

the object "ccb.pub.RSAsig" is a java class object registered by
javareg.exe, and
generateKeys(), getPrivateKey(), getPublicKey() is its methods.
In the ASP.NET, I create the object(C# language):
object Obj;
Obj = Server.CreateObject("ccb.pub.RSAsig");
Obj.generateKeys();
Obj.getPrivateKey();
Obj.getPublicKey();

then compile error: object Obj not include the method generateKeys(),
getPrivateKey() and getPublicKey().

I'm so confused, waiting for help......

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.