I was following a data-access tutorial (on this site). It showed how to create a connection to Northwind (which came with the software) and create a table adapter to one of it's tables. Everything seemed to work fine (I am able to access the data from the
designer pane and run ad-hoc queries using the RightClick|Preview Data option), until I tried to build the project. I get an error message saying "Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown" pointing me to
line 1 in Northwind.xsd file. In addition, I get around 60 messages saying: "Could not find schema information for the attribute 'urn:schemas-microsoft-com:xml-msdata:PrimaryKey'" and others of the same format.
Can anyone please point me to a solution to this problem?
If this information helps to solve the problem, I'm using VS2008 with it's built in SQL server compact edition 3.5.
relstlman
Member
5 Points
18 Posts
Exception of type 'System.Data.Design.InternalException' was thrown
Apr 25, 2008 09:27 AM|LINK
Hi,
I was following a data-access tutorial (on this site). It showed how to create a connection to Northwind (which came with the software) and create a table adapter to one of it's tables. Everything seemed to work fine (I am able to access the data from the designer pane and run ad-hoc queries using the RightClick|Preview Data option), until I tried to build the project. I get an error message saying "Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown" pointing me to line 1 in Northwind.xsd file. In addition, I get around 60 messages saying: "Could not find schema information for the attribute 'urn:schemas-microsoft-com:xml-msdata:PrimaryKey'" and others of the same format.
Can anyone please point me to a solution to this problem?
If this information helps to solve the problem, I'm using VS2008 with it's built in SQL server compact edition 3.5.
Thanx
Pankil
Member
141 Points
77 Posts
Re: Exception of type 'System.Data.Design.InternalException' was thrown
Feb 27, 2012 04:28 AM|LINK
Hello
I am facing the same problem in this tutorial.. Any one is there who can Guide us!!!!!!!
Pankil