VDF error : The requested security protocol is not supported.

VDF error : The requested security protocol is not supported.

Anonymous
Not applicable
2,756 Views
21 Replies
Message 1 of 22

VDF error : The requested security protocol is not supported.

Anonymous
Not applicable
When trying to connect to Vault using the VDF API I get a "NotSupportedException: The requested security protocol is not supported."

I'm not sure how to proceed or what the error means. As far as I can see I don't need to configure any security protocol or do I?
 
Imports VDF = Autodesk.DataManagement.Client.Framework
Imports Autodesk.DataManagement.Client.Framework.Vault.Services
Imports Autodesk.DataManagement.Client.Framework.Vault.Currency.Connections
Imports ACW = Autodesk.Connectivity.WebServices
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        
        Dim results As VDF.Vault.Results.LogInResult = VDF.Vault.Library.ConnectionManager.LogIn("XX.XXX.XX.XX", "Vault", "UserName", "123456", VDF.Vault.Currency.Connections.AuthenticationFlags.Standard, Nothing)
        Dim connection As VDF.Vault.Currency.Connections.Connection = results.Connection
        If Not results.Success Then
            MsgBox("Login error")
            Return
        End If
End Sub
End Class
PS: I'm very sad that there's no Python API for Vault. Just putting it out there.

PS2: there's a bug in the forum software that prevented me from posting. When posting using Firefox the forum returns an error "invalid HTML".  🙄  😫
0 Likes
2,757 Views
21 Replies
Replies (21)
Message 2 of 22

bradeneuropeArthur
Mentor
Mentor

Hi,

 

  • What version and release of Vault are you using?
  • Have you installed all Vault updates?
  • Are all references correct to the right versions?

Regards,

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 22

Anonymous
Not applicable

@bradeneuropeArthur wrote:

Hi,

 

  • What version and release of Vault are you using?
  • Have you installed all Vault updates?
  • Are all references correct to the right versions?

Regards,

 


 

  • What version and release of Vault are you using? --> Autodesk Vault Professional 2019Build 24.3.24.0. 2019.3.2 Update
  • Have you installed all Vault updates? --> As far as I know: yes. See version number and update number.
  • Are all references correct to the right versions? --> Yes, the references are the dll files from C:\Program Files (x86)\Autodesk\Autodesk Vault 2019 SDK\bin\x64\    Solution platform in Visual studio is set to x64 CPU. Visual studio has no trouble finding the references correctly. The code compiles and runs just fine, it's just that I get back the aforementioned exception from the API on the first line of code containing --> VDF.Vault.Library.ConnectionManager.LogIn(
0 Likes
Message 4 of 22

bradeneuropeArthur
Mentor
Mentor

Please take a look in this folder:

C:\Program Files (x86)\Autodesk 

 

This can have more updates from the SDK

 

then you need to deference these...

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 22

Anonymous
Not applicable

@bradeneuropeArthur wrote:

Please take a look in this folder:

C:\Program Files (x86)\Autodesk 

 

This can have more updates from the SDK

 

then you need to deference these...


The only relevant folder I see there is "Autodesk Vault 2019 SDK", this is the folder that contains the dll's in a x86 and an x64 folder. I'm already referencing the dll's from the x64 folder. 

 

The only other folders in C:\Program Files (x86)\Autodesk are: "DM Apps" (sample projects) and "Autodesk Design Review". 

0 Likes
Message 6 of 22

bradeneuropeArthur
Mentor
Mentor

Could you make a screenshot of the reference tab within Visual studio?

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 7 of 22

Anonymous
Not applicable

references.png

0 Likes
Message 8 of 22

bradeneuropeArthur
Mentor
Mentor

The references seem to be OK.

 

What framework version are you on?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 9 of 22

Anonymous
Not applicable

@bradeneuropeArthur wrote:

The references seem to be OK.

 

What framework version are you on?


The newest, freshly downloaded and installed yesterday. 

 

.NET framework 4.8.03761

0 Likes
Message 10 of 22

bradeneuropeArthur
Mentor
Mentor

try 4.6!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 11 of 22

Anonymous
Not applicable

@bradeneuropeArthur wrote:

try 4.6!


I had the target framework set to .NET core 3.1 (which apparently somehow corresponds to .NET framework 4.8, totally confusing). I tried to set the target to .NET core 3.0. Same error. 

 

 

0 Likes
Message 12 of 22

bradeneuropeArthur
Mentor
Mentor

is there any intellisence behind VDF.....

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 13 of 22

Anonymous
Not applicable

@bradeneuropeArthur wrote:

is there any intellisence behind VDF.....


Yeah, Intellisence is working fine, see attachment. intellisense.png

 

I'm pretty sure that the linking/loading of the Autodesk dependencies is going fine. The exception actually comes from the Autodesk lib; I wouldn't get that specific exception (from the DLL files) in case the DLL linking had somehow failed. 

0 Likes
Message 14 of 22

bradeneuropeArthur
Mentor
Mentor

are you copying the libraries locally?

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 15 of 22

Anonymous
Not applicable

@bradeneuropeArthur wrote:

are you copying the libraries locally?

 


No. They are linked to their original location in program files. 

0 Likes
Message 16 of 22

bradeneuropeArthur
Mentor
Mentor

Could you try that?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 17 of 22

Anonymous
Not applicable

Same error... 

 

It seems that the exception is triggered by the .NET runtime (and/or OS) using a different .NET https security protocol than the VDF API wants to use. I've tried setting SecurityProtocolType to TLS1, TLS2 and SSL3 manually which all also didn't work. 

 

If only the broken VDF was open source... I'm giving up on this. This forum is broken in Firefox (--> Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.), VDF is broken with the newest OS and .NET versions. This just isn't worth it...

0 Likes
Message 18 of 22

Anonymous
Not applicable

I tried it. Same error... 

 

It seems that the exception is triggered by the .NET runtime (and/or OS) using a different .NET https security protocol than the VDF API wants to use. I've tried setting SecurityProtocolType to TLS1, TLS2 and SSL3 manually which all also didn't work. 

 

If only the broken VDF was open source... I'm giving up on this. This forum is broken in Firefox (--> Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.), VDF is broken with the newest OS and .NET versions. This just isn't worth it...

0 Likes
Message 19 of 22

Anonymous
Not applicable

Tried it. Doesn't work. I also tried to post other insights, but my post keeps getting deleted after being marked as spam. 

 

 

0 Likes
Message 20 of 22

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Can you upload the project maybe?

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes