Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "guillaumej"

I want to use my own PasswordHasher, but this line:

var verificationResult = new PasswordHasher().VerifyHashedPassword(user.Password, plainPassword);

is always creating and using the default identity hasher

Is there any reason you can't use UserManager.PasswordHasher?

(it would be nice also if we could overload loginasync withotu having to rewrite everything in ABPUserManager, but I'm not sure I could be done without exposing too much)

Question

I have exactly this same error : Exception Details: System.InvalidOperationException: Timeouts are not supported on this stream. #1426

My case is an application Service having a stream Parameter System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) Abp.Runtime.Validation.Interception.MethodInvocationValidator.ValidateObjectRecursively(Object validatingObject) Abp.Runtime.Validation.Interception.MethodInvocationValidator.ValidateMethodParameter(ParameterInfo parameterInfo, Object parameterValue) Abp.Runtime.Validation.Interception.MethodInvocationValidator.Validate() Abp.Runtime.Validation.Interception.ValidationInterceptor.Intercept(IInvocation invocation) Castle.DynamicProxy.AbstractInvocation.Proceed() Castle.Proxies.ProduitServiceProxy.ImportProducts(Stream imports) Lako.Tests.ServicesLako.ProduitsTest.ImportProducts() ProduitsTest.cs: line: 38

as you can see, it's during an unit test on an Application service.

Thanks !

Hello,

I created a project startup called Toto.

I need a second web project, to use as backoffice. (The goal is having every projects in the same solution)

I copied the created Toto.Web to Toto.WebAdmin, renamed namespaces, and right now I'm working in a solution containing only Toto.WebAdmin, and the Core/Application/EntityFramework projects. I also removed the app.UseOAuthBearerAuthentication(AccountController.OAuthBearerOptions); line in startup.cs

It compiles, but when I runs it, I got an error in global.asa/application start : base.Application_Start(sender, e);

It can't load the file or assembly Toto.WebApi :

Abp.Modules.AbpModule.FindDependedModuleTypes(Type moduleType) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModule.cs:ligne 90 Abp.Modules.AbpModuleManager.FillDependedModules(Type module, ICollection1 allModules) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 148 Abp.Modules.AbpModuleManager.AddMissingDependedModules(ICollection1 allModules) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 138 Abp.Modules.AbpModuleManager.LoadAll() dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 55 Abp.Modules.AbpModuleManager.InitializeModules() dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 33 Abp.AbpBootstrapper.Initialize() dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\AbpBootstrapper.cs:ligne 61 à Abp.Web.AbpWebApplication.Application_Start(Object sender, EventArgs e) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web\Web\AbpWebApplication.cs:ligne 35

It seems you need to reference the WebApi project in every web project. Is it normal ?

Hello,

I'm using the Dynamic Web Api, and checking it using SwaggerUI.

I have one working service, and two not working : error code 500 : "{ "message": "An error has occurred." }"

My problem is I don't know how to get more information

  • the ABP log is not showing anything anything related EDITED : The exception handler is working, it's just it's not an unhandled exception - of course !

To be clear, I don't want the fix to my error (i'm sure it's something stupid), but I'm very interested in accessing the real error message, rather than "an error has occured".

I'm a bit concerned are how much redundancy there is between some DTOs and their entities . For example, a CustomerEntity could be

public class Customer: Entity
{
[Required]
     public string Name {get;set;}

public int CategoryId {get;set;}

public virtual Category Category {get;set;}
}

and its input DTO

public class Customer: IInputDTO
{
public int Id {get;set} // this could be aproblem

[Required]
     public string Name {get;set;}

public int CategoryId {get;set;}
}

I'm especially concerned about having to maintain twosets of identical annotations.

So, I'm wondering about creating an abstract customer

public abstract Abstractcustomer:Entity
{
[Required]
     public string Name {get;set;}

public int CategoryId {get;set;}
}

And having entities and (relevant) DTOs inherited from it. Is there any problem with this idea ?

Hello,

I'd like to use the Dynamic Web API Layer iwith Basic authentication, so that it can be called from anywhere.

Can Iuse this? (of course, afeter <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/OWIN">http://www.aspnetboilerplate.com/Pages/Documents/OWIN</a> ).

I was wondering if somebody has already done it ?

As soon as I set

Configuration.MultiTenancy.IsEnabled = false;

I can't log anymore, using the admin account and the default password

I'm just using a basic, just created - project (I just changed the default password, but it work when multitenancy is enabled)

Question

Is it possible to use Elmah ?

I assume it should be possible to use AbpHandledExceptionData to keep the ABP error way and manually log in Elmah (I 'm interested in accessing the Elmah page and its exception display), but I was not able to go very far.

thanks,

Showing 1 to 8 of 8 entries