I suddenly get this error "Could not load file or assembly 'msvcp120.dll' or one of its dependencies. The module was expected to contain an assembly manifest." at base.Application_Start(sender, e);
Any help ?
Ok i got more detail....
I am trying to use a HTML to PDF dll (<a class="postlink" href="http://www.nrecosite.com/pdf_generator_net.aspx">http://www.nrecosite.com/pdf_generator_net.aspx</a>), which run wkhtmltopdf execute file. And it auto install 2 files "msvcp120.dll" and another one into Web/Bin; which seems that the ABP loader can't load the DLL correctly. If i remove both DLL, the system run fine.
Any suggestion ?
Can you provide the requested namespace ?
Done !! ... thx a lot u save my life.
After i add
AbpBootstrapper.IocManager.RegisterIfNot<IAssemblyFinder, CurrentDomainAssemblyFinder>();
in Global.ascx. Seem that i get this error every time i restart my server on all my controller.
No parameterless constructor defined for this object.
I have to re-compile whole solution again and it run again.
Any suggestion ?
Yes, i did.
It happen to all controller i try to load. But now i remove the DLL and use different SDK (html2pdf) and i remove the additional code and everything run normal again.
I try to create a new user with no Tenant in an AppService using this code :
//Create user
var user = new User
{
Name = input.Name.Trim(),
Surname = input.Name.Trim(),
EmailAddress = input.Email.Trim(),
IsActive = true,
TenantId = 1
};
user.UserName = input.Code;
user.Password = new PasswordHasher().HashPassword(input.Password);
user.Roles = new List<UserRole>();
foreach (var agentRole in _roleManager.Roles.Where(r => r.Name == StaticRoleNames.Host.Agent).ToList())
{
user.Roles.Add(new UserRole { RoleId = agentRole.Id });
}
_userManager.Create(user);
I also setup a new role called 'Agent' with Tenant = 1. There is no error but the user has not been created.
Any suggestion ?
Ok i found the error. The email is duplicated...!!! But it should throw an exception..
I have try several method but not seem to work. Please help.
Beside SQL command timeout, do i need to config ajax call timeout also ? i have a long query which might take 3 - 5 mins to finish.
Please suggest.