YAFLogo

rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago
Screenshot of Target framework set to .NET Framework 4.8 

I'm not sure how to proceed here. If I try to upgrade to net6.0, a lot of other things break. Should I degrade System.Text.Json to an older version? I appreciate any help.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a year ago
Sorry but switching from asp.net to asp.net core is not an upgrade. So it's not possible to just upgrade.

The current master branch in the github repository contains the current YAF 4.0 beta which runs on.net 7. So if you want to use.net 7. You would need to download that version 

rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago
Okay, thank you! I might have misstated my attempts to resolve the issue. I tried setting the target framework to net6, which caused additional issues.

I first tried to start by using the code source from the repo, and realized the web.config file is in the download package, so I've been working from there. An initial build attempt resulted in about 400 errors, so I've been trying to resolve each error as I work through trying to get the project to build. For example, every instance of 

.Log(...)
errored until I refactored to something like 
.ErrorLog(...)

Is that a known issue?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a year ago
Sorry, but I don't understand your problem. As I wrote before you can not upgrade the current YAF release 3.1.11 to.   .net 6/7
rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago
Sorry, I was confused about the difference between doing an "installation" and cloning the repo. I cloned the repo and I am able to run the installer while hosting locally with IIS and using an Azure SQL database. I am now working on figuring out the email server. Thank you for your replies!
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a year ago
The mail settings are stored in the app settings.json under mail configuration 
rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago

The mail settings are stored in the app settings.json under mail configuration 

Originally Posted by: tha_watcha 

Could you please help me understand how to translate Azure Communication Services to the MailConfiguration properties? Please see the image for context.

 image.png You have insufficient rights to see the content.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a year ago
I don't know what this is, but I assume it doesn't work with yaf. Only smtp mail server can be used for email sending in yaf.
rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago

I don't know what this is, but I assume it doesn't work with yaf. Only smtp mail server can be used for email sending in yaf.

Originally Posted by: tha_watcha 

I see. Azure Communication Services is currently in preview, so this is bleeding edge. There is a package  I could use to integrate it. Would I just have to refactor the MailService class to use it, or would there be more to rewrite? 

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a year ago
Correct you need to change the mailservice class.

Technically you can overwrite all service classes from an separate class library without modifying the yaf source code.

rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago
I decided to go with SendGrid for SMTP. I entered the info from SendGrid but it times out every time I try to test the mail service. Any advice here?

 image.png You have insufficient rights to see the content.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a year ago
I think it's the wrong  port. It should be 587 not 25. But I don't know the correct port for that server 
rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago
Thanks! I switched to port 587, but it would still not connect. I integrated SendGrid using the Nuget package instead and now use their API directly. I was able to send test emails successfully.

I have a new problem though. Registering a new user fails at ValidateUser. What am I missing here?

 image.png You have insufficient rights to see the content.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a year ago

I have a new problem though. Registering a new user fails at ValidateUser. What am I missing here?

Issue has been fixed in latest commit in the github repo

rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
a year ago
Thanks so much! I'll pull that commit as soon as I'm able.