My code accesses a Web Service, we'll call it 'A', generates CSharp from WSDL2, generates an assembly from that code, invokes a method on the assembly, and then returns the result. It also performs the same code on Web Service 'B', but fails. A and B have nothing to do with each other and the methods they invoke are completely different.
Given that and the following information, what do you think is causing this failure? Apologies for the length. >From MonoVS Log Viewer (FileNotFoundException): [02:25:54:3648060] Cannot load symbol file `data-0xb5677840': System.IO.FileNotFoundException: File '/tmp/monovs-LinuxWebMethodTestApp/data-0xb5677840' not found. [02:25:54:3650290] File name: '/tmp/monovs-LinuxWebMethodTestApp/data-0xb5677840' [02:25:54:3651710] at Mono.Cecil.Binary.ImageReader.Read (System.String file) [0x0008b] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Mono.Cecil/Mono.Cecil.Binary/ImageReader.cs:90 [02:25:54:3653050] at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Mono.Cecil/Mono.Cecil/AssemblyFactory.cs:65 [02:25:54:3654310] at Mono.Debugger.Backend.Mono.MonoSymbolFile..ctor (Mono.Debugger.Backend.Mono.MonoLanguageBackend language, Mono.Debugger.Backend.ProcessServant process, Mono.Debugger.TargetMemoryAccess memory, TargetAddress address) [0x00142] in /usr/src/packages/BUILD/mono-debugger-2.6.3/backend/mono/MonoSymbolFile.cs:234 Output window in Visual Studio shows (infinite loop)... Section that loops forever (until stack overflow): at System.Diagnostics.DiagnosticsConfiguration.get_Settings () [0x0000a] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs:65 at System.Diagnostics.TraceImpl.InitOnce () [0x00020] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/TraceImpl.cs:199 at System.Diagnostics.TraceImpl.get_IndentLevel () [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/TraceImpl.cs:107 at System.Diagnostics.TraceListenerCollection.InitializeListener (System.Diagnostics.TraceListener) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/TraceListenerCollection.cs:121 at System.Diagnostics.TraceListenerCollection.Add (System.Diagnostics.TraceListener) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/TraceListenerCollection.cs:108 at System.Diagnostics.TraceListenerCollection..ctor (bool) [0x0001d] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/TraceListenerCollection.cs:54 at System.Diagnostics.TraceListenerCollection..ctor () <IL 0x00002, 0x00017> at System.Diagnostics.DiagnosticsConfigurationHandler.GetSharedListeners (System.Collections.IDictionary) [0x00017] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs:310 at System.Diagnostics.DiagnosticsConfigurationHandler.Create (object,object,System.Xml.XmlNode) [0x000be] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs:126 at System.Configuration.ConfigurationSection.GetRuntimeObject () [0x00105] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:116 at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (string) [0x0000d] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Configuration/System.Configuration/ClientConfigurationSystem.cs:64 at System.Configuration.ConfigurationManager.GetSection (string) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:162 at System.Configuration.ConfigurationSettings.GetConfig (string) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System/System.Configuration/ConfigurationSettings.cs:87 Section leading up to the infinite loop: at System.Xml.Serialization.XmlSerializer..cctor () [0x000f0] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:154 at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x0001b, 0x00039> at System.Web.Services.Protocols.TypeStubInfo.Initialize () [0x00038] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs:185 at System.Web.Services.Protocols.TypeStubInfo.Initialize () [0x0002c] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs:183 at System.Web.Services.Protocols.LogicalTypeInfo.CreateTypeStubInfo (System.Type) [0x00016] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs:259 at System.Web.Services.Protocols.LogicalTypeInfo.GetTypeStub (string) [0x0008f] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs:237 at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type,string) [0x00007] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs:316 at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor () [0x00006] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs:82 at GWService..ctor () <IL 0x00001, 0x00011> at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0001c, 0x00040> at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (object,object[],System.Exception&) <0x00004> at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (object,object[],System.Exception&) <0x00004> at System.Reflection.MonoCMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00119] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System.Reflection/MonoMethod.cs:504 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System.Reflection/MonoMethod.cs:519 at System.Reflection.ConstructorInfo.Invoke (object[]) [0x0000e] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:77 at System.Activator.CreateInstance (System.Type,bool) [0x000b5] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System/Activator.cs:337 at System.Activator.CreateInstance (System.Type) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System/Activator.cs:219 at LinuxWebMethodTestApp.LinuxWebMethodTestApp/SomeComponent.InvokeWorker (object[]) [0x0010b] in LinuxWebMethodTestApp/LinuxWebMethodTestApp.vb:209 at (wrapper remoting-invoke-with-check) LinuxWebMethodTestApp.LinuxWebMethodTestApp/SomeComponent.InvokeWorker (object[]) <IL 0x00033, 0x0008b> at LinuxWebMethodTestApp.LinuxWebMethodTestApp.TestForm_Load (object,System.EventArgs) [0x00061] in LinuxWebMethodTestApp/LinuxWebMethodTestApp.vb:248 at System.Windows.Forms.Form.OnLoad (System.EventArgs) [0x00022] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2162 at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs) [0x00029] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2988 at System.Windows.Forms.Form.OnCreateControl () [0x00027] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2105 at System.Windows.Forms.Control.CreateControl () [0x000a3] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3804 at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message&) [0x0003b] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5811 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) [0x001db] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5389 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message&) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:807 at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message&) [0x0003c] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:711 at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&) [0x00165] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2613 at System.Windows.Forms.Control/ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234 at System.Windows.Forms.Control/ControlNativeWindow.WndProc (System.Windows.Forms.Message&) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215 at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) [0x00085] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242 at System.Windows.Forms.XplatUIX11.SendMessage (intptr,System.Windows.Forms.Msg,intptr,intptr) [0x000d6] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5302 at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd,System.Windows.Forms.WindowType) [0x00034] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1529 at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams) [0x00597] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2910 at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:504 at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams) [0x0000c] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:167 at System.Windows.Forms.Control.CreateHandle () [0x0003a] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4501 at System.Windows.Forms.Form.CreateHandle () [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1991 at System.Windows.Forms.Control.CreateControl () [0x0004b] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3784 at System.Windows.Forms.Control.SetVisibleCore (bool) [0x00043] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5072 at System.Windows.Forms.Form.SetVisibleCore (bool) [0x0007b] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2461 at System.Windows.Forms.Control.set_Visible (bool) [0x0000c] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3436 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <IL 0x00033, 0x0008c> at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) [0x00059] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:864 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) [0x00014] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:763 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) [0x00000] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:742 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00032] in /usr/src/packages/BUILD/mono-basic-2.6.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.ApplicationServices/WindowsFormsApplicationBase.vb:198 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (string[]) [0x00000] in /usr/src/packages/BUILD/mono-basic-2.6.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.ApplicationServices/WindowsFormsApplicationBase.vb:79 at LinuxWebMethodTestApp.My.MyApplication.Main (string[]) [0x00012] in 17d14f5c-a337-4978-8281-53493378c1071.vb:81 at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x0001d, 0x00042> Output from /usr/bin/WSDL2 (some warnings): Web Services Description Language Utility Mono Framework v2.0.50727.1433 There where some warnings while generating the code: http://192.168.1.55/gw/rest/V1?method=gw.getWSDL - This web reference does not conform to WS-I Basic Profile v1.1 R2706: A wsdl:binding in a DESCRIPTION MUST use the value of "literal" for the use attribute in all soapbind:body, soapbind:fault, soapbind:header and soapbind:headerfault elements * Binding 'GWBinding', in Service Description 'urn:gw' R2209: A wsdl:binding in a DESCRIPTION SHOULD bind every wsdl:part of a wsdl:message in the wsdl:portType to which it refers to one of soapbind:body, soapbind:header, soapbind:fault or soapbind:headerfault * Binding 'GWBinding', in Service Description 'urn:gw' R2102: A QName reference to a Schema component in a DESCRIPTION MUST use the namespace defined in the targetNamespace attribute on the xsd:schema element, or to a namespace defined in the namespace attribute on an xsd:import element within the xsd:schema element * XmlSchemaComplexContentRestriction in Schema Schema 'urn:gw', in Service Description 'urn:gw' * XmlSchemaAttribute in Schema Schema 'urn:gw', in Service Description 'urn:gw' ( 16+ times, same messages ) R2110: In a DESCRIPTION, array declarations MUST NOT extend or restrict the soapenc:Array type * XmlSchemaComplexContentRestriction in Schema Schema 'urn:gw', in Service Description 'urn:gw' ( 16+ times, same message ) R2111: In a DESCRIPTION, array declarations MUST NOT use wsdl:arrayType attribute in the type declaration * XmlSchemaAttribute in Schema Schema 'urn:gw', in Service Description 'urn:gw' ( 16+ times, same message ) ----- Brian Kesecker, Software Developer, http://www.augustasystems.com/ Augusta Systems, Inc. -- View this message in context: http://mono.1490590.n4.nabble.com/Web-Service-A-works-B-fails-with-tp2223543p2223543.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
