Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2013, 02:11 AM
Registered User
 
Join Date: Jul 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2 Adding a Record

Ok, I give up, I know it's me and not the code, here's my error:
//Save the changes to the database
db.SubmitChanges();
Error Description:
"V2.PaidTimeOffDAL.HRPaidTimeOffDataContext' does not contain a definition for 'SubmitChanges' and no extension method 'SubmitChanges' accepting a first argument of type 'V2.PaidTimeOffDAL.HRPaidTimeOffDataContext' could be found (are you missing a using directive or an assembly reference?)"

I have added the following reference:
using.System.Linq;
using.Data.
using V2.PaidTimeOffDAL

Thanks for your help guys. I'm just starting my journey.
 
Old July 14th, 2013, 02:34 PM
Registered User
 
Join Date: Jul 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

45 people viewed my posted problem, neither have a solution.. anyways I was able to figured out the problem, I needed to add this reference to my web.config file.
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

I know this is an advanced book, however the author made a good job of explaining most of the details clear.





Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a new record to a table tomla75 BOOK: Beginning ASP.NET 4 : in C# and VB 1 March 24th, 2012 01:43 PM
Adding record to database? werD420 Classic ASP Databases 5 January 20th, 2005 06:27 PM
Adding a new record to a dataset Louisa VB.NET 2002/2003 Basics 1 January 14th, 2004 05:33 PM
trouble adding new record TnTandyO Classic ASP Databases 1 November 4th, 2003 02:20 PM
Adding a record using a form cailos Access 2 October 12th, 2003 11:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.