[MonoDevelop] Web Reference AddIn Update & Questions

Gideon de Swardt gdeswardt1978 at yahoo.co.uk
Wed Aug 9 12:36:38 EDT 2006


Hi All

The Web Reference AddIn now supports functionality to add and delete web
reference items to C# and VBNET projects. I have attached a pre-alpha
build of the AddIn for those who want to play with it. 

Currently the delete command, does delete the web reference from the
project and save the project, but the it still displays the item until
you refresh the node. Does anybody know how I can automatically refresh
the "Web Reference" node when ever I remove a ProjectFile from a
Project?

I am currently working on updating a web reference, this was suppose to
be the easy part, but unfortunately I have run into some problems.
During the generation of a web reference I use the
DiscoveryClientProtocol class to generate a map file. 

The DiscoveryClientProtocol class also provides a method ReadAll that
reads in a file containing a map of saved discovery documents populating
the Documents and References properties, with discovery documents, XML
Schema Definition (XSD) schemas, and service descriptions referenced in
the file. I am currently running mono 1.1.13.6, and whenever I try to
read the generated map file back into the DiscoveryClientProtocol class
I receive the following error. 

I checked that the base folder of the map file and the TempConvert.wsdl
and TempConvert.disco files both exists in the folder. I don't know if
this is a bug with the Mono Frameworks implementation of the
DiscoveryClientProtocol, or a bug in my code, or if this has been fixed
in the 1.1.16.1 beta release. I checked the CHANGELOG on the
System.Web.Discovery svn folder in the Mono svn, but could not find any
reference to ReadAll method at all. It just seems a bit strange that the
DiscoveryClientProtocol class cant even read map files that was
generated by the same class on the same version of the framework. Any
help on this topic would be much appreciated. Please see below for Stack
Trace.

Regards

Gideon de Swardt


Exception occurred: Exception has been thrown by the target of an
invocation.

System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.IO.FileNotFoundException:
Could not find file "TempConvert.wsdl". : TempConvert.wsdl
in <0x002bb> System.IO.FileStream:.ctor (System.String name, FileMode
mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean
isAsync, Boolean anonymous)
in <0x0005c> System.IO.FileStream:.ctor (System.String name, FileMode
mode, FileAccess access)
in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess)
in <0x0017b>
System.Web.Services.Discovery.DiscoveryClientProtocol:ReadAll
(System.String topLevelFilename)
in (wrapper remoting-invoke-with-check)
System.Web.Services.Discovery.DiscoveryClientProtocol:ReadAll (string)
in <0x00055> MonoDevelop.WebReferences.WebReferenceItem:Update ()
in <0x00041>
MonoDevelop.WebReferences.Commands.WebReferenceCommandHandler:Update ()
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x0008d> System.Reflection.MonoMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)---
End of inner exception stack trace ---

in <0x0010e> System.Reflection.MonoMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
in <0x0001a> System.Reflection.MethodBase:Invoke (System.Object obj,
System.Object[] parameters)
in <0x00016> MonoDevelop.Components.Commands.CommandHandlerInfo:Run
(System.Object cmdTarget)
in <0x00331>
MonoDevelop.Components.Commands.CommandManager:DispatchCommand
(System.Object commandId, System.Object dataItem, System.Object
initialTarget)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MonoDevelop.WebReferences.tar.gz
Type: application/x-compressed-tar
Size: 26289 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060809/85a3f41d/attachment-0001.bin 


More information about the Monodevelop-list mailing list