I have an exe that I built using visual studio 2000 that runs with out a 
hitch on mono. The exe takes a name of an assembly from the command line 
and executes the said method from the command line using refelection. 
The assembly that I am trying to fire works to a point. The break occurs 
when I try to create an instance to a web service.

Assuming that the IntegrationDev is a reference to 
http://localhost/IntegrationDev (I did this is vs as I am not sure how 
to create a web reference in monodevelop programmatically)

when my assembly tries to do the following:
    IntegrationDev.Prospect[] = null;
    IntegrationDev.wsProspect wsP = new IntegrationDev.wsProspect();

I get an exception with the following data:

EXCEPTION:An exception was thrown by the type initializer for 
System.Xml.Serialization.XmlSerializer STACKTRACE:in <0x00000> <unknown 
method>
in <0x00074> System.Web.Services.Protocols.TypeStubInfo:Initialize ()
in <0x00068> 
System.Web.Services.Protocols.LogicalTypeInfo:CreateTypeStubInfo 
(System.Type type)
in <0x0005f> System.Web.Services.Protocols.LogicalTypeInfo:GetTypeStub 
(System.String protocolName)
in <0x0001d> System.Web.Services.Protocols.TypeStubManager:GetTypeStub 
(System.Type t, System.String protocolName)
in <0x00025> System.Web.Services.Protocols.SoapHttpClientProtocol:.ctor ()
in <0x0000a> Realum.LevelOneIntegrationDev.wsMITSGuestCard:.ctor ()
in (wrapper remoting-invoke-with-check) 
Realum.LevelOneIntegrationDev.wsMITSGuestCard:.ctor ()
in <0x00b6a> Realum.RealumIntegration:RealumIntegration_Start () 
INNER_EXCEPTION:System.Reflection.TargetInvocationException: Exception 
has been thrown by the target of an invocation. ---> 
System.IO.IOException: Sharing violation on path ./logs/IntegrationBus.log
in <0x0032a> System.IO.FileStream:.ctor (System.String name, FileMode 
mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean 
isAsync, Boolean anonymous)
in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode 
mode, FileAccess access, FileShare share)
in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor 
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
in <0x000da> System.IO.StreamWriter:.ctor (System.String path, Boolean 
append, System.Text.Encoding encoding, Int32 bufferSize)
in <0x0002a> System.IO.StreamWriter:.ctor (System.String path, Boolean 
append)
in (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor 
(string,bool)
in <0x0001f> System.IO.File:AppendText (System.String path)
in <0x0003d> System.Diagnostics.TextWriterTraceListener:.ctor 
(System.String fileName, System.String name)
in <0x00012> System.Diagnostics.TextWriterTraceListener:.ctor 
(System.String fileName)
in <0x00000> <unknown method>
in (wrapper managed-to-native) 
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in <0x0006f> System.Reflection.MonoCMethod:Invoke (System.Object obj, 
BindingFlags invokeAttr, System.Reflection.Binder binder, 
System.Object[] parameters, System.Globalization.CultureInfo culture)--- 
End of inner exception stack trace ---

In the exception message it is telling me of an unknown method. Is there 
a way to find out what this "unknown method"'s name is?

The assembly was built on a win machine and copied over to my linux box. 
That said is the information for the webservice not statically built 
into the assembly?



many thanks in advance,
shawn vose


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to