System.MissingMethodException

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.
9/8/2009 11:19:45 AM
Gravatar
Total Posts 22

System.MissingMethodException

I get this error after uppgrading to the latest version ...

2009-09-08 18:11:03,747 ERROR mojoPortal.Web.mojoBasePage - 195.198.123.180-sv-SE - /hemma.aspx

System.MissingMethodException: Method not found: 'Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)'.

at mojoPortal.Web.UI.mojoRating.Page_Load(Object sender, EventArgs e)

at System.Web.UI.Control.OnLoad(EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2009-09-08 18:11:03,747 ERROR mojoPortal.Web.Global - 195.198.123.180-sv-SE - /hemma.aspx

System.MissingMethodException: Method not found: 'Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)'.

at mojoPortal.Web.UI.mojoRating.Page_Load(Object sender, EventArgs e)

at System.Web.UI.Control.OnLoad(EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

If I recreate the database, the site works ... The admin part works ...

/Pär

9/8/2009 11:27:49 AM
Gravatar
Total Posts 18439

Re: System.MissingMethodException

Hi Par,

You need to install the SP1 for .NET 3.5, this method was introduced in .NET 3.5 SP1

It was needed to fix a bug when using UpdatePanel in folder based child sites previously the form action was changing after the first ajax postback and then any additional ajax postback would fail.

Hope it helps,

Joe

9/8/2009 11:51:14 AM
Gravatar
Total Posts 22

Re: System.MissingMethodException

Damn ... I hope my hosting company will apply this ASAP ... Thanks!

/Pär 

9/8/2009 11:53:02 AM
Gravatar
Total Posts 22

Re: System.MissingMethodException

One followup question then ... Why does this work on fresh installation?

/Pär

9/8/2009 11:55:17 AM
Gravatar
Total Posts 18439

Re: System.MissingMethodException

Hi Par,

Sorry for the inconvenience.

To be honest I always thought we required .NET 3.5 SP1 since we first changed from targeting 2.0 back in Dec 2008. I did not realize that previously mojoPortal could run in 3.5 without SP1 so I did not expect this change to impact people. In fact I did not realize this method was introduced in the SP1 until after releasing mojoPortal 2.3.1.6 and a few people have reported this problem.

Best,

Joe

9/8/2009 11:56:27 AM
Gravatar
Total Posts 18439

Re: System.MissingMethodException

It should be no different on a fresh installation vs an upgrade. In both cases .NET 3.5 SP1 are required.

Best,

Joe

9/8/2009 12:04:29 PM
Gravatar
Total Posts 18439

Re: System.MissingMethodException

I am within a few days of making a new release. I will find all the places where we use this method and I will wrap a try catch for System.NotImplementedException so that it won't fail if the SP 1 is not installed. This fix is only for folder based child sites problem so if not using that we can prevent this error but users who do use folder sites should make sure they have the  SP1.

Best,

Joe

9/8/2009 12:17:40 PM
Gravatar
Total Posts 18439

Re: System.MissingMethodException

Are you using MS SQL? I could make you a preview build of the new release with this try catch so you can fix your site today?

Best,

Joe

9/8/2009 2:36:17 PM
Gravatar
Total Posts 22

Re: System.MissingMethodException

Yes, I am running SQL, so I whenever you have anything ... I will put it on my site ...

/Pär

9/8/2009 2:39:00 PM
Gravatar
Total Posts 18439

Re: System.MissingMethodException

Ok, give me just a few minutes and I will post a preview package for ms sql. I'm hoping to make the official release tomorrow but I want to get your siteback online.

Best,

Joe

9/8/2009 2:42:08 PM
Gravatar
Total Posts 22

Re: System.MissingMethodException

Really appreciated!

/Pär

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