Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Edit/update throws an exceptionEdit/update throws an exception
Previous
 
Next
New Post
6/15/2006 4:53 AM
 
Right, here's the deal this time.

I have an edit page using objectdatasource, as demonstrated in the adef tutorial (Creating a DotNetNuke Module 4). I get everything showing up in my gridview on the edit page, I can get to the edit mode of the datagrid and all data shows up. But when I try to "update" my update function in the controller class throws an exception (A critical error has occurred. Exception has been thrown by the target of an invocation.). I found that it actually was my controller class update function that caused this when I ran the site in debug mode.

The update method for the datasource is "updatePersonal"

the function in the controller class is the following: 
<DataObjectMethod(DataObjectMethodType.Update)> _
Public Shared Sub updatePersonal(ByVal objInfo As whiteboard_personalInfo)
DataProvider.Instance().updatepersonal(objInfo.namn, objInfo.id, objInfo.foto, objInfo.huvudansvar, objInfo.telefon, objInfo.mail, objInfo.rumsnummer, objInfo.backupperson_id)
End Sub
 where the whiteboard_personalinfo is my info class.

any ideas of why this doesn't work? It seems to be a problem with the "Dataprovider...." line, since it doesn't thrown an exception if I comment it. All the values inserted are of the right data type, my dataprovider.vb file is equivalent to what it looks like in the tutorial. There has to be something I'm missing here...
All includes are checked to be as they are in the tutorial. It's either a big error or something so small that I can't see it

Both the dataprovider and the sqldataprovider seems to be ok. They have the same order and the same data types as the ones I pass on from the info class. Can there be some kind of error when grabbing the data from the info class?


I'd be thankful for any help on this issue.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Edit/update throws an exceptionEdit/update throws an exception


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out