Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Edit/update throws an exception
Previous Previous
 
Next Next
New Post 6/15/2006 2:53 AM
User is offline Mattias Andersson
7 posts
10th Ranked


Edit/update throws an exception 
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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Edit/update throws an exception
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP