Cannot Use Dataclassesdatacontext

Jan 19, 2011

I have a website wich runs like a charm locally, but when i take it online it cannot find the dbml, i have imported the dbml class but it says: Compiler Error Message: BC30002: Type 'DataClassesDataContext' is not defined. Source Error: Line 201: Dim dc As New DataClassesDataContext

And i have uploaded my .dbml file to the server. I have some experience of linq before and this has never happened before I dont understand why its doing this... I rechecked on my webserver, and the correct .net version was installed. but it works locally so it must be problems on the webserver. but what? I've checked with the web-host and theres nothing wrong with the .net version.

View 1 Replies


Similar Messages:

C# - Why DataClassesDataContext Has No Default Constructor

May 25, 2010

I have a connection string defined in my web.config like:

<connectionStrings>
<add name="LibraryConnectionString" connectionString="Server=.SQLEXPRESS3;Database=Library;Integrated Security=true" />

Well...lI do not understand why when i drag-and-drop tables into a new DataClasses dbml it does not construct a default constructor specifying the connection string. I only have constructor with params like:

public DataClassesDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}

I do need a default constructor for LinqDataSource..

View 1 Replies

DataSource Controls :: Static Variables Vs Linq2sql DataClassesDataContext Objects

May 6, 2010

im developing a silverlight project using silverlight 3, vs2008 and linq2sql. when projects starts, im storing all the data from database into some static list variables. so when ever i need data, im reading it from those static list variables. all i want to know is, is it good to store data in static list variables and use it when ever necessary or is it good to get data directly from DataClassesDataContext object like db.mytable. which is the rite and fastest way or retrieving data. i mean which will use less connections to database?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved