Hi,
I am running Aspnet Zero v4.0 with Abp 3.5 I am hosting my app on Azure.
I am seeing the entry below many times in my hosted Azure log file:
DEBUG 2018-07-09 08:48:43,729 [17 ] Abp.Auditing.WebClientInfoProvider - System.Net.Sockets.SocketException (0x80004005): No such host is known at System.Net.Dns.GetAddrInfo(String name) at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostAddresses(String hostNameOrAddress) at Abp.Auditing.WebClientInfoProvider.GetClientIpAddress()
However, I do not see this message when running locally.
Hi,
Yes, I can confirm that the database has been migrated successfully.
NormalizedUserName does not exist in the MVC version.
Looks like an issue has now been created to increase the max length of UserName:
<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3502">https://github.com/aspnetboilerplate/as ... ssues/3502</a>
Hi,
AbpUserBase.MaxUserNameLength is a constant. I cannot change this...
Any more thoughts on this please...
Hi,
I already did this. I have had the long UserName working for some time now on a previous version of ABP.
The error I am getting is since updating to v3.5 ABP and comes from Entity Framework (see log text in previous post)
Cheers
Hi,
That got me some of the way there...
I added the following to dBContext..
modelBuilder.Entity<User>().Property(u => u.UserName).HasMaxLength(256);
modelBuilder.Entity<UserAccount>().Property(u => u.UserName).HasMaxLength(256);
I then performed a migration. This succeeded, and User.UserName and UserAccount.UserName are now set at nvarchar(256)
However, attempting to create a user, I get an Internal Server Error, with the following message in the log file:
ERROR 2018-06-07 15:11:48,617 [10 ] loud.EntityFramework.IppexCloudDbContext - There are some validation errors while saving changes in EntityFramework: ERROR 2018-06-07 15:11:48,617 [10 ] loud.EntityFramework.IppexCloudDbContext - - UserName: The field UserName must be a string with a maximum length of 32.
So, something is still holding on to the 32 character limit.
I am using AspNetZero v4 MVC with Abp v3.5
Hi,
I successfully managed to increase the UserName field length based on advice from a previous post, as follows:
public class User : AbpUser<User>
{
...
[StringLength(256)]
public override string UserName { get; set; }
...
}
However, since upgrading to ABP v3.5, I am unable to migrate my database. This seems to be due to the fact that UserAccount.UserLength now has a maximum length of 32 and the migration would cause its contents to truncate.
How can I increase the MaxLength of UserAccount.UserName ? I have tried creating a custom UserAccount class and overriding UserName with the required MaxLength, but this does not work.
Hi,
I have a requirement to add additional claims to ClaimsIdentity when the user logs in. I have worked out how to do this, and all is fine.
The problem I have is when the user enters the system via a persisted cookie. I cannot seem to find anywhere in the code where I can add the additional claims.
I do not want to store these claims within the cookie, as they could potentially change over time. I would simply like to add them every time the user creates a new session (via login or persisted cookie).
Many thanks.
On it's way...
Thank you
Hi,
I am attempting to use Azure Functions to run reports out of process.
After much time spent, I have given up on achieving this using the Application layer, as there is a know issue with Azure Functions that requires a hard coded dependency on v9.0.1 of Newtonsoft.Json (Abp requires >= v11.0.2). I have found no way to resolve the resulting conflict.
So, I have set up my function to access the database directly, and all is working so far.
The problem I am having is with authorization. When calling the Azure Function from the Aspnet Zero web app, the Auth Cookie is sent across. However, I do not know how to decrypt this to access the session information.
Any advice here would be much appreciated.
If there is anybody out there who has got Azure Functions to work against the Abp framework, again any advice would be much appreciated.
Many thanks.