504 Unrecognized authentication type

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
12/19/2008 8:19:18 AM
Gravatar
Total Posts 8

Re: 504 Unrecognized authentication type

Sorry, forgot to include the error message from the log.

Error message from the log: 2008-12-19 09:01:10,697 ERROR mojoPortal.Web.ContactUI.ContactForm - 504 Unrecognized authentication type

12/19/2008 9:08:49 AM
Gravatar
Total Posts 112

Re: 504 Unrecognized authentication type

Hi draftversion;

I was never able to make this work. I wish I had good insights to share with you!!

Metta,
Dale E. Moore

12/19/2008 3:11:58 PM
Gravatar
Total Posts 8

Re: 504 Unrecognized authentication type

Still nibbling on this issue...

Quick question: where does the app get the administrator's email address, to use for the contact form? Thanks!

12/19/2008 3:47:53 PM
Gravatar
Total Posts 18439

Re: 504 Unrecognized authentication type

The from address is going to be the address specified in Site Settings. If using gmail you should put your gmail email address there.

Hope it helps,

Joe

12/19/2008 5:04:47 PM
Gravatar
Total Posts 8

Re: 504 Unrecognized authentication type

OK, here's what I've found so far: The "to" parameter seems to be empty when it's passed to SendEmail in Email.cs. When I hardcode the "to" variable to my email within the SendEmail method, the email is sent correctly. The app loops through the list of users with the admin role and then send an email to each of these users. I have checked the data and it seems to be OK. I can't really debug it because I don't have VS 2008 installed. I have VS 2005, but don't have all the necessary componeents. I'm running the site off of mojoportal-2-2-8-0-mssqlreleasefiles.zip.

Anyway, the hard part is fixing the cause of the problem.

Thanks.

 

12/20/2008 6:41:42 AM
Gravatar
Total Posts 18439

Re: 504 Unrecognized authentication type

If you have VS 2005 SP1 you should be able to debug it using the mojoportal-complate-vs2005.sln

I reviewed the code this morning and don't see how it could not have the to address, but I added some logic to make sure it is valid and throw an error if not. So it will throw a different error if that is the case. A new release is coming today or tomorrow.

Best,

Joe

12/20/2008 1:37:59 PM
Gravatar
Total Posts 8

Re: 504 Unrecognized authentication type

I reinstalled today's release on a new VM. Here's the new message:

2008-12-20 14:32:04,250 ERROR mojoPortal.Web.ContactUI.ContactForm - DotNetOpenMail.MailException: no valid email address provided for To
at mojoPortal.Net.Email.SendEmail(SmtpSettings smtpSettings, String from, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority) in C:\projects\MojoPortal\mojoPortal.Net\Email.cs:line 141
at mojoPortal.Web.ContactUI.ContactForm.btnSend_Click(Object sender, EventArgs e)
 

I'm starting to think that I might have missed a step in the installation process. I have set my email in the web.config ("smtp from" key) user profile and in Site Settings. I will let you know if I find anything else. I appreciate your support.

12/20/2008 1:43:04 PM
Gravatar
Total Posts 18439

Re: 504 Unrecognized authentication type

The contact form has to have its "to" address set as well. Click the gear icon next to the title of the contact form and put the email address that you want contact messages to go to there.

Hope it helps,

Joe

12/20/2008 3:21:39 PM
Gravatar
Total Posts 8

Re: 504 Unrecognized authentication type

I found out that I had two issues. I came with with kludgy workarounds for now.

1. Empty "to" value when using the contact form

Cause:settingvalue in the mp_ModuleSettings table was empty.
Workaround: run the following SQL statement manually, note the id is probably specific to my installation
  update mp_ModuleSettings set settingvalue = 'me@domain.com' where id = 4 --the matching settingName should be 'ContactFormEmailSetting'

2. 504 error

cause: Gmail just doesn't seem to like DotNetOpenMail.
Workaround: replace SendEmail with SendEmailNormal

So far, the 2 workarounds above seem to be working. Fingers crossed. :p

12/20/2008 3:29:39 PM
Gravatar
Total Posts 18439

Re: 504 Unrecognized authentication type

Hi,

1. Was addressed in my previous post. You don't need to run any sql, you do need to set the address and save it in the module settings for the contact form.

2. I'll accept your word on that and will add a config setting for whether to use DotNetOpenMail. This will be available in the next release or in a few days in svn trunk. The advantage of DotNetOpenMail is that it has support for multi part messages that contain both an html body and a plain text body in the same message. But in practice we can live without it. There is already a Web config setting that will make it not use DotNetOpenMail. If you set RunningInMediumTrust to true it won't use DotNetOpenMail, but it will also disable OpenID authentication, so depending on whether you care about that, you could use this setting now.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.