Hey all,
I'm porting things over to v4.0 and realized that one of the changes with moving to EF Core is that ABPZero isn't using the IDbSet, instead using the default DbSet. No big deal, but the comment in the file still says:
/* Define an IDbSet for each entity of the application */
Just a small change. If there's somewhere better to put this kind of information (e.g. Git), please let me know.
Awesome! Thanks for sharing the solution!
Will this affect the core project's ability to generate MVC controllers?
I've posted a bit on how to do this and always try and provide the resolutions . Check out this thread/posts:
First, thank you to ismcagdas for his help. Here is what we worked out.
In the appsettings.config, the http:// must be present. If you find that it is missing, when you correct the issue, clear the browser cache to ensure the old file doesn't load.
I wanted to evaluate the public website that is included in the application to determine how much to reuse and how much to rewrite. What I really want to understand is:
Thanks
Seems to be working in Chrome now.
Thanks ismcagdas. I've emailed the requested information. While getting the URL, I realized that it is no longer working in Chrome either.
Just tried to run IE when running the API locally and 'ng serve' for the Angular UI.
In Chrome, log in works fine. In IE, the log in redirects me to log in. Not an error, just brings me back to log in.
Hello,
I am trying to configure my SMTP settings in the application to send using our support@company.com mailbox. I tried using putting my O365 settings into the host configuration, but get the following error in the audit logs when I try to send a test email:
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
I decided to build a small console app using the MailKit NuGet package to prove that the settings worked, and it does work fine. Here are the settings I'm putting in: Default from (sender) email address: support@company.com Default from (sender) display name: Company Support SMTP host: smtp.office365.com SMTP port: 587 Use SSL: false Use default credentials: false Domain name: company.com Username: myemail@company.com Password: password
The code to send the email is the following:
var message = new MimeMessage();
message.From.Add(new MailboxAddress("Company Support", "[email protected]"));
message.To.Add(new MailboxAddress("Me", "[email protected]"));
message.Subject = "Hello World - A mail from ASPNET Core";
message.Body = new TextPart("plain")
{
Text = "Hello World - A mail from ASPNET Core"
};
using (var client = new SmtpClient())
{
try
{
client.Connect("smtp.office365.com", 587, false);
// Note: since we don't have an OAuth2 token, disable
// client.AuthenticationMechanisms.Remove("XOAUTH2");
// Note: the XOAUTH2 authentication mechanism.
client.Authenticate("[email protected]", "password");
client.Send(message);
client.Disconnect(true);
}
This sends a test email just fine.
Does anyone have their application sending email through their O365 Exchange? Is there a way to get this working in ABP? Do I need to overwrite the current ABP mail implementation?
I have my application (Core + Angular) hosted in Azure, and have for a couple weeks. I have been following the step-by-step development tutorial to learn how to work with ABP and published to Azure. It works great, but only in Chrome. I went to show someone on my phone (mobile Chrome), and got an error. Here is a picture of the app not running in IE (left) and running fine Chrome (right).
Any ideas what could cause this? Any ideas how to find the issue?