C# und X509Certificate2

Deutschsprachiges X#-Forum – German language forum

Moderator: wriedmann

lagraf
Posts: 530
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: C# und X509Certificate2

Post by lagraf »

Hi Chris,
can you pls send your app, I still have some errors.
Regards
User avatar
Chris
Posts: 5630
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: C# und X509Certificate2

Post by Chris »

Hi Franz,

I didn't make any changes to the app you posted yesterday, it's the exact same code. I only removed the reference to pcsc-sharp.dll and added references to PCSC.dll and PCSC.Iso7816.dll, from the folders I mentioned in my previous post.

Did you also change the references? If yes, what errors are you getting now?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
lagraf
Posts: 530
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: C# und X509Certificate2

Post by lagraf »

Hi Christ,
I attached a jpg which shows references and errors.
Regards
Attachments
CSharpSampleClient.jpg
FFF
Posts: 1743
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Re: C# und X509Certificate2

Post by FFF »

What about a readable version?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
lagraf
Posts: 530
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: C# und X509Certificate2

Post by lagraf »

No problem Karl.
References
- PCSC
- PCSC.Iso7816
- System
- System.Core
- System.Numerics
- System.Security
- System.Security.Cryptography.X509Certificates

Errors

Code: Select all

error CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.	16,38	AbstractCashRegisterSmardCard.cs	Cashregister.Smartcard.AbstractCashRegisterSmardCard:AbstractCashRegisterSmardCard
error CS0012: The type 'System.IDisposable' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.	16,38	AbstractCashRegisterSmardCard.cs	Cashregister.Smartcard.AbstractCashRegisterSmardCard:AbstractCashRegisterSmardCard
error CS0012: The type 'System.Collections.Generic.IEnumerable`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.	85,35	AbstractCashRegisterSmardCard.cs	Cashregister.Smartcard.AbstractCashRegisterSmardCard:SendCase2APDU
error CS0012: The type 'System.Collections.IEnumerable' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.	85,35	AbstractCashRegisterSmardCard.cs	Cashregister.Smartcard.AbstractCashRegisterSmardCard:SendCase2APDU
FFF
Posts: 1743
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Re: C# und X509Certificate2

Post by FFF »

Looks like the mobile version of this site scales jpds down a lot more aggressively - now on the pc no problem to read, sorry.
The errors look strange, as System.Object etc are at the "base" of the tree in .net...
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
ic2
Posts: 1987
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Re: C# und X509Certificate2

Post by ic2 »

These errors look a bit like the error I got last week (it's in the subscriber forum) with a mixed C#/X# solution. Eventually I sent the whole solution to Chris who could compile it error free.

I figured out that the only difference between his and my installation was that I have the Store in GAC option unchecked during the X# installation, due to the trouble the GAC caused years ago. I de installed X# and reinstalled it with the option checked and the problem was gone.

Can you check if the GAC has something to do with it?

Dick
lagraf
Posts: 530
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: C# und X509Certificate2

Post by lagraf »

Hi Dick,
Chris has an error free version of this app. If he can send me his app and both dlls (PCSC*.*) I can test it and we will see if it's a install problem.
Regards Franz
User avatar
Chris
Posts: 5630
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: C# und X509Certificate2

Post by Chris »

Hi Franz,

I think you used dlls for other framework versions, and not the ones from the folders I specified in my reply to you. I will send you via PM the correct dlls.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
lagraf
Posts: 530
Joined: Thu Jan 18, 2018 9:03 am
Location: A

Re: C# und X509Certificate2

Post by lagraf »

Hi Chris,
thank you for the DLLs, it now compiles without errors!
The DLLs I used first were not from the github example, I already had them on my disk. It looks like it's not the correct version for this app.
Regards, Franz
Post Reply