847 questions
0
votes
0
answers
201
views
How to Resolve IWebHostEnvironment in .NET Core 8.0? [duplicate]
I'm working on migrating a project from ASP.NET Core 5.0 to .NET Core 8.0. In my project,
using Test_Site_1.Application.Interfaces.Contexts;
using Test_Site_1.Common.Dto;
using Test_Site_1.Domain....
-1
votes
1
answer
1k
views
I need to set allowcredentials for a wildcard origin in .net core 3.0
options.AddPolicy("AllowAll",
builder => builder.WithOrigins("*")
.AllowAnyHeader()
....
0
votes
1
answer
196
views
View is not found when migrating from AspNet.Core 2.2 to 3.0
I have an Asp.Net Core 2.2 MVC application. I am trying to migrate to 3.0, using this documentation:
https://learn.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-6.0&tabs=...
-1
votes
1
answer
94
views
Get varied columns from in Entity Framework 3.0
I have an ASP.NET Core MVC solution.
I tried to get dynamic object and uncertainly column numbers and types from a stored procedure.
I prepared the stored procedure, but I couldn't find a solution ...
4
votes
3
answers
7k
views
Get the local path of a file in a virtual directory
I have an ASP.NET Core 3.0 MVC application with images in it. E.g.,
http://foo.bar/images/image.jpg
Now, the folder images is a virtual directory which is mapped to a network drive, such as \\192.168....
0
votes
1
answer
741
views
Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=3.0.0.0
I am migrating my .NET standard 2.0 class library application to .NET core 3.0 where I want to start web API server from class library, Where class library application is getting launched with ...
0
votes
0
answers
295
views
Site refused to connect on IIS Publish
I am publishing an ASP.Net Core 3.0 application in IIS. My publish profile looks like
This is how my web.config file is in publish folder
<?xml version="1.0" encoding="utf-8"?&...
2
votes
1
answer
589
views
ASP.NET Core 3.0 MVC update model with list objects - add object
I have the following classes:
public class Invoice
{
[key]
public Guid InvoiceID { get; set; }
public string Name { get; set; }
public List<Invoice_item> Invoice_items { ...
1
vote
1
answer
821
views
Azure app service websocket buffer buffer size limits?
I have run into a problem where my websocket connection is functioning as expected locally, but not when deployed to azure app service. (.NET Core 3.0)
I am able to receive messages of any size ...
0
votes
1
answer
646
views
How to install root certificate in aspnet:3.0 base image for windows container
I am hosting two windows containers from a Windows 2019 servers and both are running in https. When my Web URL container tried to make a call to the API container. It didn't work and when I got ...
2
votes
0
answers
229
views
Consuming ws security soap service in .Net Core 3 api
I am consuming a SOAP service in .NET Core 3.0 API. This service uses WS-Security standard for authentication. Will the below code work with just the username and password provided to the client ...
0
votes
1
answer
303
views
Map two identical models, nested with automapper
I did some research but I couldn't find exactly what I wanted.
I have an endless menu. I have a MenuDTO and a MenuViewModel that I use for this menu. I had no problem matching between model and DTO, ...
4
votes
1
answer
690
views
Return View as String in .NET Core 3.0
I am working on generating HTML to send to a PDF generator and discovered this this question on Stackoverflow. It points to Paris Polyzos and his article. Upon implementing the code in .Net Core 3.0,...
0
votes
1
answer
214
views
Forgot password not working for .NET Core 3.x and React scaffold
I have a project in .NET Core 3.1 and the frontend with React.
It was generated using the scaffold instructions from this link.
When I try to trigger forgot password action, it shows a success page ...
0
votes
2
answers
701
views
Uploaded file have no content when uploaded from Remote IIS Server
I am trying to upload files to Google Drive using ASP.NET Core 3.0, here is my code to upload the file.
GData.File fileMetadata = new GData.File()
{
Id = null,
Name = Path.GetFileName(path),
...
0
votes
0
answers
391
views
Azure Event Hub only sending device twin change notifications for SOME devices in IoT Hub
I have an Azure IoT hub containing a bunch of devices and I have linked the IoT Hub to an Azure Event Hub to subscribe for device twin changes. I then am developing a web application with a Microsoft....
0
votes
0
answers
224
views
How we can ignore writing file contents in RequestResponseLoggingMiddleware AspNetcore3
Is this correct way when I don't want to log the file data using the given condition, that the contentType is application/json or any other way is there to skip writing the file contents?
if (context....
0
votes
1
answer
444
views
ASP.Net Core 3 + React Web App - Seeing the resource busy error
Created a ASP.Net Core 3 web app with React using Visual Studio 2019. When I try to run the application in visual studio, I am seeing the following error.
I tried running Visual Studio as ...
1
vote
1
answer
906
views
How to get windows usernaame in ASP.NET Core 3.0
I'm trying to get windows user name in ASP.NET Core 3.0
I have found here many questions on this topic, but I cannot find any answer I could use.
My app uses login-password authentication, but lot of ...
0
votes
1
answer
909
views
How to add custom form client-side validation in razor page and remove Chrome built-in validation
I'm developing a web application using NET Core 3 razor pages, my Login.cshtml page looks as follows:
<div class="columns is-centered">
<div class="column is-6">
...
1
vote
1
answer
2k
views
How to get access to Role of CurrentUser in angular UI ? using Abp v2.9
Currently I am using ABP version 2.9 (DonetCore, Angular, Mongo) project template.
I need to have a logic to redirect user to different path based on user ROLE.
What I see from the source [here], ...
4
votes
1
answer
3k
views
Can you import a package targeting full framework into an ASP.NET Core 3+ application?
My understanding is that, starting with ASP.NET Core 3.0, .NET Framework is an unsupported target framework, and thus you can only run on the .NET Core runtime.
If this is the case, what NuGet ...
0
votes
1
answer
2k
views
How to call Session variables in another project in the Same Solution Asp .NET Core 3
I am running multiple projects in my system, as shown below:
Startup project is Project 1
BLL Project (in this project I am setting the session)
Common Project (in this project only I want to call the ...
0
votes
1
answer
4k
views
calling signalr methods in javascript
I am trying to implement a segment in my .net core 3 web application that shows the number of online users in real-time. So the counter gets updated automatically without page refresh anytime a user ...
1
vote
2
answers
453
views
API POST method to save a file to another system drive is throwing a 500 error
I have a .NetCore 3 API controller that can take a POST request.
However, I want it to save the file on a different drive.
F:\GameFiles\Media\UserScreens\Uploads
I am setting the path in my method ...