Questions tagged [asp.net-boilerplate]

ASP.NET Boilerplate is a starting point for new modern web applications using best practices and most popular tools. It's aimed to be a solid model, a general-purpose application framework and a project template.

Template

ASP.NET Boilerplate easily creates startup template for your project. It includes most used framework and libraries by default. Also allows you to choice Single-Page (Angularjs or Durandaljs) or Multi-Page architecture, EntityFramework or NHibernate as ORM.

Architecture

ASP.NET Boilerplate implements NLayer architecture (Domain, Application, Infrastructure and Presentation Layers) and Domain Driven Design (Entities, Repositories, Domain/Application Services, DTO's...). Also implements and provides a good infrastructure to implement best practices such as Dependency Injection.

Framework

ASP.NET Boilerplate is an application framework built on latest ASP.NET MVC & Web API technologies. It makes easy to use dependency injection, logging, validation, exception handling, localization and so on. It makes these not only itself but also using most popular framework and libraries.

More information at www.aspnetboilerplate.com

202 questions
9
votes
2 answers

Can't create component as it has dependencies to be satisfied

I am learning DDD, n-Tier, Repositoriess and the likes. Someone pointed me to ASP.NET Boilerplate and I decided to start a test project using that. I have never dealt with dependency injection so this is all new to me, but the DI dependency it uses…
Lord Relix
  • 882
  • 2
  • 19
  • 49
6
votes
2 answers

Set and Get session variable in ASP.NET Boilerplate .NET Core v3

I'm trying to set variable value (selected option from a select component in angular) in some component to use it in another component and I don't want to use window.sessionStorage() by javascript I want to use session storage in the .NET core but…
6
votes
4 answers

The instance of entity type 'Product' cannot be tracked because another instance with the same key value is already being tracked

I made a test with code below to update the Product: var existing = await _productRepository.FirstOrDefaultAsync(c => c.Id == input.Id); if (existing == null) throw new UserFriendlyException(L("ProductNotExist")); var updatedEntity =…
6
votes
1 answer

Asp.net MVC boilerplate dependency injection not working

I'm playing with the Asp.Net MVC 6 boilerplate project. I'm trying to configure the dependency injection for one of my services. It seems like the built in IoC container is ignoring my binding. Startup.cs public void…
5
votes
1 answer

ASP.NET Boilerplate token expiration

I'm using ASP.NET Boilerplate. I have an application in Angular (external to ABP) that I would like to consume my API. For that, I get an access token via /api/TokenAuth/Authenticate, and then I use the token in the calls to my API. The problem is…
4
votes
3 answers

ASP NET Boilerplate > Generating C# swagger client using swagger codegen tool (nswag) not working

I tried generating c# code for and API I created with ASP Net Boilerplate, but the response is not deserializing correctly. Upon investigation, it seems the json response is wrapped using a class called "AjaxResponse"; however, the swagger.json…
Matt
  • 43
  • 3
3
votes
0 answers

Upload progress Aspnet Boilerplate & Angular 7

How can I track the upload progress using angular 7 and asp.net boilerplate? I see that using HttpRequest I can use the option "reportProgress: true" const req = new HttpRequest('POST', url, formData, { reportProgress: true …
Testador
  • 181
  • 1
  • 1
  • 7
3
votes
2 answers

ASP.NET Boilerplate: Constraining user Input DTO property value to specific set of values

I've recently started using ASP.NET Boilerplate as a starting point for a project I'm working on - Asp.NET Core Web Api + Angular, and I'm having trouble finding some information regarding something that seems to me like a common use issue. I'll try…
spico
  • 31
  • 1
3
votes
1 answer

Check user roles from Application Service

i'm implementing Application Service that sends statistical data to home page (dashboard application page). Based on User's Role (the service needs authentication) i would extract/aggregate data from database using WhereIf() based on is role In…
Saro
  • 131
  • 1
  • 7
3
votes
3 answers

Asp.Net Boilerplate,, How to Get current Login User?

I want to get the user data which is currently logged in,, ?? I have to send current user ID to a table in database How to do this??
MMG
  • 111
  • 1
  • 11
3
votes
2 answers

cant access webapi in aspnetboilerplate error 500 message An error has occurred

here is my module in aspBoilerpLate in Application Layer [DependsOn(typeof(TransitCoreModule), typeof(AbpAutoMapperModule))] public class TransitApplicationModule : AbpModule { public override void Initialize() { …
Arash
  • 2,639
  • 4
  • 25
  • 43
3
votes
2 answers

Use SignalR as Broadcaster for EventBus Events

I recently started a new project with the AspBoilerplate (Abp) and to use SignalR as some kind of broadcasting mechanism to tell the connected clients if some records in the databse changed or were added or removed. If i use the SignalR Hub as a…
BoeseB
  • 635
  • 4
  • 16
3
votes
1 answer

Uploading files using angualrjs and abp boilerplate with webapi

I am using ABP (ASP.NET Boilerplate) Web API and angularjs to build a SinglePageApplication. I already got it working to call the server side methods via angular and the abp framework. It is easy to just send JSON-data but I have no idea how to send…
2
votes
1 answer

How to implement Multiple Notifiers with ASP.NET Boilerplate?

I'm using ASP.NET Boilerplate (with .NET Core). I'm trying to implement notification system as mentioned in official doc under Multiple Notifiers, but I encountered: System.NullReferenceException: 'Object reference not set to an instance of an…
3202User
  • 371
  • 4
  • 19
2
votes
1 answer

How to add meta tag in index.html dynamically with data in angular?

I want to share some content in facebook with title, image and description. For that I need to add meta tag dynamically in index.html. I tried every possible aspects but it's not working. The description, image are not showing after sharing in…
Jishan
  • 97
  • 1
  • 3
  • 15
1
2 3
13 14