Hi Kevin,
Thanks for looking into this for me, much appreciated. Unfortunately I get
the same exception when I run your test app:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: The datatype
'urn:ietf:params:xml:ns:bbb:aaa' is missing.
at
System.Xml.Serialization.XmlSchemaImporter.FindDataType(XmlQualifiedName name)
at System.Xml.Serialization.XmlSchemaImporter.FindType(XmlQualifiedName
name)
at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlQualifiedName
name, Type desiredMappingType, Type baseType)
at
System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypes(XmlQualifiedName baseName)
at
System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement
element, String identifier, Type desiredMappingType, Type baseType, String ns)
at
System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement
element, String identifier, Type desiredMappingType, Type baseType, String
ns, Boolean topLevelElement)
at
System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlQualifiedName
name, Type desiredMappingType, Type baseType)
at
System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypeMapping(XmlQualifiedName name, Type baseType, Boolean baseTypeCanBeIndirect)
at
System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping(XmlQualifiedName
name)
at WindowsApplication2.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
WindowsApplication2
Assembly Version: 1.0.1734.28382
Win32 Version: 1.0.1734.28382
CodeBase:
file:///E:/Poptel/XSD%20Code%20Gen%20SP1%20Fix/Test%20App%20from%20Kevin%20Yu/WindowsApplication2.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Just to be clear, what steps did you follow when building your test machine?
Did you install the .NET framework (pre-patch) seperately, or did you just
work with the framework as installed by Visual Studio .NET 2003?
Let me know exactly what stages you carried out and I'll re-create it on a
fresh test machine, just to be sure we're following exactly the same steps.
Cheers,
Ceri
[quoted text, click to view] "Kevin Yu [MSFT]" wrote:
> Hi Ceri,
>
> Thanks for your comfirming. To avoid carelessness, I tried it again. I set
> up a new computer and followed the steps you have provided. And then tried
> with the code in your first post. However, I didn't reproduced it either
> this time.
>
> Here I have attached a zip file with a compiled exe file inside. Please try
> to run it to see if the Form can be displayed without any exception.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>