Questions tagged [.net-3.5]

The 3.5 version of the .NET Framework, which is based on the 2.0 .NET Framework with extra assemblies (including 3.0). Use for questions specifically related to .NET Framework 3.0. For questions on .NET Framework generally, use the .net tag.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

C# how to acquire OAuth2 Token using WebClient

How to get an OAuth2 access token using WebClient (.NET 3.5)? I have already tried following code, but it fails ("Bad Request" error) using (var client = new WebClient()) { ...
rafastryk's user avatar
-2 votes
1 answer
17 views

Find and Load microsoft.net compact framework 3.5

I have an older application on a computer that blew up and needed to have the operating system rebuilt. The application requires microsoft.net compact framework 3.5. Apparently 3.5 is no longer ...
steve's user avatar
  • 73
0 votes
0 answers
11 views

NET Framework 4.0 breaks Com Interop - vb6 calling c# dll failing when changing target framework from 3.5 to 4.0 or higher

I have a C# custom control DLL that loads pdf in byte[] and render it in vb6 control which hosts my custom C# control. This works without any issue when compiled against .NET framework 3.5 but stops ...
user21914203's user avatar
0 votes
0 answers
68 views

0x80070490 Error when installing .Net 3.5 Framework and .net 2.0 within that

Hello my windows is version 11, I have tried going into Control Panel - Turn Windows Features on/off and when I try to install .net 3.5 from there it wont work the Download page for .net 3.5 https://...
Prashant's user avatar
0 votes
0 answers
120 views

Why is virtual memory usage is so different between .NET Framework and .NET Core

I am upgrading some old project using .NET Frameowrk 3.5 to the latest .NET 7.0, and found the result of a function, which is used to output the memory usage of the current process, is very strange. ...
ZelgiusLiu's user avatar
0 votes
0 answers
9 views

Which method is more reliable in determining whether I can install .NET 3.5 Windows features?

I am trying to determine if I can install .NET 3.5 Windows features on a random server (Windows 2016 onwards). I found online that we can do Get-WindowsCapability -Online -Name NetFx3~~~~ (Source: ...
zeeeeejo's user avatar
0 votes
0 answers
28 views

null file when posting with WebRequest

I need to post a file using WebRequest from an older .NET 3.5 app but the endpoint always got the file null [HttpPost] [Route("/api/app/savefile/")] public async Task<...
mrapi's user avatar
  • 5,867
-2 votes
1 answer
140 views

How to change and return value from within a function

I am given a code block (C#) and want to change and return a new value (e.g., 9999) in the variable gid. However, the new value is not being returned. The original value used in the function call has ...
Lance's user avatar
  • 1
3 votes
0 answers
54 views

Excel VBA Object Not Released as Expected When Using .NET 3.5 Hashtable

When I call the Add method of an instance of a .NET 3.5 System.Collections.Hashtable to add an instance of a VBA class, I cannot subsequently get the Hashtable to release the instance of the VBA class....
mbmast's user avatar
  • 1,010
1 vote
2 answers
144 views

Excel VBA - Getting Automation Error (430) Using StringBuilder Class from .NET 3.5

I have an Excel VBA module that uses Hashtable and SortedList from the .NET 3.5 mscorlib DLL. I'm able to use these classes with no issues. When I attempted to use the StringBuilder class, I ran ...
mbmast's user avatar
  • 1,010
0 votes
0 answers
37 views

How can I resolve conflicts between System.threading.Tasks and Net35.Threading.Tasks?

I am working on an old .net application which has net35 version. I've need to use System.Net.Http but I can't use System.Net.Http as it was introduced after net35. To resolve this, I've installed ...
the_badev's user avatar
-2 votes
1 answer
112 views

How to use UTC to preserve the integrity of time values when the users want the app to present time in their time zone? [duplicate]

Our company has customers in different time-zones, so our app has to store times in a common standard although app users need to see the time using their time zone. Whatever local zone it is when time ...
Jenna Leaf's user avatar
  • 2,325
0 votes
0 answers
155 views

Multiple routes for web API in VB.Net Framework 3.5

I'm trying to consume a simple Web API in .Net Framework 3.5 to get both: all entries and by id. This is my controller: MapController.vb Imports System.Web.Http <RoutePrefix("api/{Controller}&...
Pyrus's user avatar
  • 95
0 votes
0 answers
47 views

WebClient The server committed a protocol violation. Section=ResponseStatusLine

I am running a desktop app in .net 3.5 and I need to connect to a web service. I am getting an Exception "The server committed a protocol violation. Section=ResponseStatusLine" This is my ...
sarsnake's user avatar
  • 26.9k
0 votes
0 answers
46 views

Digital signature namespace gets transplanted from Signature to its children?

I am trying to deserialize a signed XML, by using the XmlSerializer.Deserialize method. Then I am sending the resulting object to a web service. But after deserialization, the namespace defined in ...
MataPa's user avatar
  • 1
0 votes
0 answers
93 views

WPF DateTimePicker Control for .Net 3.5

Im developing an application in Vb.Net 3.5 under WPF.I need to implement the date picker in it.How can i get that control in WPF.How can i implement in XAML. It says that DatetimePicker and Calendar ...
Kristina Tamaro's user avatar
0 votes
0 answers
92 views

RSA encryption is giving different values on different .Net framworks

RSA algorithm is producing different output value on different .NET framework. The encrypted password with .NET 3.5 framework has "==" at end but with .NET 4.6.2 the encrypted password has ...
Saud's user avatar
  • 1
0 votes
1 answer
348 views

HttpWebRequest causes https endpoint to 403 only in .NET 3.5

I'm attempting to call an api using .NET Framework 3.5 I'm trying it with HttpWebRequest but I've not had different results with WebClient The following code works in .NET Framework 4.8, however in ....
Richard Harris's user avatar
0 votes
2 answers
370 views

"Dim client As New RestSharp.RestClient" not working

I have a VB.Net ClassLibrary project in VS 2019 and .Net Framework 3.5. The project has a reference to RestSharp. I then reference my class library project in a Windows Forms Application .NET ...
RichG's user avatar
  • 1
1 vote
1 answer
564 views

How to build .vdproj in Azure DevOps pipeline

I am using windows self hosted agent with VS 2019 build tools installed. But in the build pipeline, I am unable to build ".vdproj" (.net framework 3.5) project. Please let me know whether ...
VKD's user avatar
  • 701
0 votes
1 answer
494 views

how to save multiple image's from image list in data base then slide show them in a picture box in C# windows form application?

i tried to add pictures using openfiledialog into an image list then save it in my Ms Access data base and call it in another form to show them in picture box by slide through them using a timer ...
grafiyas's user avatar
0 votes
0 answers
58 views

c# Is there a function to get Monitor (Primary and Secondary) Scale %? [duplicate]

I have WinForms with TableLayoutPanel with rows divided by %/pixels inside Toolstrips and other stuff. Problem comes if monitor 4K and scale is set higher than 175%, some layouts rows not properly ...
bankeris's user avatar
  • 181
1 vote
0 answers
289 views

How to build .Net 3.5 solution in Azure DevOps

When a DotNet 3.5 solution is build in Azure DevOps with Self hosted Agent having VS 2019 build tools, I am getting the error as below. ##[error]The project file could not be loaded. Root element is ...
VKD's user avatar
  • 701
0 votes
1 answer
365 views

RabbitMQ .net client 3.4.3 compatibility

We have an framework 3.5 app that needs to interact with some RabbitMQ queues RabbitMQ's .net client 3.4.3 does support framework 3.5, however is quite old, and I want to known if this version of the ...
lukroid's user avatar
  • 23
3 votes
1 answer
185 views

How do I replicate this .NET generated key using Python?

I am using the following .NET code to generate a key from a password and salt: static byte[] GenerateKey(string password, string salt, int size) { var saltBytes = Encoding.Unicode.GetBytes(salt); ...
Scott Baker's user avatar
  • 10.1k
3 votes
3 answers
1k views

Why is my Decrypt Method throwing a "Length of the data to decrypt is invalid" Cryptographic Exception

This is a really common exception, but obviously none of the solutions I've found have resolved my issue. I have an Encrypt and a Decrypt method; I encrypt a string and write it to a file, then read ...
Scott Baker's user avatar
  • 10.1k
0 votes
0 answers
899 views

How to generate a Visual Basic .NET client from an OpenAPI definition?

I need to call a REST API from a Visual Basic .NET project (.NET Framework 3.5). They gave me an OpenAPI .yaml file. In the Swagger Editor I can't generate the client for Visual Basic, only for C#. I ...
Giovanni Tardino's user avatar
3 votes
1 answer
2k views

"An existing connection was forcibly closed by the remote host" in .NET 3.5

I'm writing a program for viewing, archiving and restoring SQL-Data. The problem occurs only in restoring and while using target framework .NET 3.5. .NET 4.0 and higher seem to have solved the issue, ...
aaronwe's user avatar
  • 33
0 votes
0 answers
186 views

Consume ASP.NET Core Web API from ASP.NET - that assembly does not allow partially trusted callers

We have an ASP.NET Core 3.1 Web API controller that is called from an ASP.NET web app using .NET 3.5 framework. The API controller is called via a HttpWebRequest and results in an error That assembly ...
wrappingduke's user avatar
1 vote
1 answer
4k views

Framework upgrade from .net 3.5 to .net 4.8

I'm working with one of my clients wherein they are having a few application still written on .net framework 3.5. Though we still have support for .net 3.5, client wishes to upgrade the framework to 4....
Subhajeet Paria's user avatar
0 votes
0 answers
102 views

What is the maximum .NET framework version that can reference .NET 3.5 dlls

I have a winforms application built on .NET Framework 3.5 and I cannot upgrade it any time soon. I also have a webforms website built on .NET 3.5 that uses the ddl files of the winforms aplication. I ...
mvaculisteanu's user avatar
0 votes
1 answer
358 views

How to clear cache of IFrame using c# Code in asp.net

In my asp.net (Runtime Version 3.5) there is a requirement of displaying Pdf in the middle of the page along with other content. So in such case I found the solution. for this I used Iframe . But we ...
Sarthak Mishra's user avatar
0 votes
0 answers
61 views

Using classes form different folder in .NET Framework 3.5

I have an old .NET Framework 3.5 project from someone else that I need to get working again. The project has an old .sln file that I used to open it in Visual Studio 2022. The issue is that it uses ...
Graf123456's user avatar
0 votes
1 answer
103 views

VB.NET Option Compare Text does not work correctly in .NET 3.5

I am working on a legacy Windows Form with VB.NET and I have recently discovered a confusing behavior. There is project A that targets .NET 2.0 with Option Compare Text set at code file. Project A ...
Macro.Kat's user avatar
1 vote
1 answer
120 views

How to troubleshoot window painting issues after migrating WinForms app from .net 3.5 to 4.7.2

We've just migrated our VS2019 dev environments for a large (~700 kloc) legacy Windows Forms application, from .NET 3.5 to .NET 4.7.2, and tripped over a problem with one windows form only, on which ...
ChrisA's user avatar
  • 4,163
0 votes
1 answer
223 views

Visual State Manager in WPF not supported

I am creating an app which needs to use the Visual State Manager, but when I want to use it, I get the following error: Visual State Manager is not supported in a WPF application. I tried to use the ...
MyPaperStudios's user avatar
0 votes
1 answer
206 views

View Windows UpTime dynamically in WPF

I want to get Windows UpTime like the picture below I am using NetFrameWork 3 I use this code to display UpTime for Windows PerformanceCounter upTime = new PerformanceCounter("System", &...
Mahdi Jamal's user avatar
0 votes
0 answers
121 views

How can I abort a thread to ensure the application doesn't get stuck?

Given below is the code that uses a WorkingBlock function. The application uses C# 3.0. The WorkingBlock method code works well except in some circumstances with which the application freezes. ...
Shalashaska's user avatar
0 votes
1 answer
172 views

.Net Xml serialization appending negative sign to 0

I am trying to serialize the object which is having properties of type double value but output xml is having the one of the parameter value as "-0". I am using .Net framework 3.5. Sample ...
Akshay's user avatar
  • 1
0 votes
1 answer
191 views

Catching cancel button click between two synchronous tasks

I have a list of tasks running and would like to show the progress in a (WinForms) form with a Cancel button. I am aware, that there are several async options, but I have two restraints: The tasks ...
Sebastian Werk's user avatar
0 votes
0 answers
128 views

HTTP Error 400.0 - Bad Request When using special character in asp.net 3.5 routing

I have an .net framework 3.5 website in which I routed a path. site.com/mypath/text goes to site.com/webpage/ and the webpage gets the text. This occurs when the text contains asterisk(*) or colon(:) ...
mvaculisteanu's user avatar
0 votes
2 answers
91 views

Working with Irregular nodes/elements in json response from an API

I have a situation while working with a JSON response from an API. To give a background, I am consuming an API from a source using a REST API using 3.5 .net framework. Below is the part of the JSON ...
stacky's user avatar
  • 19
1 vote
1 answer
233 views

How can I sort a list of objects by a certain component in VB?

I am using Visual Studio 2008 with .NET 3.5, and I'm trying to sort a list of objects that stores the children of a certain object. I want to sort the 'lstDocumentChildren' list by its date, as seen ...
Alexander's user avatar
0 votes
0 answers
309 views

Tls 1.2 with .net 3.5 framework issue

We are using .net 3.5 framework and we want to use tls1.2. As I know that tls1.2 is not supported with .net3.5 so for that we have used const System.Security.Authentication.SslProtocols tls12 = (...
yash arora's user avatar
0 votes
1 answer
720 views

How to get response JSON of an API which returns Http Status Code 406 or 400

Postman returns some response JSON with HTTP status code 406 but my code which is written in C# returns the same HTTP status code error message but from Catch Block. My Requirement is The API I am ...
Praveen Kumar's user avatar
0 votes
1 answer
53 views

Visual Studio and msbuild produces .net 4 resources dlls instead of 3.5

If you follow the instructions on Access resx resource files from another project to create translations using resx files, when the project is .net 3.5 it is not working and it seems to ignore ...
Panagiotis Lefas's user avatar
0 votes
0 answers
155 views

Is it possible to get body from System.Web.HttpContext.Current.Response?

Is it possible to get body from System.Web.HttpContext.Current.Response? Content type is text/html. I want to place it into string var for later usage. I can access headers but struggling to get the ...
Damian Gasior's user avatar
0 votes
1 answer
243 views

DotnetFX35 Winforms Embeded IE replacement

I have one very old application with millions loc developed using .NET FX 3.5. The winforms embedded IE 11. But since MS is going to retire IE 11 soon. May I know is there any other browser which I ...
s k's user avatar
  • 4,572
1 vote
0 answers
80 views

File.Delete(x) works where File.Copy(y, x, true) would fail

I was trying to copy an existing file to another local path, where a file with the same file might already exist. So this is was my first option: File.Copy(outputFileFullName, newFileName, true); On ...
batintherain's user avatar
0 votes
0 answers
88 views

Trying to call x86 .Net 3.5 SDK in more recent .Net versions

This may be a long shot... I need to create a simple-ish web app that needs to call an OEM supplied SDK that is 10-15, or more, years old (no updates are possible). The SDK is 32bit and is pegged to ...
7 Reeds's user avatar
  • 2,447

1
2 3 4 5
119