For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.
Questions tagged [.net-4.8]
999 questions
0
votes
1 answer
Don't show endpoints in Swashbuckle (Swagger)
I have problem with display endpoints in SwaggerUI.
For example
[ApiVersion("5.0")]
[RoutePrefix("mobile/v{version:apiVersion}/persons")]
public class LessonController : ApiController
{
-------------------------------------
[HttpGet]
…

Алексей Алексеев
- 11
- 3
0
votes
1 answer
System.Threading.Timer does not fire when handler calls a http endpoint
I have a window service which uses System.Threading.Timer to call a endpoint at a specific configured interval. I have say 10 instance timers configured to call the same endpoint at the same interval (say 10 seconds). If the HTTP endpoint takes…

Chennai Coder
- 102
- 5
0
votes
1 answer
An entity object cannot be referenced by multiple instances of IEntityChangeTracker using code-first and EntityFramework 6 ,WFA
When i try to change the data in the database, an exception is thrown. I am new to Entity and don't undentend how to fix it. I use MS SQL Server. using code-first and EntityFramework 6 ,WFA.
Method
private void…

Лиля Бакун
- 3
- 1
0
votes
2 answers
How can I parse an XML Blob and associate data from sibling nodes?
I'd like to parse this XML blob:
Bill Belichick
Josh McDaniels
Unknown
…

Jim G.
- 15,141
- 22
- 103
- 166
0
votes
2 answers
C# MVC 5 - How to create email templates using .cshtml?
In C# MVC 5, is there any built in way to create email templates from .cshtml files?
I'd like to compile the .cshtml based on the model we pass in, thus creating a raw .html string.
It appears the compilation is not callable in C# MVC. We need the…

Kellen Stuart
- 7,775
- 7
- 59
- 82
0
votes
0 answers
Not enough quota is available to process this command on UpdateWindowSettings
Some of my users started to get some crashes on Windows 10.
This is the stack trace of the crash:
Not enough quota is available to process this command.
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget,…

Nicke Manarin
- 3,026
- 4
- 37
- 79
0
votes
2 answers
Passing data between two opened windows
I'm doing my own project manager with some extra options that I have in mind.
I stuck on Project categories (when you create project, you will have to choose it)
I want it to look like that:
When you click (...) button, "Choose a category" window…
0
votes
0 answers
How to effectively implement 1 to many relationship?
I have an EF model to is connected 1 to 1 for many tables but I am having trouble connecting a 1 to many table. Currently using EF6 on .Net 4.8. The error I am recieving is "Multiplicity is not valid in Role '' in relationship 'Login_Users'. Because…

traveldigm
- 3
- 5
0
votes
1 answer
Assembly.LoadFrom is not loading DLL from folder
I built an app that needs access to three DLL's for an optional feature.
Since it's optional, I don't ship those 3 DLL's and let the user select if he wants or not to have it.
But since I'm actually using the DLL in code, I need to reference them…

Nicke Manarin
- 3,026
- 4
- 37
- 79
0
votes
2 answers
FTP Error while accessing a directory on a ftp server over SSL
I have developped a web service in C# .Net 4.5, which connect to a ftp server (with SSL) and list all the files stored in a directory of the ftp server.
The code worked fine last year (beginning of 2019 or end of 2018) but since I tested the code…

Bobson
- 1
- 2
0
votes
1 answer
Pass HttpClient to class library
I have an order management system which sends emails via an external system. The external system is accessed via http calls. The order management has mainly 3 projects: a class library, web api2, and mvc app. In the class library thats where the…

Edgias
- 77
- 3
- 10
0
votes
0 answers
Why SQL Server XML Datatype changes the order of a particular attribute in digital signature block on insertion and retrieval?
The project requires digitally signing the XML document before transmission. Using the example provided by Microsoft( link here), the following code forms part of the function called for digitally signing the XML:
XmlDsigExcC14NTransform canMethod…

Abhishek
- 63
- 2
- 10
0
votes
1 answer
System.Net.Http problem in VS 2017 after upgrade to .NET 4.8
I have a project that was using VS2017 and .NET 4.6.1
I upgraded to .NET 4.8 for no pressing reason expecting it to be a minor upgrade, and everything has broken. The references to System.Net.Http aren't recognised even though the file is actually…

Ben Curthoys
- 741
- 7
- 20
0
votes
1 answer
ASP.Net Cannot set cookie with SameSite=None
I'm using MVC5 on IIS with .NET Framework 4.8.
I have the latest quality rollup installed(1) which is supposed to resolve some issues with samesite cookies.
I create three cookies as follows:
var now = DateTime.Now.ToLongTimeString();
var expiry =…

RikRak
- 898
- 1
- 7
- 21
0
votes
0 answers
Can run .net 4.8 on .net 4
Have a question related to backwards compatibility.
I always thought that the backwards compatibility was in regards to if I compiled something on a lower .net Version, thus not needing to install that prior version if I have a superior version…

Steven Borges
- 401
- 1
- 3
- 16