Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Exception: Cannot create object

Status
Not open for further replies.

shackd

Programmer
Sep 30, 2005
2
US
Hi,
I created a dll (c#) called rsa and I am trying to reference the functions in it in my aspx file (vb code) and I get the follow error:
----------------------------------------
Line 34: rsa = CreateObject("RSAHelper")
Stack Trace:
[Exception: Cannot create ActiveX component.]
Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName) +234
-----------------------------------------

Here is a copy of the .aspx file:

<%

Dim rsa,token, sign, cipherValue
Dim haKeyVer, tpKeyVer, clientId, grpCustNum
Dim ssn, eeid, employerName
Dim keyFileMetLife, keyPairFile,keyPublic

ssn = "000000001"
eeid = "1"

haKeyVer = 1
tpKeyVer = 1
keyPublic = "12345"

clientId = "00000"
grpCustNum = "
rsa = CreateObject("RSAHelper")

token = "user_id=" & eeid & ";"
token = token & "esig_password=" & Right(ssn, 4) & ";"
token = token & "esig_label=" & "test" & ";"
token = token & "test3" & ";"
token = token & "soh_grp_num=" & clientId & ";"
token = token & "employee_id=" & eeid & ";"
token = token & "ssn=" & ssn & ";"
token = token & "employer_name=" & employerName & ";"
token = token & "stampedAt=" & rsa.DateTimeUtc
token = rsa.EncryptWithSessionKey(token)

cipherValue = rsa.EncryptSessionWithRSA(keyPublic)

sign = token
sign = sign & cipherValue
sign = sign & clientId
sign = sign & grpCustNum


' url encode everything
token = rsa.URLEncode(token) & "decode"
cipherValue = rsa.URLEncode(cipherValue) & "decode"
sign = rsa.URLEncode(sign) & "decode"

%>
 
Have you added the DLL to the references in your project?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top