473,326 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to use java class object in ASP.NET?

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
1 2065
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: r035198x | last post by:
Overriding therefore allows you to use the same method name to refer to differently implemented methods. Here is an example using the famous shapes example. class Shape { public Shape()...
15
by: Xah Lee | last post by:
On Java's Interface Xah Lee, 20050223 In Java the language, there's this a keyword “interface”. In a functional language, a function can be specified by its name and parameter specs....
5
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is...
0
by: r035198x | last post by:
Inheritance We have already covered one important concept of object-oriented programming, namely encapsulation, in the previous article. These articles are not articles on object oriented...
2
by: yeshello54 | last post by:
so here is my problem...in a contact manager i am trying to complete i have ran into an error..we have lots of code because we have some from class which we can use...anyways i keep getting an error...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.