Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

Nativ Systemcall statvfs with .netCore

Hey,ive got a Problem with the Interop of .netCore. I want to call the statvfs Systemcall on my Linux machines with .netCore. Im doing this with the Example fromMicrosoft. The Example with ftw is...

View Article


How to connect Sql server database connectivity in .net core with angular...

I am first time working on  .Net core, I don't understand how to connect to databse here and access data from sql server according to my queries.

View Article


how to increase the response time to consult a webservice

Hello, thank you for your help, I told you that I am trying to increase the response time as I did in c # modifying the webconfig, now as I am with aspnet core I modify the appsetting.json. How can I...

View Article

broken JSON after Serialization using EF in ASP Core2

I have those two main classes, I am trying to read the record and its related one but I am getting a broken JSON, The only way I got it to work is by using Automapper. but why is this...

View Article

Why can't I use [FromBody] in HttpGet?

this is my controller route config, [Produces("application/json")] [Route("/api/[controller]/[action]")] public class PatientsRegistrationController : Controller {.........my HttpGet method looks like...

View Article


How to seed a user identity properly in asp core2?

I have this seeding class, I believe that using CreateAsync is not proper since the method is not async the user manager does not seed the record. so I tried to seed manually using hashed password but...

View Article

Help please..connect or access the connection string in startup...

Please help me solve this issue...How to I access my Asp.Net Core Startup file so for database connection from my Service Contract Class Library?public partial class WebApp_Entity : DbContext    {...

View Article

Reading configuration file .netcore C#

Hello,I have few configuration files (these were stored in SSO earlier, we have exported these into XML files and like to read from there). Enterprise Library Configuration was used to read this...

View Article


Make a pdf and print a file

Hello everyoneI'm really new to .NET Core and we have to make a webapplication for some company. We have an Excel-template which we can fill in with some data, then we have to create a PDF from this...

View Article


Can't create project in VisualCode

I have VisualStudio Code, downloaded netcore sdk 3 preview (i also have 2.0.2 installed) . I have created a directory on my local machine to start launching a project  Opened up the Terminal inside...

View Article

Build failed when trying to addmigration and update database

There all I am new to asp.net core. I have built a simple project on asp.net core 2.  <ItemGroup>    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />...

View Article

Regarding Implementing localization in ASP.NET Core

see the code i have read this article https://dotnetthoughts.net/implementing-localization-in-aspnet-core/ but do not understand many things.public void Configure(IApplicationBuilder app) { var...

View Article

Why can't I use "Include" in extended primary key only in IdentityUser?

I extended only my IdentityUser class as below, Now I am trying to use include for my query to get all users and their roles but I keep receiving this error,The property 'RoleId' is not a navigation...

View Article


Get selected radio button from radio button list

Hello.I am working on a simple polling system.I have 2 tables :Polls:Id,TitlePollOptions:Id, PollId, Title, VoteCountAnd a ViewModel :public Poll Poll { get; set; } public List<PollOption>...

View Article

How to avoid nullreference error when trying to add data to viewmodel?

Trying to learn programming with Razor pages in asp.net core 2. The page should provide an registration form for events. The database lookup based on the event id in the querystring works, however I...

View Article


Get parameter like object, ASP.NET Core

I have a controller like this :[HttpPatch("{documentId}")]public IActionResult UpdateDocument(Guid departmentId, Guid documentId, DocumentForUpdateDto docFromRequest) { // Do somethings .... }This is...

View Article

View Components not perfect

In previous versions of mvc I could do a loop in a view and call n html.action methods each rendering a similar form that by ajax post to its action method and refresh. (just that form). Another...

View Article


Use RDLC report viewer control in .net core(1.0) MVC project

How i can use asp.net report viewer control in my .Net Core MVC project?  And Is there any way to use web form in .Net core(MVC) project? Waiting for positive response from experts. Thank you

View Article

IdentityServer 4, Configuration Issue on OnTokenValidated Event

Hi Experts,I got some problems in OpenIdConnectEvents in startup.cs that located in AspNetCore MVC Clinet project.here is the code that i found in some example of identity server. OnTokenValidated =...

View Article

Convert .Net Framework 4.6.2 project to .Net core 2.0 project

I Have a solution which contains the bunch of class libraries which is developed by .Net framework 4.6.2. I have to convert those class libraries into .Net core. Is there any best and fastest way to...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>