473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Cannot generate strongly-typed dataset from Visual Studio 2005

Hello all

Apologies if I've picked the wrong forum, but can anybody offer assistance to me? I'm definitely struggling to get my first data access layer generated using the Dataset Designer in Visual Studio 2005. I just can't believe how difficult the process of generating a class library DLL from an XSD file is proving to be, I'm sure I'm not trying to do anything fancy, it seems like it should be very basic functionality to me, so I must be missing something obvious.

My problem is: I have an XSD file created natively in Visual Studio, its not imported from elsewhere or anything fancy, but I can't get it converted to a .vb file, which I believe is the right thing to be doing. So first of all, can I check I understand the process correctly:

1. Create XSD file using Dataset Designer
2. Choose 'Use Custom Tool' to start MSDataSetGenerator
3. MSDataSetGenerator should then create a .vb file
4. Then I can build the class library project to create the DLL

However, when I try to run MSDataSetGenerator, I get the following error:

"Custom tool error: Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown."

and the error list complains about very many of the attributes within the XSD file, just a few here for example, although I'm not sure the specific attributes are the important thing here:

AllowDBNull is not declared
ProviderType is not declared
SchemaSerializationMode is not declared
DataAccessModifier is not declared

etc etc., and sure enough each and every one of the attributes is squiggled beneath, back in the code window.

It even complains about:

"The element cannot contain white space. Content model is empty"

before it finally gives up after the maximum errors.

I'm can't see how with the little amount of work I've managed to do so far, I've managed to corrupt a file that much. Is this some sort of referencing issue? How could all of the those attributes automatically generated by the DataSet generator cause so much trouble as soon as I try to generate the code from them?

Can anybody shed some light on what I'm doing wrong? Any advice would be enormously welcome!

Regards

Paul
Nov 19 '07 #1
1 2187
Plater
7,872 Expert 4TB
Could you not do this with your xsd file?
Expand|Select|Wrap|Line Numbers
  1. Dim ds As New DataSet() 
  2. 'ds.ReadXml(filename) 
  3. 'or
  4. 'ds.ReadXmlSchema(filename) 
  5.  
Nov 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Yannick Turgeon | last post by:
Hello all, Back-end: SS2000 SP2 + NT4 Front-end: A97 + XP We are currently trying to add a Domain Server to our network. We added our SQL Server to the domain and added a client too....
4
by: Tamir Khason | last post by:
I have a form. On form there is my control (all of control's assemblies signed by strong key), BUT while running I recieve he located assembly 'MyFooAssembly' is not strongly named. While...
5
by: Oleg Subachev | last post by:
When I try to use strongly named assembly1 that references non-strongly named assembly2 I get the following error: "The located assembly '<assembly2 name>' is not strongly named." How can I...
0
by: HMANG | last post by:
I have a c# app that references a strongly named dll , that then calls an unmanaged dll. The code runs fine when I put the strongly named dll into the gac and set my copy local in the .Net IDE as...
1
by: Steve | last post by:
I want to ask if .NET cannot handle WSDL with exception <wsdl:fault> element? <wsdl:fault name="CreditCardWizardException"> <soap:fault name="CreditCardWizardException" use="encoded"...
6
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional)...
2
by: anson | last post by:
this code is an example code of TPOP, i type them and can be compiled... but when give some input , it getting segment fault .... i observed that when the build() initial the word table ... it...
1
by: Jack Black | last post by:
Well, I've used sn.exe to generate a key pair for a web part I just built, and it ran successfully. However, when I run sn -T <filenameto sn -Tp <filenameto get the public key value for the...
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
2
by: =?Utf-8?B?U1VOTlk=?= | last post by:
Hi I have a web application(website) from which i generate reports. I code behind used is asp.net. When i give a small date range to generate reports it works fine, but when i give a big date range...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.