473,660 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to generate schema using XSD.exe tool

Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe "
and uses stuff (classes) from "ClassC.dll ", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDa taCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup .dll") but no dice. Any ideas?

Thanks,
Nate

The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Dec 2 '05 #1
2 3538
You might want to take a look at either XSDObjectGen, or possibly even Dingo,
both of which are respectively more sophisticated than XSD.EXE.

Here's a blog post describing each, that includes links to them:

http://petesbloggerama.blogspot.com/...objectgen.html

good luck,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Nathan Wiegman" wrote:
Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe "
and uses stuff (classes) from "ClassC.dll ", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDa taCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup .dll") but no dice. Any ideas?

Thanks,
Nate

The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Dec 3 '05 #2
Hi Peter,

Actually, I am trying to generate a schema (.xsd) from a class in a managed
assembly (.exe). These tools appear to generate source from existing schemas.

Thanks,
Nate

"Peter Bromberg [C# MVP]" wrote:
You might want to take a look at either XSDObjectGen, or possibly even Dingo,
both of which are respectively more sophisticated than XSD.EXE.

Here's a blog post describing each, that includes links to them:

http://petesbloggerama.blogspot.com/...objectgen.html

good luck,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Nathan Wiegman" wrote:
Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe "
and uses stuff (classes) from "ClassC.dll ", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDa taCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup .dll") but no dice. Any ideas?

Thanks,
Nate

The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Dec 5 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1523
by: Jasmin Wason | last post by:
Hi, Does anyone know if it is possible to validate some XML with an in-memory schema using Xerces-J? I have a schema that exists as a String in my Java code. I would like to validate some XML with this schema but the only way I can see to do this at the moment is to write out the string to a temporary file and then refer to it in:
0
1125
by: Laurens | last post by:
Hi, Any recommendations for a good - and free - schema documentation tool? The tool should be able to output as HTML. Thanks -Laurens
0
1392
by: sfsfsfsf | last post by:
SchemaCrawler is a new schema diff tool on Sourceforge. http://sourceforge.net/projects/schemacrawler It can display the schema in a text format (plain text, CSV, or HTML), designed for diff-ing. This is especially useful in diff-ing an older and newer version of a schema. It is written in Java (platform independent), and runs from the command line, or as an ant task.
0
1742
by: Robert Jacobson | last post by:
Hi, I have a number of classes in one assembly. I'd like to use XSD.exe to generate a schema for just one class ("Parse Rules") and its nested child classes. Is there an attribute that will allow me to do this? I tried running XSD on the entire assembly, with the plan to delete the unnecessary classes from the .xsd afterwords. However, it complained that a certain class "cannot be serialized because it does not have a default...
0
1343
by: Andrius | last post by:
Hello, having some problems by writing XML file by XML schema. using strongly typed datasets. Schema: <?xml version="1.0" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="types.xsd" />
2
6925
by: PeterW | last post by:
I have an xml file from which I want to generate an xsd schema and at a later stage a cs class. The xml file has a mix of defined namespaces and also an empty namespace. These are defined as follows: <silcn:silcn xmlns:silcn='http://silcn.org/200309' xmlns='http://xmlprobe.com/200312'> it contains an element <report> off the root and also a separate <Silcn:report> again off the root.
0
1472
by: nithyasri | last post by:
How to Parse Xml schema using .NET and get an object model? I need to parse an Xml schema and display it as a tree structure in dot net. How do i do it? Any help will be appreciated.
2
1413
by: bindu123 | last post by:
Hi All, I have to generate a line chart in C on windows, using distance in the X-axis and throughput in Y-axis. Is it possible to generate charts using C programming in windows ? and i also i would like to develop a GUI interface, please guide me what should be used for the same ? Thanks for your help...
0
1285
by: Teka Cherenet | last post by:
I am newer for programming world in C# and SQL Server. so I wonder if it is possible to have a sample code which illustrates how to generate report using C# code. thank you
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6181
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.