cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using .NET 4.5 features

Former Member
0 Likes
1,926

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.

View Entire Topic
Former Member
0 Likes

Hi René;

FYI ... (for both PB Classic and PB.Net):

PB Version         .Net Version Supported

========         =================

PB 12.x                 3.5

PB 12.5.x              4.0

PB 12.6.x              4.5

Note1: Now saying that, a lower migrated PB version application will still have the old .Net assignments in it. So for example a PB 12.x built application migrated to PB 12.6 will have .Net 3.5 assembly references.

Note2: While PB 12.6.x is .Net 4.5 complaint, I am not sure how v4.5 aware it really is.

Regards ...Chris

Former Member
0 Likes

Hi Chris.

For me this is a bug... I created a new solution in PB.NET 12.6 as Rene mentioned, and references pointed to .net 4.0. Also migrating from PB.NET 12.5 to PB.NET 12.6 doesn't make any change to the references as you state (I mentioned that in my previous post).

But, about your previous message, I can say that from PB.NET 12 to PB.NET 12.5 the Migration updates the .net Framework to v. 4.0!

Using 12.6 4011, 12.5.2 5703 and 12.1 7217 builds.

Andreas.

Former Member
0 Likes

Hi Andreas;

1) Thank you for confirming the .Net migration in PB 12.5. I assume that you mean PB.Net vs PB Classic (where the old .Net references will still be there).

2) Yes, I concur ... PB 12.6 Classic or .Net should migrate your references to .Net 4.5. That certainly seems like a "bug" (issue) to me as well.

Like I said earlier .. I think PB 12.6 is .Net 4.5 compliant but not really 100% aware.  

Have a great weekend!

Regards ... Chris

Former Member
0 Likes

Yes I was talking for PB.NET.

Andreas.

Former Member
0 Likes

Wouldn't it be nice if you could specify this...

Former Member
0 Likes

Hi Mark;

  Yes, that would seem to be a basic feature requirement IMHO for both PB Classic and PB.Net. I know that people had requested it and it was mentioned in the beta testing for 12.0 and 12.5.0 but (as usual) Sybase/SAP seemed to ignore this. 

Regards ... Chris