Base solution for your next web application

Activities of "jchester26"

Hi @ismcagdas

Yes! That worked thank you. I added the new code as an additonal public class in my existing file.

Just one final question. When I first changed it I was using the wrong port number and an exception was thrown in the IDE and I had to continue. Is that becuase I am in debug mode? I would not want the system to stop if an exception was thown in production for a timeout if the SMTP server was unavailable.

Hi @ismcagdas. OK got the page now.

I have made the changes to module preinitialisation. However the file AbpZeroTemplateMailKitSmtpBuilder.cs does not exist at this path, I have

src/XYZ.Core/Emailing/XYZSmtpEmailSenderConfiguration.cs

Shall I make the changes in that file or create a new XYZMailKitSmtpBuilder.cs file?

Hi @ismcagdas

I get a pgae not found when going to the link you posted.

Hi,

Update. I have tried using Gmail SMTP as suggested in thos post by @ismcagdas https://support.aspnetzero.com/QA/Questions/4360

The exact same error occurs and the exact same log file entries.

Any help from support?

Thanks

J

Hi,

Emails are not sending and I would like some help trying to reolve as I am spending a lot of time with no success. I have reviewed the support forum and tried several fixes but still no success.

  • I have tested all of my SMTP settings sing SMTPProbe and that succesfully sends emails from the same machine (host, port, user, password, authentication)
  • I have commented out '//Configuration.ReplaceService<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient);' in Module Preinitialization so that emails are sent in debug mode
  • I have added 'Configuration.Modules.AbpMailKit().SecureSocketOption = SecureSocketOptions.Auto;' line to Preinitiialization in XYZCoreModule.cs
  • I have not added any code to XYZSmtpEmailSenderConfiguration class in XYZSmtpEmailSenderConfiguration.cs

The log file records the following;

`ERROR 2018-12-05 09:39:43,418 [56   ] Mvc.ExceptionHandling.AbpExceptionFilter - An error occurred while attempting to establish an SSL or TLS connection.

The SSL certificate presented by the server is not trusted by the system for one or more of the following reasons:
1. The server is using a self-signed certificate which cannot be verified.
2. The local system is missing a Root or Intermediate certificate needed to verify the server's certificate.
3. The certificate presented by the server is expired or invalid.

See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#InvalidSslCertificate for possible solutions.
MailKit.Security.SslHandshakeException: An error occurred while attempting to establish an SSL or TLS connection.

The SSL certificate presented by the server is not trusted by the system for one or more of the following reasons:
1. The server is using a self-signed certificate which cannot be verified.
2. The local system is missing a Root or Intermediate certificate needed to verify the server's certificate.
3. The certificate presented by the server is expired or invalid.

See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#InvalidSslCertificate for possible solutions. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.`

When I investigated that problem, the recommendation was to add the Configuration.Modules.AbpMailKit().SecureSocketOption = SecureSocketOptions.Auto; setting in the module preinitialisation, which I have done.

I am using SendGrid SMTP server, but I am not sure that is the issue as I can succesfully send an Email using STMPProbe app from the same machine. the STMP setting for that are smtp.sendgrid.net, port 587, username apikey and pwd [not included here]

Can anyone offer any more advice?

Thanks!

Confirming that this fixed the issue. v6.2.1 is now working correctly with the original database content having removed those settings.

Thanks for the help.

On further investigation, this appears to be an issue relating to the Visual Settings. In v6.1 there was an item in the user menu (top right) allowing a user to set their own 'Visual Settings' such as Green, Yellow or Blue themes etc. This appears to be no longer a menu item at the user level, but at the tenant level.

When I upgraded to v6.2.1 I ran database migrations in case there where any databases, but it reported the DB was up to date (i.e. no migration changes). So I think v6.2.1 is reading a custom theme setting from the database but the css no longer exists! If I create a new database for v6.2.1 then all works fine.

The development guide still shows 'Visual Settings' as an option in the user menu but it is not the same as the user menu in 6.2.1.

I cannot find where the Visual Settings are stored in the DB so that I can change back to default to confirm.

Can anyone tell me where Visual Settings for the user is stored?

Where are the logs stored/created.

I have some more info after digging further. I had version 6.1 that I was using and would use .../version61/angular and would run npm start from that directory. I then downloaded the new version to ..version621 directory. I then ran yarn and then npm start from the ../version621/angular/ directory. However I noticed that the page source displayed some info that comes from the index.html in the /version61/angular/src/ directory. So it may be that angular is chaching the previous build some how?

I have cleared the IIS cache and tried npn cache clear --force and then run yarn and npm start again from the version621/angular directory. I now see the new index.html source, but again it is blank as per the above.

Thanks,

Hi, i've been using version 6.1 with no issues, however just tried using the new version 6.2.1 and login page displays OK, but after login the app/main/dashboard page (or any other page) is blank. The below is the page source.


<!doctype html>
<html lang="en" dir="ltr">
<head prefix="og: http://ogp.me/ns#">
    <meta charset="utf-8">
    <title>XYZ</title>
    <base href="/">

    <meta property="og:title" content="XYZ" />
    <meta property="og:image" content="" />
    <meta property="og:description" content="XYZ" />
    <meta property="og:url" content="">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="XYZ">
    <meta name="description" content="XYZ">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
    <app-root></app-root>
<script type="text/javascript" src="runtime.js"></script><script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="styles.js"></script><script type="text/javascript" src="scripts.js"></script><script type="text/javascript" src="vendor.js"></script><script type="text/javascript" src="main.js"></script></body>
</html>

I cannot work out why! Please help.

Thanks,

Showing 1 to 9 of 9 entries