YAFLogo

rico515
  • rico515
  • 62.8% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4
10 months ago
UserPostedImage 

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: 3.0.3
10 months 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
10 months 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: 3.0.3
10 months 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
10 months 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: 3.0.3
10 months 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
9 months ago
Originally Posted by: tha_watcha 

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



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: 3.0.3
9 months 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
9 months ago
Originally Posted by: tha_watcha 

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.



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: 3.0.3
9 months 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
9 months 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: 3.0.3
9 months 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
9 months 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: 3.0.3
9 months ago
Quote:

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
9 months ago
Thanks so much! I'll pull that commit as soon as I'm able.Ā 
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button