Base solution for your next web application

Activities of "admin@SYNTAQ"

ASPNETZERO 11.2 ASPNET Core MVC

We are seeing a very slow Authenticate method on the TokenAuthController when calling the CreateJwtClaims function from the Authenticate method. The method does complete successfully but can take up to 60 seconds to complete. Captcha is not enabled

        var accessToken = CreateAccessToken(await CreateJwtClaims(loginResult.Identity, loginResult.User,
            refreshTokenKey: refreshToken.key));

The line of code that takes a long time is in the CreateJwtClaims function

        await _userManager.AddTokenValidityKeyAsync(
            user,
            tokenValidityKey,
            expirationDate
        );

.Net Core, MVC Jquery, 11.2

Hi,

Email Sender has stopped sending emails. we have confirmed the account is correct and receive no errors back from the SendTestEmail function. It does not work in dev, test or Prod environments. If we add conventioanl .net code to send the email message then the email does get sent. You can see the sample working email code in the second code block.

Is there any configuration that can disable the email sender accidently? Can you suggest any reason the _emailsender my stop working? We have been using it with no issues previously. We have triple checked the account details on both configurations. There are no apparent changes we can identify between it working and not working

    // DOES NOT SEND EMAIL MESSAGE ////////////////////////////////////////////////////////////////////

    public async Task SendTestEmail(SendTestEmailInput input)
    {
        try
        {
            await _emailSender.SendAsync(
                input.EmailAddress,
                L("TestEmail_Subject"),
                L("TestEmail_Body")
            );
        }
        catch (Exception e)
        {
            throw new UserFriendlyException("An error was encountered while sending an email. " + e.Message, e);
        }
    }  


        // THIS DOES SEND THE EMAIL ////////////////////////////////////////////////////////////////////
        public async Task SendTestEmail(SendTestEmailInput input)
        {
            try
            {
                MailMessage message = new MailMessage();
                SmtpClient smtp = new SmtpClient();
                message.From = new MailAddress("xxxxxxxxxxxxx");
                message.To.Add(new MailAddress("xxxxxxxxxxxxx"));

                message.Subject = "Test";
                message.IsBodyHtml = true; //to make message body as html  
                message.Body = "Hello World";
 
                MailMessage mail = new MailMessage
                {
                    IsBodyHtml = true
                };
                
                smtp.Port = 25;
                smtp.Host = "in-v3.mailjet.com"; //for gmail host  
                smtp.EnableSsl = true;
                smtp.UseDefaultCredentials = false;
                smtp.Credentials = new NetworkCredential("xxxxxxxxxxxxxx", "xxxxxxxxxxxxxx");

                smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
                smtp.Send(message);

            }
            catch (Exception e)
            {
                throw new UserFriendlyException("An error was encountered while sending an email. " + e.Message, e);
            }
        }

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 11.2
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .net core

Hi,

We have noticed that the account controller normaliseurl function is stripping out our return url if the user is logged in. This appears to be a change between 8.8 and 11.2. This is causing an issue for us as any returnurl on login does not work if the user is alreay loggedin. This scenario happens for our users when they click on an email and directed to a browser where they are already logged in.

We have removed the following code as it is causing a significiant production issue. But we would like to know if there is an impace somewhere else in theh system we should be aware off.

if (AbpSession.UserId.HasValue) { return defaultValueBuilder(); }

`
private string NormalizeReturnUrl(string returnUrl, Func

        if (returnUrl.IsNullOrEmpty())
        {
            return defaultValueBuilder();
        }

		if (AbpSession.UserId.HasValue)
		{
			return defaultValueBuilder();
		}

		if (Url.IsLocalUrl(returnUrl) || _webUrlService.GetRedirectAllowedExternalWebSites().Any(returnUrl.Contains))
        {
            return returnUrl;
        }

        return defaultValueBuilder();
    }` 

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 11.2
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .net Core

Hi,

Getting a 500 error on this ajax call in Production not in Dev. Any thoughts? Rest of page loads normally

"NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://PRODURL/api/services/app/Session/GetCurrentLoginInformations'."

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 11.2
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .net Core

