[MonoDevelop] Failing to create an external process object

Petar Dodev petar.dodev at gmail.com
Tue Jun 26 20:48:31 UTC 2012


Hi!

I'm writing an addin for MonoDevelop and I want to create an external
process object using

     editorProcess =
(EditorProcess)Runtime.ProcessService.CreateExternalProcessObject
(typeof(EditorProcess), false);

where EditorProcess is a class from the addin's assembly:

    [AddinDependency ("MonoDevelop.DesignerSupport")]
    public class EditorProcess : RemoteDesignerProcess {...}

The method fails to load the class from the assembly throwing the following
exception:

openSUSE 12.1 x86_64, MonoDevelop 3.1, Mono 2.10.6
**************************
System.TypeLoadException: Could not load type
'AspNetEdit.Editor.EditorProcess' from assembly 'AspNetEdit,
Version=2.6.0.0, Culture=neutral, PublicKeyToken=null'.
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
System.Exception& exc, System.Object[]& out_args) [0x00165] in
/home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs:226
**************************

Windows 7 x86, MonoDevelop 3.0.3.2, .NET 4.0
**************************
System.InvalidOperationException: Type not found:
AspNetEdit.Editor.EditorProcess

Server stack trace:
   at ProcessHost.CreateInstance(String assemblyPath, String typeName)
   at
System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr
md, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInContext, Object[]& outArgs)
   at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
   at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
   at MonoDevelop.Core.Execution.IProcessHost.CreateInstance(String
assemblyPath, String typeName)
   at
MonoDevelop.Core.Execution.ProcessHostController.CreateInstance(String
assemblyPath, String typeName, String[] addins, IList`1 userAssemblyPaths)
   at
MonoDevelop.Core.Execution.ProcessService.CreateExternalProcessObject(Type
type, Boolean shared, IList`1 userAssemblyPaths)
   at AspNetEdit.Integration.AspNetEditViewContent.Selected() in c:\Program
Files\MonoDevelop\source\AspNetEdit\AspNetEdit.Integration\AspNetEditViewContent.cs:line
177
   at MonoDevelop.Ide.Gui.SdiWorkspaceWindow.SetCurrentView(Int32
newIndex)
   at
MonoDevelop.Ide.Gui.SdiWorkspaceWindow.<>c__DisplayClassd.<AddButton>b__c(Object
sender, EventArgs e)
   at MonoDevelop.Components.Tab.OnActivated(EventArgs e)
   at MonoDevelop.Components.Tab.set_Active(Boolean value)
   at MonoDevelop.Components.Tabstrip.set_ActiveTab(Int32 value)
   at MonoDevelop.Components.Tabstrip.OnButtonPressEvent(EventButton evnt)
   at Gtk.Widget.buttonpressevent_cb(IntPtr widget, IntPtr evnt)
**************************

I've tried removing addin-dependencies, running the addin on different
platforms, started a new bare-bones addin, but I get the same problem.
I don't know what to try next. Please, help!

Regards,
Petar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20120626/f16186e9/attachment.html>


More information about the Monodevelop-list mailing list