471,325 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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.cDataCopy'.
- 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 3381
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.cDataCopy'.
- 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.cDataCopy'.
- 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jasmin Wason | last post: by
reply views Thread by Laurens | last post: by
reply views Thread by sfsfsfsf | last post: by
reply views Thread by Robert Jacobson | last post: by
2 posts views Thread by PeterW | last post: by

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.