473,803 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with C# and CAPICOM-Interop

Hi, I'm using interop-Capicom in my C# application, but when I try to use
the CAPICOM_SMART_C ARD_USER_STORE flag the following exception raises:

The system cannot find the file specified.
at CAPICOM.StoreCl ass.Open(CAPICO M_STORE_LOCATIO N StoreLocation, String
Store
Name, CAPICOM_STORE_O PEN_MODE OpenMode)
at sugef.sicveca.c apaPresentacion .windows.FindCe rtnet.Main(Stri ng[] args)
in
d:\documents and settings\mrodri guez\my documents\visua l studio
projects\capico m
\class1.cs:line 33

Any idea why ? This is the code:

//oStore.Open(CAP ICOM_STORE_LOCA TION.CAPICOM_CU RRENT_USER_STOR E,storeName,0)
;
oStore.Open(CAP ICOM_STORE_LOCA TION.CAPICOM_SM ART_CARD_USER_S TORE,storeName, 0
);

oCerts = (Certificates)o Store.Certifica tes;
oCerts = oCerts.Select(" Lista de Certificados Disponibles","S eleccione el
certificado a utilizar para la firma",false);
Jul 21 '05 #1
0 1807

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3465
by: Alexei Pashin | last post by:
I use EnvelopedData from CAPICOM library to encrypt and decrypt security info on my ASP site. I got and installed test VerySign certificate on my server in Personal store and successfully encrypt data. As a recipient I used this certificate. I could successfully encrypt data. Before decryption i try to check availability of Private key: 1 Property objCertificate.HasPrivateKey() returns TRUE 2 Property...
1
2218
by: Neil S. | last post by:
I am writing an ISAPI filter which is using CAPICOM to encrypt and decrypt cookie information. I've found that the encryption string being returned by CAPICOM a has carriage control and line feed. (Hex 0d0a). My filter adds the header in the correct format, including the entire encrypted cookie value (set-cookie: mycookie=theEncryptedValue;path=/;). However, when the isapi filter finishes running, the browser only gets part of the...
1
1980
by: Mohit | last post by:
Hi Friends I did not know where to post this question, so am posting it on ASP.Net forum (so please excue me Has any one used CapiCom.DLL. I am having problems with it, and am wondering if it works with Windows 2003? So the question is, does CapiCom.DLL (Version 2.0.0.3) work with Windows 2003 I keep getting the following error messag "The recipient cannot be found in the EnvelopedData object." when i call the Decrypt method Please...
0
1156
by: Jonathan W. Zaleski | last post by:
I am trying to use the CAPICOM Package to Send Secure Emails, however, I am having a bit of trouble in getting it to work. I am able to get the proper certificate, and seemingly encode the 'EnvelopedData' correctly, but when attempting to open the sent message in Outlook I receive a: "Can't open this item. Your Digital ID name can not be found by the underlying security system." Error. I am unsure what this means exactly as it is not...
1
2048
by: Antonio Ruiz Martínez | last post by:
Hello! My problem happens when I'm trying to write a string in DER. I'm using the following code: signed = SignedData.Sign(Signer, False, CAPICOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BINARY) in order to get a PKCS#7 in DER. The signed is defined as string. The problem is that I don't know how I can write this string in a binary
0
1463
by: Frederic ESNOUF \(MVP-ISA\) | last post by:
Hi, My question is about 3des, ... in fact the difference between 3DES with Capicom (VB) and VB.net With VB6/capicom, encrypting data is simple : message.Content = "This is my bank account : Azerty007" message.SetSecret "MyPassword' message.Algorithm.KeyLength = CAPICOM_ENCRYPTION_KEY_LENGTH_128_BITS message.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES
0
1162
by: John | last post by:
Hello, I am trying to create a dll that has a capicom reference in it. After I do the following: Dim message As New CAPICOM.EncryptedData I recompile my dll. I don't receive any errors or warnings at this point. Next, I take a generic application and import an inherited form from the dll and I get the error to check to see if the reference has already been added. I can leave the reference to capicom in the references section and...
2
3859
by: stéphane bard | last post by:
Hi all, Has anyone ever used Python to work with Certificate Services in Windows? I'm trying to capicom dll with pywin32. I've found some reference about python and capicom in this mail archive http://mail.python.org/pipermail/python-win32/2006-March.txt but nothing really helpfull.
0
1055
by: rwkingv | last post by:
I really hope someone can help with this as it is baffling! I can build a C# Express application and it builds and runs fine. I try to publish it, and get an error that the build didn't work and then something about SignTool.exe and CAPICOM.dll. The SignTool application exists and CAPICOM is in the same directory. Any ideas??? Thanks for your help
0
2680
by: yxq | last post by:
Hello, I want to get the file signer using capicom.dll like signtool.exe, how to do? For example: The signer of file "c:\windows\system32\winlogon.exe" is Microsoft, how to get this signer using capicom.dll in VB.NET? Can anyone give some samples? Thank you
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.