on ‎2015 Feb 27 7:48 AM
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.
Request clarification before answering.
Also, I forgot to ask which version of the sdk is installed on you pc... But you probably allready checked that...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right. But it may work if you import the appropriate references.
Take a look at the references... Select System.NET
After look at the properties for the selected references.
For me it always shows that it references .net framework 4.0.
But you can change that by manually removing the references and add them using Browse.
Don't know if it will work... But you can try... Attention... This should be done to all references, otherwise it may not work.
Andreas.
The windows SDK 7 should have framework 4. I wonder if you need to install Windows SDK 8.0 to go with framework 4.5...
https://msdn.microsoft.com/en-us/vstudio/dn250998.aspx
(By the way for me it doesn't work in a windows 8.1 machine with visual studio 2013 and frameworks up to 4.5.2, but the windows sdk I installed on that machine is windows 7 SDK).
Andreas.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.