980 questions
0
votes
2
answers
140
views
How to map OData to correct endpoint in .NET 8.0 OData - Wrong Endpoint Called
We have an ASP.NET Core Web API which is running on .NET Core 3.1 which needs to be updated to .NET 8.0.
During the upgrade I noticed that a URI which maps correctly to one controller endpoint in .NET ...
0
votes
0
answers
150
views
Kid token issue with upgrade from .NET Core 3.1 to .NET 8
Recently upgraded a project from .NET Core 3.1 to .NET 8, and the way we generate bearer tokens - particularly validate them - is failing.
Here is the code that previously worked:
var appSettings = ...
0
votes
1
answer
460
views
Dockerfile upgrade from .NET Core 3.1 to .NET 8 which includes SQL Anywhere 17
I'm in the process of upgrading my API project to .NET 8, but I'm having issues including SQL Anywhere 17 drivers, which is an upgrade from SQL Anywhere 17 in my image. In .NET Core 3.1, it works fine,...
0
votes
1
answer
72
views
Return messaging with Pulsar
I am currently modifying a program written in C# (.net core 3.1) that originally communicated with TIBCO to now use Pulsar (2.10) since TIBCO is EOL.
With TIBCO, the API has mechanism for reply ...
0
votes
2
answers
654
views
how to run a pre-configured command when new terminal is created in vs code for only opened folder
Actually the problem I'm having right now is same as Process terminated. Couldn't find a valid ICU package installed on the system in Asp.Net Core 3 - Ubuntu.
To solve this, I need to run export ...
1
vote
2
answers
1k
views
The collection type 'System.Collections.Generic.Dictionary`2[System.Guid,System.String]' is not supported. in .net core 3.1
I have project .net core 2.2.
in 2.2 my controller's return type is List<Dictionary<Guid, string>>.
When I upgrade my project to 3.1 it returns the error message.
System....
0
votes
0
answers
50
views
Identity Server 4 ASP.NET Core 3.1 MVC unable to render JavaScript
I have an Identity Server 4 with an ASP.NET Core 3.1 MVC project and would like to add an external script into the _Layout.cshtml file. The JS file is being ran, however it is not working as expected. ...
0
votes
0
answers
82
views
How to force Chromium download dialog without file being ready
I want to send text file to user while the data is being processed. The user is being notified that the file will start downloading within few minutes but as we know user knows better and after about ...
0
votes
1
answer
604
views
Trouble adding a Web Service to .NET Core project
I have a .NET Core 3.1 project, to which I need to add a web service. I can add it regularly as a service reference, however it does not work, returns "There was no endpoint listening at "...
0
votes
1
answer
122
views
Net Core 3.1 access directories on another server
I am trying to create some code where I can navigate some directories on another server.
To do this I am trying to pass in the server name to DirectoryInfo class. Thus, my code is:
string serverPath = ...
0
votes
1
answer
350
views
Decryption of encrypted string shortens the string in .net7
I implemented methods for symmetric encryption and decryption of a string in .net core 3.1. Now I'm migrating a project from .net core 3.1 to .net 7. Encryption works fine, but when I decrypt the ...
0
votes
3
answers
105
views
I'm confused with the Task.Run(async ()=>await SomeMethodAsync()) and Task.Run(()=>SomeMethodAsync)
It is a bit difficult for me to understand the following asynchronous usage. I have tested them locally and found that the actual result of both of them is the same, but I do not know in which ...
1
vote
1
answer
106
views
Routes behaving weird after update from 3.1 to 6
I have updated an ASP.NET Core 3.1 MVC application to .NET 6, and now the routing is causing many "weird" problems.
This used to work:
<form asp-route="Resumes.Sections.SetTitle"...
0
votes
1
answer
158
views
WSO2: attempting to test a REST method, but it is returning a '404 Not Found' error
I am using WSO2 API Manager to publish my WebApi Gateway, which is connected to my REST services. However, when attempting to test my GET service, it returns a 404 Not Found error. My Gateway is built ...
0
votes
0
answers
1k
views
I install download and install ASP.NET Core 3.1 application SDK, but when i run dotnet --list-sdks I only get 3.0, 6.0 and 7.0
I'm trying to run a Dot Net solution, and I get an NETSDK1045 error saying I need Net Core 3.1.
I download an install Net Core 3.1 SDK, but when I check for installed SDK versions I see Net Core 3.0. ...
0
votes
1
answer
312
views
Pass a QueryString as is in ASP.NET Core 3.1 MVC
There is a method to pass the entire query string to another page using the a tag in .NET Core 3.1?
I tried this:
<a asp-action="VerifiedAll" asp-route="@Context.Request.QueryString....
1
vote
2
answers
319
views
_dateData is null inside an awaited asynch Task
I am stepping through a .NET Core 3.1 service and the code is blowing up with a null exception on the following line:
DateTime maxOwnerValidDate = DateTime.UtcNow;
The exception is:
System....
0
votes
0
answers
43
views
Can someone help me "find a process" in App Console .NET Core 3.1 project in order to run it on Visual Studio?
I have a very annoying problem that I haven't been able to solve for days. I was following some YouTube video lectures on C# .NET Core 3.1 and I was planning to create a new project on Visual Studio ...
2
votes
2
answers
2k
views
Unit tests no longer runnable after upgrading from netcoreapp3.1 to net6.0
I have a solution containing 2 projects, 1st is an asp application built on netcoreapp3.1, 2nd is the unit tests for that which are also built on netcoreapp3.1
I've updated the projects to use net6.0 ...
0
votes
2
answers
206
views
Reading the installation date of the C# OS
With the C# Core 3.1 WinForms application, the first installation date of the operating system cannot be read through regedit. It gives different results than the date given by "SystemInfo" ...
0
votes
1
answer
249
views
Timeout wrapper for non-async method behaves inconsistently when large(ish) quantities are used in a loop
I am using a third-party library that is non-async but can also either take longer than desired or occasionally completely block indefinitely (until cleared externally).
Represented for testing with ...
1
vote
1
answer
1k
views
Upgrade my Azure Function from .net Core 3.1 to .net Core 7.0. Error "'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstraction
I have an Azure Function which run on .net core 3.1, but when i change the .net version from 3.1 to 7 i got this error:-
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft....
1
vote
1
answer
2k
views
Could not load type Microsoft.EntityFrameworkCore.NpgsqlDbContextOptionsExtensions from assembly Npgsql.EntityFrameworkCore.PostgreSQL
I have 2 EF Core projects A and B
Project A has .net6.0 target and corresponding packages
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.11" />
<...
1
vote
0
answers
268
views
How to prevent "Path manipulation" issues in C#, .net core For below statment getting error
Fority Scan reported "Path Manipulation" security issues in following methods
File.Exist()
File.Create()
File.Delete()
File.OpenRead()
File.OpenWrite()
should i ignore the scan report or ...
0
votes
1
answer
213
views
firebase repository in .net core 3.1 does not work on the server when i deploy it, and works well locally
i want to send commend in Firestore using a API .net core 3.1, and i am working using clean architecture. and an CQRS pattern.
like this:
namespace SmartRestaurant.Infrastructure.Services
{
public ...