Living in Code

Ramblings from a code monkey

What's wrong with my Linqdatasource? - Method not found!

I've been having a very weird problem in Visual Studio 2008 when trying to use the automatic operations for the Linqdatasource (insert, update or delete).  It seems that no matter what I try I get this weird "Method not found" problem.  Unfortunately there doesn't seem to be a lot of help out on the web about why this may be happening.  I'm starting to think that there may be something goofed up with my 3.5 Framework or Visual Studio 2008.

Here's the error and a link to the problem I posted out on the ASP.NET forums.  If anybody has come across this weird problem let me know. Unfortunately the 1 person that has replied on the discussion forums hasn't been much help and offers up only basic suggestions as to why it may not be working, all of which were things that I had already known or tried right off the bat.

System.MissingMethodException: Method not found: 'System.Object System.Web.UI.WebControls.Parameter.GetValue(System.Object, Boolean)'.

Generated: Mon, 04 Aug 2008 12:40:10 GMT
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.MissingMethodException: Method not found: 'System.Object System.Web.UI.WebControls.Parameter.GetValue(System.Object, Boolean)'.
at System.Web.UI.WebControls.LinqDataSourceView.MergeDictionaries(Object dataObjectType, ParameterCollection reference, IDictionary source, IDictionary destination, IDictionary destinationCopy)
at System.Web.UI.WebControls.LinqDataSourceView.BuildInsertDataObject(Object table, IDictionary values)
at System.Web.UI.WebControls.LinqDataSourceView.ExecuteInsert(IDictionary values)
at System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback)
at System.Web.UI.WebControls.FormView.HandleInsert(String commandArg, Boolean causesValidation)
at System.Web.UI.WebControls.FormView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
at System.Web.UI.WebControls.FormView.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.FormViewRow.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.sellyourhome_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: LINQ
Posted by Don on Friday, August 08, 2008
Permalink | Comments (2) | Post RSSRSS comment feed

2008!!

Wow, it's been quite a while since I've posted.  It was just into 2008 back in January.  Wow how time flies!

 Well, 2008 has brought many new versions of the tools that I use on a daily basis for my job.  Visual Studio has a 2008 version out.  Microsoft SQL Server has their 2008 version out (well, RTM will be next month so they say).  Also the .NET Framework is cranking along with the 3.5 framework which they are almost out with a final release of SP1.

I am excited that my job and the project I'm currently working on has given me the ability to upgrade to the latest versions of these tools.  So far I've been the most excited with SQL Server 2008 and all of the new features it has to offer.  Intellisense for T-SQL, now that's nice!

I'm also anxiously awaiting Apple's rumored update of their MacBook Pro laptop line.  Once they come out I'm going to get one and beef it up for my .NET Development.  I know many .NET developers out there would never think of owning a Mac, but man... once you go Mac you never go back!  My desktop at work is a HP workstation with Windows XP and I can't even tell you how many times I need to reboot to keep things running smoothly.  It's sad that as a Windows user I just am in the habbit now of rebooting when I leave for the day or when I go out to lunch.  With the Mac, I'm like "gee, I haven't rebooted in a few weeks, I should probably just do it for the hell of it."

Family life has been keeping me busy too.  We welcomed our 3rd child this past March and have been knee deep in kids!  Our twins turned 2 in June and they're getting smarter and smarter with each day that passes.  It scares me that they'll no doubt have me/us tied up in a closet at some point as they take over the house.

I am going to make an effort to post more moving forward.  God knows I come across enough technical things that would probably be helpful to others.  I'm learning to work with LINQ (also, here, scroll down to LINQ section) and can't wait to get more into that.  Also, SubSonic, a great tool, is out with a new version.  I'll be playing with that too when building an application I'm working on for my side-business.

Stay tuned!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: .NET | LINQ | Mac
Posted by Don on Wednesday, July 16, 2008
Permalink | Comments (0) | Post RSSRSS comment feed