Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "kalidarscope"

Created a project on v9.1.0 using ASP.Net Core 3.1 & Angular.

Application both frontend & backend running on the windows machine correctly but not showing login page. Showing an Internal Error. Backend swagger running on 22742 port also login using Authorize option in swagger. From network found that http://localhost:4200/AbpUserConfiguration/GetAll returning error having "message":"An internal error occurred during your request!"

http://localhost:4200/AbpUserConfiguration/GetAll

{"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"An internal error occurred during your request!","details":null,"validationErrors":null},"unAuthorizedRequest":false,"__abp":true}

Please anyone help me to fix the issue.Thanks in advance

I have a requirement on uploading excel files and save it in the folder or cloud storage.

Question

We have successfully deployed the ASP.NET Core and Angular project in Azure. Everything working fine. If i refresh the page or change the url, it shows following error:

The requested content does not exist.

    HttpStatusCode: 404
    ErrorCode: WebContentNotFound
    RequestId : 5714d6ad-301e-0006-0e4f-e9ecc1000000
    TimeStamp : 2019-04-02T12:27:49.8443130Z

Also find the screenshot:

I have to access the url without login, but it is redirected to login page. I wolud like to stop the redirection to login the page for my scenario. Could you please assist me

We have the CPQ application and ASP.NET Zero application. We have to login from CPQ to ASP.NET zero application without password authentication.

Notes: In our CPQ application we have the option to login into CPQ with password authentication. They are maintaining some keys in their portal, we can use that to encrypt the username from our application. After we encrpt we could pass the username, domain and encrypted value in url. It will not ask any authentication to login. It will login into CPQ application without password authentication.

Same way it could possible to login into ASP.NET zero application without password authentication. Is it possible?

We need to change current session value

 if (string.IsNullOrEmpty(user.EnvironmentId) == false)
            {
                claim.Identities.First().AddClaim(new Claim("Envid", ""));
            }

i tried to

ASAPSessions.Envid="new session"

I would like to add new session value after i login into application. I have got the following error.

System.NullReferenceException: Object reference not set to an instance of an object.
   at ASAP.ASAPEnvHub.ASAPEnvHubAppService.sessionenvidAsync(String value) in D:\PROJECT\ASAP_11022019\src\ASAP.Application\ASAPEnvHub\ASAPEnvHubAppService.cs:line 286
   at lambda_method(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()

The code what i have tried to add the value in session.

 public async Task<GetASAPEnvHubForEditOutput> sessionenvidAsync(string value)
        {
           
              
                string val = ASAPSessions.Envid;
                var user = await _userManager.FindByIdAsync(AbpSession.UserId.ToString());
                var claim = await _principalFactory.CreateAsync(user);              
                if (string.IsNullOrEmpty(user.OrganizationId) == false)
                {
                    claim.Identities.First().AddClaim(new Claim("Envid", value));
                    SingleTon.Instance.AddValues("Envid", value);
                }
                var envHub = await _envHubRepository.FirstOrDefaultAsync(s => s.ENV_ID == value);
                return ObjectMapper.Map<GetASAPEnvHubForEditOutput>(envHub);
        
           
           
        }

Could you please assit me to solve this.

As my application need to login from another application automatically.

suppose, I select 03-21-2019 it saved as 03-20-2019.

This is the code I am using to save in Typescript.

    input.creatioN_TIME = moment(this.CreateDate);
    input.expirY_DATE = moment(this.ExpiryDate);
    
      this._organizationService.createOrUpdateASAPOrganizationsHub(input)
        .pipe(finalize(() => this.saving = false))
        .subscribe(() => {
            this.notify.info(this.l('SavedSuccessfully'));
            this.OrganizationSave.emit(this.organization);
            this._router.navigate(['app/admin/ASAPOrganizationHub']);
        });
Showing 11 to 20 of 41 entries