Resolved lots Name not exists errors

abcd

Member
Joined
May 24, 2023
Messages
21
Programming Experience
Beginner
Code:
Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0246    The type or namespace name 'CCspInformations' could not be found (are you missing a using directive or an assembly reference?) 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0246    The type or namespace name 'CX500DistinguishedName' could not be found (are you missing a using directive or an assembly reference?) 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'X500NameFlags' does not exist in the current context 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'X509ProviderType' does not exist in the current context

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0246    The type or namespace name 'CObjectId' could not be found (are you missing a using directive or an assembly reference?)

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'ObjectIdGroupId' does not exist in the current context 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'ObjectIdPublicKeyFlags' does not exist in the current context  

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0246    The type or namespace name 'IX509PrivateKey' could not be found (are you missing a using directive or an assembly reference?) 


Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'X509KeySpec' does not exist in the current context

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'X509PrivateKeyUsageFlags' does not exist in the current context 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'X509PrivateKeyExportFlags' does not exist in the current context   

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'ObjectIdPublicKeyFlags' does not exist in the current context 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'AlgorithmFlags' does not exist in the current context   
Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0246    The type or namespace name 'CX509ExtensionEnhancedKeyUsage' could not be found (are you missing a using directive or an assembly reference?)

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0246    The type or namespace name 'IX509CertificateRequestCertificate' could not be found (are you missing a using directive or an assembly reference?)   

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0246    The type or namespace name 'IX509CertificateRequestCertificate' could not be found (are you missing a using directive or an assembly reference?)
 

Attachments

  • Doubts.txt
    7.7 KB · Views: 12
Last edited by a moderator:
It would have been better if you had also posted your code a in code tags. Also some description of exactly what problem you are encountering and what you have tried to do to fix the issue.

As it is now, it looks like you just dumped your error messages and code and expect us to fix it for you.
 
Nothing here looks WPF specific. Moving to Generic C#.
 
The fact that you have 238 lines of code with all those type not found errors would suggest that you actually just copied and pasted code instead of actually writing the code yourself where you would have have incrementally added code to make sure that it was compiling successfully as you went along. Where did you copy the code from? What did that source say about what namespaces you needed to include and what assemblies you needed to reference?
 
The few classes I looked up were in

Microsoft.Hpc.Scheduler.Store​


Following a Microsoft tutorial and skipped out a few steps maybe? They're normally pretty comprehensive and complete
 
The error was because of a missing dll file Interop.CERTENROLLLib after adding it the errors are gone .
 
Back
Top Bottom