Compatibility with .NET 3.5

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.
9/1/2010 7:45:34 PM
Gravatar
Total Posts 8

Compatibility with .NET 3.5

Just updated my local sources and I can't compile Mojoportal anymore. Here is the error message I've got:

Error    17    'System.Web.HttpResponse' does not contain a definition for 'RedirectPermanent' and no extension method 'RedirectPermanent' accepting a first argument of type 'System.Web.HttpResponse' could be found (are you missing a using directive or an assembly reference?)    E:\Projects\MPMyBizHive\Web\Components\mojoBasePage.cs    676    46    mojoPortal.Web.net35
After looking at the class file, it seems this part isn't working:

#if ! net35
                                if (WebConfigSettings.Use301RedirectWhenEnforcingPreferredHostName)
                                {
                                    Response.RedirectPermanent(redirectUrl, true);
                                    return;
                                }
#endif

I've already replaced the Web.config for .NET 3.5, is there something I need to configure?

Thanks.

9/1/2010 10:50:43 PM
Gravatar
Total Posts 8

Re: Compatibility with .NET 3.5

I found the fix. net35 should be capitalized; NET35.

9/2/2010 6:58:10 AM
Gravatar
Total Posts 18439

Re: Compatibility with .NET 3.5

Hi,

Yes, you are right it was a typo. I fixed it in the repository.

Thanks,

Joe

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