Anyone upgrade to VS2017 when doing publish get Microsoft.Bcl.Build error? Build is OK, when publish the site with WebDeploy Packge it throw out below errors:
Could not locate E:*\MyCompany.ProjectName.Web.Core\packages.config. Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file.
Currently, no idea how to fix it, even add reference to Microsoft.Bcl.Build in this project.
Is there a guide to demonstrate how to use ExternalAuthenticate in token authentication? As we know, aspnet zero develop document provide a description how to use the token based authentication, is there also a guide tell us how to use external authenticate method in the same controller?
Is there a way that could define the localization string for enumerable variants? Such as below enumerable class:
/// <summary>
/// Represents an evaluated result item status enumeration
/// </summary>
public enum FeedbackStatus
{
/// <summary>
/// Active
/// </summary>
Active = 10,
/// <summary>
/// Resolved
/// </summary>
Resolved = 20,
/// <summary>
/// Won't fix
/// </summary>
WillNotFix = 30,
/// <summary>
/// Closed
/// </summary>
Closed = 40
}
Then they will be used as a dropdownlist, but how to get the localization string when it is rendering.
After upgrade to ABP 1.4.2, the Impersonate Sing In is failed, on the login page if selected or input the indicated tenant name, it can't been remembered and after login it doesn't go to the tenant admin panel. In the Host admin panel if do the impersonate action, it will throw up below exceptions:
An unhandled exception occurred while processing the request.
ApplicationException: Current tenant is different than given tenant. AbpSession.TenantId: , given tenantId: 4
Viewtance.SRP.Authorization.Impersonation.ImpersonationManager.CheckCurrentTenant(Nullable<int> tenantId) in ImpersonationManager.cs, line 100
Stack Query Cookies Headers
ApplicationException: Current tenant is different than given tenant. AbpSession.TenantId: , given tenantId: 4
Viewtance.SRP.Authorization.Impersonation.ImpersonationManager.CheckCurrentTenant(Nullable<int> tenantId) in ImpersonationManager.cs
+
}
Viewtance.SRP.Authorization.Impersonation.ImpersonationManager+<GetImpersonatedUserAndIdentity>d__7.MoveNext() in ImpersonationManager.cs
+
CheckCurrentTenant(cacheItem.TargetTenantId);
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Viewtance.SRP.Web.Controllers.AccountController+<ImpersonateSignIn>d__44.MoveNext() in AccountController.cs
+
var result = await _impersonationManager.GetImpersonatedUserAndIdentity(tokenId, AuthConfigurer.AuthenticationScheme);
I am using Postman to demonstrate how the webapi works for non browser client. When running the GET methods it works fine, but when running the POST methods, it failed. it returns input is null, below is the return message:
{
"result": null,
"targetUrl": null,
"success": false,
"error": {
"code": 0,
"message": "Your request is not valid!",
"details": "The following errors were detected during validation.\r\n - input is null!\r\n",
"validationErrors": [
{
"message": "input is null!",
"members": [
"input"
]
}
]
},
"unAuthorizedRequest": false,
"__abp": true
}
I am using ABP 1.4.2 version, furthermore in debug mode in VS, the POST method cannot hit the break point, it seems the request been blocked by some filters, COSR? or DTO validation?
The IRepository interface defined some CURD method, such as Insert, Update, Delete......, all of them only accept a single entity parameter, why not provide the method which could accept a collection of entity?
So that, if we want to execute a bulk action, such as, update or delete, then we get a collection of the entity, via for each iterate the item and update it, at the last execute the _appRepository.Update(IList<entity> entities) do a database action.
Why not provide these extensions? Is the Unit Of Work attribute applied on a application service default done the work? So, the method of an application service is a transaction? after the method executed, a transaction is executing then all database action done together?
A sample code I did:
var results = from r in _resultRepository.GetAllList()
.Where(r => r.EvaluationFormId == evaluationFormId)
select r;
foreach (var item in results)
{
_resultService.ChangeStatus(item);
}
but I want to do like below:
var results = from r in _resultRepository.GetAllList()
.Where(r => r.EvaluationFormId == evaluationFormId)
select r;
foreach (var item in results)
{
item.State = ResultStatus.Completed;
}
_resultService.Update(results);
As we know, aspnetzero asp.net core mvc editon already integrated Facebook, Google, Microsoft Account external authentication.
Is there a guide line that I can create an OAuth authentication mechanism to authenticate the AbpUser for other third-party app or website?
I know aspnetzero already provide the token based authentication, if I flow up the TokenAuthenticate method return an access-token out, does that works fine?
The WebSiteRootAddress not showing up for me in the host settings, I remember did some settings before, but after upgrade to v2.2.0 (aspnet core with host/mvc porject), I cannot see the setting page.
My scenarios is delete a record in application service, the method defined in Application Service is 'DeleteItem', before do a delete action to entity, I need to return some messages to UI, such as,
1 It cannot be deleted, because something 2 It be deleted, the deleted identifier is xxx, the item name is xxx.
I knew there is a "UserFriendlyException" could throw exception to UI, but it will caused the network with 500 internal server error status.
Is there ABP provided a common message dto to transfer message?
I am using aspnetzero version 2.2.0, the chat message feature which provided by SignalR, it works fine when debugging in visual studio on local machine. But after deployed the site to server, it returns 500 internal server error via below request URL:http://www.mysite.com/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22abpcommonhub%22%7D%2C%7B%22name%22%3A%22chathub%22%7D%5D&_=1483523711860
I am using visual studio site publish deployed the site, is there something missed to deploy or missed some configurations?