cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

is there a way to use the .NET 4.5 framework with PB.NET (12.5 or 12.6)?

My script:

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12!

The system.dll in the references contains the Tls12 and it is also provided by autoscript.

But if I compile the app I get:

'System.Net.SecurityProtocolType' does not contain a definition for 'Tls12'


Tls12 is new in .NET 4.5. So I think that the compiler uses an older version of the framework.


What can I do?


Thanks.

0 Likes
View Entire Topic
Former Member
0 Likes

Hi Rene.

Is this an a project that was originally created in PB.NET 12.5 and migrated to PB.NET 12.6? PB.NET 12.6 should be able to use .net framework 4.5. But I've seen that when I migrate a project from PB.NET 12.5 to PB.NET 12.6, the referenced are not affected (even Sybase.DataWindow.Wpf remains with version no 1.5.0.0 but for PB.NET 12.6 it should be 3.0.0.0).

Have you checked the references in your project?

Andreas.

Former Member
0 Likes

I've created a new project in 12.6.

Reference seems to be correct. If I look into the assembly the property is available: