I am validating XML-Documents with XML-schema-files and the
C#-standard-functions. I have one XSD-document which is syntactically 100%
correct after W3C-standard, but the schema compiler dies with an
InvalidCastExce ption (debug message following).
Has anyone had this error already?
Seems to be a bug inside 'mscorlib'.
Thanks,
Stefan
--
************** Exception Text **************
System.InvalidC astException: Specified cast is not valid.
at System.Xml.Sche ma.Compiler.Com pileContentMode l(CompiledConte ntModel
compiledContent Model, XmlSchemaPartic le particle)
at System.Xml.Sche ma.Compiler.Com pileComplexCont ent(XmlSchemaCo mplexType
complexType, CompiledContent Model compiledContent Model)
at System.Xml.Sche ma.Compiler.Com pileComplexType (XmlSchemaCompl exType
complexType)
at System.Xml.Sche ma.Compiler.Com pileElement(Xml SchemaElement xe)
at System.Xml.Sche ma.Compiler.Com pileTo(SchemaIn fo schemaInfo)
at System.Xml.Sche ma.XmlSchema.Co mpile(XmlSchema Collection collection,
XmlNameTable nameTable, SchemaNames schemaNames, ValidationEvent Handler
validationEvent Handler, String targetNamespace , SchemaInfo schemaInfo,
Boolean compileContentM odel, XmlResolver resolver)
at System.Xml.Sche ma.XmlSchemaCol lection.Add(Str ing ns, SchemaInfo
schemaInfo, XmlSchema schema, Boolean compile, XmlResolver resolver)
at System.Xml.Sche ma.XmlSchemaCol lection.Add(Xml Schema schema,
XmlResolver resolver)
at System.Xml.Sche ma.XmlSchemaCol lection.Add(Xml Schema schema)
at XmlValidationDe mo.frmXmlValida tion.btnLoadVal idationFiles_Cl ick(Object
sender, EventArgs e) in d:\documents and
settings\bjoern \desktop\mosess aurxmlvalidatio ndemo\xmlvalida tiondemo\frmxml validation.cs:l ine 229
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll 0 1121 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: trexim |
last post by:
Hi,
I am trying to create a Web Reference for CSTA using the URL
http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl
Visual .Net complains that:
"
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading
|
by: umhlali |
last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem serializing the object but there seems to be a problem serializing an array of objects. Any help will be appreciated
"Cannot assign object of type System.Object to an object of type ElectronicWallet.C2PTest.PaymentItem."
:...
|
by: yqlu |
last post by:
I hava developed a client in C# that is connected to a 3-party XML Web
Services developed in Java based on the AXIS 1.1. Most methods call are
successful except for one method named "findObjects" and return a complex
type "FieldSearchResult". The error message as following :
"Cannot assign object of type System.String to an object of type
System.String. There is an error in XML document (23, 97)."
By the way,I hava written a client in Java...
|
by: leslie_tighe |
last post by:
Hello,
I have webservice created with Axis 1.2.1 and that I am trying to
consuming in .NET (VB) using the Microsoft provided tools. While I am
able to consume methods on the service that return simple type, I
cannot consume methods that return complex objects. I have tried
experimenting, with this, but am at a bit of loss on where the problem
lies. When I call the services from a browser, I do get back the
response that contains valid...
|
by: leslie_tighe |
last post by:
Hello,
I have a webservice running on a J2EE server created with Axis 1.2.. I
have a client that I am building in .net that needs to consume this
webserivce and am having a bit of trouble. I have pasted the wsdl
below and have a created a class in VB.net by adding a web refrence to
my project. What is odd is that I can successfully call methods that
return a simple value like a string. I call also call methods that add
an object....
| |
by: helldiversafe-news |
last post by:
Hi all,
I will use a apache soap service with an .net c# client and have a
problem with an complex array:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
|
by: bbalet.free.fr |
last post by:
The “Add Web Reference” Visual tool generates bad classes (from WSDL schema)
for ComplexType containing only one element (wsdl.exe and wseWsdl3.exe tools
have the same problem) : if a ComplexType A contains only one element, the
tool don’t generate a class for the ComplexType A. It generates a class only
for the element type (B) included in this ComplexType (if this type contains
more than one element...). For types in WSDL schéma...
|
by: bbalet.free.fr |
last post by:
The “Add Web Reference” Visual tool generates bad classes (from WSDL schema)
for ComplexType containing only one element (wsdl.exe and wseWsdl3.exe tools
have the same problem) : if a ComplexType A contains only one element, the
tool don’t generate a class for the ComplexType A. It generates a class only
for the element type (B) included in this ComplexType (if this type contains
more than one element...). For types in WSDL schéma...
|
by: DJShultz |
last post by:
My problem is that c# seems to get nothing back from this wsdl (source
below) and I'm wondering if I'm writing it wrong? sample xml returned
is also below. Can someone please either tell me what is wrong or
point me in the right direction? Is my mapping in wsdl correct with my
xml output?
I'm refering to my getSRGByWeek method (login works find and returns an
int)
--David Shultz
|
by: gcharbon |
last post by:
Hi community,
I have a problem with a Soap client written in php.
I have a local server (coded in c and a client in c too, it works fine), but i want to test client in php, and i have an error (I'm not sure to understand it...) :
SoapFault exception: Method 'ns1:getMetadataRequest' not implemented: method name or namespace not recognized in beta_2/soap.php:26
Stack trace:
#0 /root/src/rxtxws/beta_2/soap.php(26):...
|
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |