Change to AbpSession.UserId.Value
You can check Logs.txt for full stack trace.
What's the error?
Despite being a premium member, I'm asking for support on StackOverflow.
Let me try to mediate.
That's an implementation request using Aspnetboilerplate framework, not a support request nor is it specific to Asp.Net Zero. Note that the team has been helping you with implementation requests and will continue to do so, out of their pure goodwill. Keep in mind though, every hour spent is one hour less development time making everyone's license an even greater bargain.
That said, the questions on Stack Overflow end up being answered by the Asp.Net Zero team anyway. I also help when I can. Here's what the different platforms are for*:
I mean the current user that builds and executes the application.
Are you using ABP v3.2.5? It should be fixed in this issue: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2695
How about the user that runs the site?
What do you mean?
(Link to previous topic for context: #4271@85f1c120-58c4-45d8-ace2-b82df474fb89)
System.ArgumentException: Unable to obtain public key for StrongNameKeyPair.
You need full access for one of these:
Well, how do you want to use it?
var account = new BankAccount();
// Insert and SaveChanges
var user = account.CreatorUser;