aspnetboilerplate

What could cause an error related to npm not being able to find a file? No contents in my node_modules subfolder. Why is that?

蓝咒 提交于 2019-12-18 19:07:14
问题 I'm trying to run npm install in the angular project folder I got from ASP.NET Boilerplate and I'm getting an error that is "related to npm not being able to find a file." D:\Dev\AspNetBoilerplate\MyProject\3.5.0\angular>npm install npm WARN deprecated @types/moment@2.13.0: This is a stub types definition for Moment (https://github.com/moment/moment). Moment provides its own type definitions, so you don't need @types/moment installed! npm WARN codelyzer@3.2.2 requires a peer of @angular

HTTP Error 500.30 - ANCM In-Process Start Failure

橙三吉。 提交于 2019-12-17 10:49:09
问题 I was experimenting with a new feature that comes with .net core sdk 2.2 that is supposedly meant to improve performance by around 400%. Impressive so I tried it out on my ABP ( ASP.NET Boilerplate ) project Template asp.net core mvc 4.0.2.0 I added the following to my web.mv.cproj file <PropertyGroup> <TargetFramework>netcoreapp2.2</TargetFramework> <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.App" />

How to pass username after login redirect?

邮差的信 提交于 2019-12-14 04:20:06
问题 I have 2 applications: one does the login ( app1 ) and another one does other stuff that I want ( app2 ). The app1 is built in ASP.NET Boilerplate and what I want to do is after login with this app, I want to redirect to the app2 . Until now everything is fine, I just used the returnUrl parameter to redirect to the app2 . The problem is that I want to pass to app2 some of the login information like username . It's not supposed to change anything in app1 , so how can I do that? Both app1 and

How to add value to the default exception response in ABP?

北城以北 提交于 2019-12-14 03:09:42
问题 I want to add an ID (GUID) to the exception and: Log it Return it to the client json response Where should I generate this log ID value and add it to the exception message that is logged. And where to change the following default response? { "targetUrl": null, "result": null, "success": false, "error": { "message": "An internal error occurred during your request!", "details": "..." }, "unAuthorizedRequest": false } I am using .NET Core version. 回答1: If you want to disable displaying the

Aspnet Boilerplate GetValidTwoFactorProvidersAsync returns an empty list

为君一笑 提交于 2019-12-13 20:29:26
问题 I am using Aspnet Boilerplate to manage a multi-tenant system. I am currently attempting to turn on 2-factor authentication, which is baked into the boilerplate. I have logged into the host and turned on 2FA (because I understand that it can't be on in the tenanats unless it's on in the host first). Once I do this, I can now see the settings to turn 2FA on in each tenant (which I have done). My problem is that, while the host users are indeed asked for a code as expected, no tenant users ever

Asp.Net Boilerplate… How to update a record in Existing tables in Database using Async methods?

社会主义新天地 提交于 2019-12-13 10:07:27
问题 I am working with ASP.Net Boilerplate . I want to send isActive=true to the AbpUser table when a user is confirmed by email. How can I access the database and do a query on that? As you know Boilerplate doesn't provide entity classes so I am working with extensions on those classes. I don't know how queries on those classes access the database. Any idea? 回答1: I wrote a sample code to show you how you can update a field of user with IRepository. public interface IUserAppService:

How does LDAP work in ASP.NET Boilerplate? [closed]

亡梦爱人 提交于 2019-12-13 09:55:56
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year . I don't see anything in the documentation on how to: connect to LDAP and set controls for user access based on AD Group. 回答1: LDAP/Active Directory LdapAuthenticationSource is an implementation of external authentication to make users login with their LDAP (active directory) user name and password.

Trying to obtain the Windows Identity of the Logged on User in AccountController

风流意气都作罢 提交于 2019-12-13 08:28:09
问题 using framework asp.net core - on .net core MVC jquery In the account controller, I am attempting to obtain the user currently logged in to that machine on an intranet network. ie the windows authenticated user. If I try WindowsIdentity.GetCurrent() is just returns the identity of the application pool. not what I need. I have anonymous turned off and windows auth turned on in both the launchsettings.json and the IIS settings. I understand that the identity middleware for abp framework I'm

AspNet boilerplate - AspNetZero - dependency injection

匆匆过客 提交于 2019-12-13 05:06:29
问题 I have the following classes and I am trying to implement Dependency Injection into calling a WCF Service in ASP.NET Zero. Interface IUserProxyService implements IApplicationService with CreateUser method. Class UserProxyService implments IUserProxyService with construction injection of IUserRepository and has a CreateUser Method. Interface IUserRepository specifies to implement CreateUser method. Class UserRespository implments IUserRepository with public constructor without parmaters

Disable Wrapping of Controller Results

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:38:36
问题 I am currently using v3.2.5 of Abp.AspNetCore. I am trying to integrate an Alpha package of Microsoft.AspNetCore.OData into the project which is so far looking ok. However when i try and query the metadata controller http://localhost:51078/odata/v1/$metadata the result is wrapped. Now this was an issue for the ODataControllers as well, but i could simply add the [DontWrapResult] attribute. I dont have direct access to the MetadataController so i am unable to add the attribute. Is there anyway