Contact Form May Not Work

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/18/2011 7:52:53 PM
Gravatar
Total Posts 27

Contact Form May Not Work

After I updated my Mojoportal to V2.3.7.0, I could not make the Contact Form work until I use '<pages  enableEventValidation="false">' in web.config.

Is there anyone saw this problem and has a better way to fix it?

10/19/2011 9:29:19 AM
Gravatar
Total Posts 18439

Re: Contact Form May Not Work

What version did you upgrade from?

Are you using .NET 4 or 3.5?

Did you try to keep your old Web.config file? you should use the one that ships with mojoPortal and transfer any customizations to it from your old one.

Hope that helps,

Joe

 

10/19/2011 10:42:49 AM
Gravatar
Total Posts 27

Re: Contact Form May Not Work

I am using .NET 4 and upgraded from V2.3.6.4.

I did compare the old web.config and the new web.config line by line before merging two files, and keep settings consistent.

Thanks.

10/19/2011 10:47:23 AM
Gravatar
Total Posts 18439

Re: Contact Form May Not Work

In our Web.config file we have:

<pages validateRequest="false"...

and I get no errors with the contact form. This is not a new change, this configuration has been there as long as I can remember.

in our .NET 4 Web.config we also have this:

<httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048"  />

Best,

Joe

10/19/2011 11:02:51 AM
Gravatar
Total Posts 27

Re: Contact Form May Not Work

The settings are over there without any change but I added 'enableEventValidation' in the <pages> tag.

Maybe the reason involves the medium trust hosting environment.

10/19/2011 11:11:15 AM
Gravatar
Total Posts 18439

Re: Contact Form May Not Work

I have a copy running locally in medium trust and it works fine there, but if adding that solves it for you I don't see any problem with it.

Best,

Joe

10/19/2011 11:16:07 AM
Gravatar
Total Posts 27

Re: Contact Form May Not Work

Thank you, Joe.

Stone

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