Hello! in your demo "demo.aspnetzero.com/Account/Login" I Login and everything is ok, then I go to roles etc, etc (I save everything in fiddler) Now, I logout, but if I go to previous sessions saved by fiddler and resend them, its accepted and shouldn't happen (because I already logged out). Am I missing something? thank you!
forgot to let you know: I changed the sql server collation to "SQL_Latin1_General_CP1_CI_AI" and now everything is ok
<a class="postlink" href="https://msdn.microsoft.com/en-us/library/ms179254.aspx">https://msdn.microsoft.com/en-us/library/ms179254.aspx</a>
thank you
Hi! sure
// GET: FileUploader
public async virtual Task<JsonResult> Index()
{
string output;
try
{
int teste = Request.Files.Count;
CreateUpdateImovelByPortfolioInput dto = new CreateUpdateImovelByPortfolioInput();
dto.PortfolioId = Convert.ToInt16(Request.Params.Get("portfolioId"));
using (ZipArchive archive = ZipFile.OpenRead(@"C:\sd.zip"))
{
foreach (ZipArchiveEntry entry in archive.Entries)
{
if (entry.FullName.EndsWith(".pdf", StringComparison.OrdinalIgnoreCase))
{
using (MemoryStream ms = new MemoryStream())
{
entry.Open().CopyTo(ms);
//etc
}
}
}
}
output= await _service.Create(dto);
}
catch(Exception o)
{
throw new UserFriendlyException(o.ToString());
}
return Json(new { Data = output });
}
I'm having the same problem, is this resolved?
tried your tip but didn't work.
exec sp_executesql N'INSERT [dbo].[Imovel]([Id], [TenantId], [PortfolioId], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId])
VALUES (@0, @1, @2, @3, NULL, NULL, NULL, NULL, @4, @5)
',N'@0 nvarchar(128),@1 int,@2 int,@3 bit,@4 datetime2(7),@5 bigint',@0=N'6',@1=1,@2=2,@3=0,@4='2016-01-14 20:34:49.4314465',@5=2
I copied this from sql profiler and tried to execute it in sql server and it takes ages....sometimes works sometimes doesn't. any ideia?
Hello, I'm facing a problem. I'm trying to insert a bunch of entities into database but I can't, and EF doesn't raise any exception neither ABP. ( I checked the logs and nothing). Im uploading a pdf (in a controller) who calls an app service, reads the pdf and starts inserting in the database (please advise me on better aproaches or best practices). One strange thing is in SQL PROFILER, i see the INSERT statements but the decimals values have a comma instead of a dot
806,@5=162170,@6=0,@7=0,@8=N'149996',@9=N'2004/01/29 ',@10=N'148235 ',@11='2005-02-18 00:00:00',@12=0,@13=79780,@14=600,@15=142,05000000000001,@16=1,1232
but it should be
806,@5=162170,@6=0,@7=0,@8=N'149996',@9=N'2004/01/29 ',@10=N'148235 ',@11='2005-02-18 00:00:00',@12=0,@13=79780,@14=600,@15=**142.05000000000001**,@16=**1.1232**
my culture is portuguese, where a comma is the decimal sepparator (I changed the Application_BeginRequest in global.asax the thread to portuguese and nothing changed) anyway, an exception should be raised, right? thank you
I'm really sorry, the problem was getting the permissions for the user because i wasn't filtering by isgranted = true. thank very much for your help, and thank you for the excellent work
I disabled AbpDataFilters.MayHaveTenant because I'm trying to centralize things in just one tenant.
SetGrantedPermissionsAsync its not prohibiting other permissions, i dont know why! That's why I tried to use ResetAllPermissionsAsync, to reset all user permissions
I can't find the update edition in the edition manager, what am I missing?
Hello, first of all, thank you so much for your great work on abp. I'm having some trouble while updating permissions on users, this is my code:
public async Task UpdateUserPermissions(UpdateUserPermissionsInput input)
{
CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant);
User user = await UserManager.GetUserByIdAsync(input.id);
await UserManager.ResetAllPermissionsAsync(user); // this line doesn't reset the permissions but if i used it "sepparatedlly" it works
//
List<Permission> list = PermissionManager.GetAllPermissions().ToList();
list = list.Where(x => input.Permissions.Contains(x.Name)).ToList();
await UserManager.SetGrantedPermissionsAsync(user, list);
}
maybe my problem has something to do with the async/await, i believe I don't plenty understand it, maybe some of you can point me good litterature on the subject?
again, thank you !