Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 October 8th, 2009, 03:14 PM
Authorized User
 
Join Date: Aug 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default dbml Class error

I have create a new website with File-New-Website and copy the project which I created with New-Project-WAP, but when I try to rub it, it gives me the following error with the .dbml file in my App_Code error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30242: 'Partial' is not valid on a method declaration.

Source Error:



Line 30:
Line 31: #Region "Extensibility Method Definitions"
Line 32: Partial Private Sub OnCreated()
Line 33: End Sub
Line 34: Partial Private Sub InsertGroup(instance As [Group])


Source File: C:\Inetpub\wwwroot\Forro\App_Code\ForroDataClss.de signer.vb Line: 32

I tried to fix it, but have no clue what how. Please help me...
 
Old October 9th, 2009, 03:43 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Maybe the project is missing a reference needed for LINQ to SQL?

You can try two things:

1. Create a brand new LINQ to SQL diagram so VS can fix the project. Then you might be able to use your existing one.

or

2. Simply start over. Delete the old dbml file, create a new one and add the table again...

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Huagati DBML/EDMX Professional Tools License for 10 Purchasers of my New Book rogerj BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 1 February 18th, 2009 08:54 PM
ThemeSelector class error xrica32 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 14th, 2007 08:20 PM
Using class reference getting error rojiin ASP.NET 2.0 Basics 2 July 6th, 2007 01:53 PM
Compilation error when declare class bluebeta Visual C++ 0 April 26th, 2006 03:11 AM
error ... when calling a class HumaMunir Java Espanol 2 May 7th, 2005 01:09 PM





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