aspnetboilerplate

Create app service call executing multiple times

孤街浪徒 提交于 2020-01-04 05:27:08
问题 I'm building a SAAS app on the ASPNETZERO MVC JQuery .Net core 2.0 template . This issue is a follow-up to my earlier issue posted here. So I did add the method in my app service to NOT allow the duplicate record in my "companyAddress" entity table. Before the create method executes the insertAsync, I call a private method to check for that given record in my table. Here is the app service code. public async Task CreateCompanyAddress(CreateCompanyAddressInput input) { //Check for duplicate

ASP.NET Boilerplate MVC 5.x template fails to start

≯℡__Kan透↙ 提交于 2020-01-03 04:24:30
问题 After downloading ASP.NET MVC 5.x template, I update the connection string, restore NuGet packages and then try to run Update-Database command in Package Manager Console, but I consistently get the following error: Could not load file or assembly 'Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I was able to solve

DTO mapping exception with entity in ABP

醉酒当歌 提交于 2019-12-31 03:43:08
问题 I got an error about "mapping" when I try to insert an entity. The insert is made by the Create method of a CrudAppService. My entity inherits from FullAuditedEntity but the related DTO specifies only a few properties. How do I handle this situation? Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map

How to work wirth WCF services in ASP.Net Boilerplate?

半腔热情 提交于 2019-12-25 09:01:14
问题 I want to do CRUD by web-services(WCF), but i am using boilerplate framework , my question is how to work with web-services(WCF) in boilerplate?? any helpful link or tutorial?? 回答1: Create a new project in your solution with WCF application, add wcf service in this new project, use entity framework and then write services you need, then in YourProject.Web project add service reference and get the service you need. Create object of the service in your controller and get or post data according

Trying to set up a Dapper-based Data Access Layer. ABP.Dapper documentation is confusing and incomplete

纵饮孤独 提交于 2019-12-25 02:15:57
问题 I'm trying to set up a simple DAL that will return a List of typed objects. Pretty standard data repository stuff. I downloaded all of ABP's code from GitHub, built the DLLs for Abp.Dapper and Abp.EntityFrameworkCore and started following the instructions on this page: https://aspnetboilerplate.com/Pages/Documents/Dapper-Integration But I can't even get past step one of this. This code doesn't compile because it doesn't know what SampleApplicationModule is. But there's no guidance in these

Can't compile the project. Missing so many files

时光怂恿深爱的人放手 提交于 2019-12-25 02:12:48
问题 I just download a ASP.NET mvc 5 + angularjs template version. But i can't build the project. I have updated all VS, Nuget, .Net core, and all to newest version but still no luck. I also try to reinstall all packages but errors are still exists. Any suggestion ? 回答1: navigate to the solution folder in command prompt and run dotnet restore 回答2: I decide to go for .NET Core version, since it is newest tech. And i can compile it normally, by running "dotnet restore" on the solution folder. 回答3:

AspNetZero - .NET Core 2.0 MVC Version - Error on adding new controller

断了今生、忘了曾经 提交于 2019-12-25 01:47:20
问题 After about 6 months, I returned to work on my AspNetZero solution based on .NET Core 2.0. I have the original downloaded version and the modified version as separate GIT repositories. In both versions/repositories when I try to add a new MVC controller, I keep getting the below error message. On my PC I have all of the .NET Core SDKs installed from 1.0 right up to 2.1.302. I have other projects that I am working on, where I'm using .NET Core 2.1. I even created a brand new .NET Core 2.0

How to redirect to login page if AbpAuthorize is failed in asp.net mvc?

删除回忆录丶 提交于 2019-12-24 19:23:29
问题 I have modified the asp.net boilerplate mvc template css, but somehow, I might mess up with the code. Now if the user is not logged in/not authorized, the error pops out, click ok, instead of redirecting to the login page, it redirects to the default $urlRouterProvider in the app.js. Here is part of the app config: app.config([ '$stateProvider', '$urlRouterProvider', '$locationProvider', '$qProvider', function ($stateProvider, $urlRouterProvider, $locationProvider, $qProvider) {

Aspnetboilerplate: Configure login path for redirect on core mvc template

不打扰是莪最后的温柔 提交于 2019-12-24 19:12:43
问题 Sorry if this is straightforward, but I'm having a real block with this one. I'm trying to move all the standard views and controllers from aspnetboilerplate's Module Zero (Core + MVC + jQuery) into a new area (Admin) and want to make sure the redirect for login on unauthorized view goes to /Admin/Login as opposed to /Account/Login, which is the default. Any help really appreciated. Dale Update Here is the ConfigureServices method: public IServiceProvider ConfigureServices(IServiceCollection

What happened to Web.Tests Project in startup project?

你说的曾经没有我的故事 提交于 2019-12-24 19:00:07
问题 I was trying to follow the documentation for using boilerplate startup project. and in you extracted project the tests directory only has [ProjectName].Tests while the documentation shows that there should be two projects in the test directory the second being [ProjectName].Web.Tests I am very interested in using the integration tests that appear to be available, however the template (apparently 4.1.0) does not have the Web.Test project. I attempted to download the Web.Tests project from the