HI,

We are getting some strange behaviour. Every couple of days the error below will randomly throw. Restarting the server will clear the issue and occasionally it will clear on its own. We have not found a way to reproduce it on demand. There are no errors or unusual activity in in the audit table or log

Hi Team,

Hopefully you can help.

Description of the issue

We have been experiencing an issue where our application keeps randomly switching the language for only some of our entities into German, this is despite the fact that the German language is disabled at Host it still impacts both Host and all our Tenant accounts.

We have checked the server resources and we are well below any of our thresholds. We have also checked the Audit log and there is nothing that we can see there that points to this random behaviour.

In most instances the problem does resolve itself, usually 30/60 minutes or we can run a server restart and the language is restored.

As you can see from the screenshot, German is only being applied to two entities.

  • What is your product version?

Current version is 11.2, however we have experienced this same issue on 8.8, which was the last version we upgraded from.

  • What is your product type (Angular or MVC)?

MVC

  • What is product framework type (.net framework or .net core)?

.net core.

If issue is about UI

  • Which theme are you using?

Host and ALL tenants are using teh Default Theme.

  • What are the theme settings?

Re-Opening this one again as an email was recieved saying the 2 previous support issues for the same issue had been responded to.** But we have no email and no response to the support ticketes in question.**

https://support.aspnetzero.com/QA/Questions/10683/Login-redirected-back-to-Login-page-when-hosted-on-Azure-Linux-based-wepapp https://support.aspnetzero.com/QA/Questions/10596/Login-redirected-back-to-Login-page-when-hosted-on-Azure-Linux-based-wepapp

**Please respond to [email protected] **

Have emailed login URL and details to [email protected] as requested by #10596.

Prerequisites Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

What is your product version? 8.8 What is your product type (Angular or MVC)? MVC What is product framework type (.net framework or .net core)? .Net Core 3.1 After atempting logging in the user is directed back to the login page with no error message (or error in audit log)

Please NOTE We have two instances of identical code base. One is deployed to an Azure hosted windows based web app the second to an Azure hosted Windows based web app. The windows based web app logs on normally, the linux based web app **does not ** logon (The login screen shows and the swagger UI seems to function as expected)

NOTE recieved an email saying that an answer had been provided. However cannot see answer.

Opening this one again as it seems to have been answered incorrectly

Have emailed login URL and details to [email protected] as requested by #10596.

Prerequisites Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

What is your product version? 8.8 What is your product type (Angular or MVC)? MVC What is product framework type (.net framework or .net core)? .Net Core 3.1 After atempting logging in the user is directed back to the login page with no error message (or error in audit log)

Please NOTE We have two instances of identical code base. One is deployed to an Azure hosted windows based web app the second to an Azure hosted Windows based web app. The windows based web app logs on normally, the linux based web app **does not ** logon (The login screen shows and the swagger UI seems to function as expected)

NOTE recieved an email saying that an answer had been provided. However cannot see answer.

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 8.8
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .Net Core 3.1

After atempting logging in the user is directed back to the login page with no error message (or error in audit log)

Please NOTE We have two instances of identical code base. One is deployed to an Azure hosted windows based web app the second to an Azure hosted Windows based web app. The windows based web app logs on normally, the linux based web app **does not ** logon (The login screen shows and the swagger UI seems to function as expected)

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 8.8
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .Core

We are trying to inject a 3rd party spelling and grammar controller. We add the controlers and map the controllers as per the vendors instructions. Everything works as expected in a vanilla test project (asp.net core 3.1). But in ASPNETZERO a 500 error eror is thorwn when any api/RapidSpellAPI/... endpoints are requested. Can you provide any guidance on where to look or how to find the root 500 error? Or any general information about the middleware controllers that might be causing this issue?

        services.AddControllers().AddApplicationPart(System.Reflection.Assembly.Load(new System.Reflection.AssemblyName("Keyoti.RapidSpellWeb.ASP.NET.Core")));
        
        ......... 

            endpoints.MapRazorPages();
            endpoints.MapControllers();
Showing 1 to 10 of 31 entries