Skip to main content

All Questions

0 votes
0 answers
51 views

Abp vNext ApiDescriptionFinder.DeserializeOptions.PropertyNamingPolicy = null

[11:53:19 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "对不起,在处理您的请求期间产生了一个服务器内部错误!!", "details": null, "data": ...
Octo's user avatar
  • 1
0 votes
2 answers
86 views

Adding File Extension Based on ContentType in Filename from .NET Core

I need to save the file with its uploaded file extension. For example, if the file name is "Test_upload" I must append the file extension to that name. Therefore, I only have the content ...
Manoj Prasanna's user avatar
0 votes
0 answers
215 views

Cookie pass between .Net API and Blazor server

I am writing a test app to pass a cookie between a Web API and a Blazor Server App. I have tried multiple ways to get the cookie to come back to the application but it never is in the cookie section ...
runemonster's user avatar
0 votes
0 answers
37 views

Set dynamic column name for same parameter of entity for different tables

I have a class Auditable which has four fields CreatedBy, CreatedDate... I have overridden the SaveChanges method to automatically populate the above data whenever an Entity is saved to the database ...
smilu's user avatar
  • 879
0 votes
0 answers
370 views

How to create a Excel file using OfficeOpenXML in ASP.NET Core 7 Web API and open that file in Excel 2016

I have created an Excel file using OfficeOpenXML, the file was successfully created, but when I try to open it in Excel 2016, some of the data shows as a black screen, but it is opening properly in ...
ravi's user avatar
  • 17
3 votes
1 answer
657 views

alternative for deprecated Microsoft.AspNetCore.Authentication.Cookies to configure the services

I am trying to configure the services in my azureb2c project, I am using Microsoft.AspNetCore.Authentication.Cookies package however the package is deprecated, any alternative for the deprecated ...
Sandeep Reddy's user avatar
0 votes
1 answer
236 views

QueryTypeBuilder<> in .net core 6

My Current Project was in old version now I Upgrade the framework to .net core 6. there were some package as well which i was upgraded: Microsoft.EntityframeworkCore (6.0.25) - After upgrade ...
nittin aggarwal's user avatar
1 vote
1 answer
1k views

How to Implement Polymorphic Request Bodies in ASP.NET Core Web API with Swagger UI?

I am developing an ASP.NET Core Web API where I need to allow clients to choose between multiple derived types when sending a PUT request. I have set up polymorphism in my code using a base class and ...
DZziMD's user avatar
  • 27
1 vote
2 answers
377 views

How to read json body, before it's converted into C# controller class in ASP.NET Core WebAPI?

Having this simple endpoint: [HttpPost] public async Task<IActionResult> CreateUser([FromBody] UserInput userInput) { if (userInput == null) return BadRequest(); var userOutput = await ...
Adam Wojnar's user avatar
0 votes
1 answer
70 views

How do users give me permission to access their Gmail inbox?

How can I make it possible on my website for users can give me read access to their Gmail inbox? And can I access his emails using Google Apis?
ali shamekhi's user avatar
0 votes
1 answer
206 views

How do I get access to the Controller from ExceptionFilterAttribute

I am converting a project from a Framework 4.7.2 into a Net (Core) 6. The framework used a ExceptionFilterAttribute to call a method on the controller that caused the exception. Im just trying to port ...
I Bowyer's user avatar
  • 803
0 votes
0 answers
170 views

Unable to get environment variable in .Net Core in Hosted environment

Below my code working fine in development environment. But, when same code hosted in server, its not working correctly. Also, i got created environment variable in server name "...
Rajasekar Gunasekaran's user avatar
0 votes
1 answer
1k views

ASP.NET Core can't append cookies

I'm trying to append a cookie on one of my controllers, when it has been called. But the cookie ends up in a property called "NonValidated" and isn't set on the client. I don't use any ...
ollkar's user avatar
  • 3
0 votes
1 answer
324 views

How to deploy asp.net core web api in linux backend server nginx

Hello I tried so many thing but I unable to deploy .net core web api in linux nginx server side any sample i am facing some issue. I tried to created service in linux /etc/systemctl/system/... side ...
Abbas J's user avatar
  • 37
0 votes
0 answers
280 views

restsharp latest version v110.2.0 filename encoding issue

I'm using the latest stable version of restsharp (v110.2.0) to upload zip file to external link with name "Präsentation_Export" but after successful upload got "Pr�sentation_Export"...
Karlin Joe's user avatar

15 30 50 per page
1
2 3 4 5
12