[mono-vb] No element named ListViewItemCount could be found

Rolf Bjarne Kvinge rolflists at ya.com
Mon Mar 16 03:55:10 EDT 2009


> Hi Newsgroup,
> these are my first contacts with mono. Some users ask me to make my
> VB2008 (NET2) running under Mono. (it already runs under Wine but I
> feel Mono could be a better coice)
> I have checked the project with MoMA and found 7 Issues which I could
> work around by using the methods depending on runtime.
> Now I get an Exeption while loading the mainform. I have a lot of
> listviews in the project which are to 95% in report mode and use 60%
> the Listview.Groups.

This is actually a question for the mono-winforms-list, but I'll try to give
an answer anyway.

> The errormessage as follow (the Project do not contains
> "ListViewItemCount" - google show no results) Where I can find the
> rootcause for this exeption?:
> Unhandled Exception: System.Reflection.TargetInvocationException:
> Exception has been thrown by the target of an invocation. --->
> System.Runtime.Serialization.SerializationException: No element named
> ListViewItemCount could be found.

Looks like mono is having a problem deserializing the resources for a form,
a bug report (bugzilla.novell.com) would be very welcome.

However I think you can work around this problem by building with mono
(install MonoDevelop, open your VS solution in MonoDevelop and run/build
it). This way the resources will be generated by mono and mono shouldn't
have any problems loading them. 


More information about the Mono-vb mailing list