From: André K. <ak...@ho...> - 2012-11-13 18:46:24
|
If I do this to get the stack trace, it just doesn't open the message box (with the stack trace): Try Dim dict As New MultiDictionary(Of Double, Integer)() Catch ex As Exception MessageBox.Show(ex.StackTrace.ToString()) End Try André Date: Tue, 13 Nov 2012 10:10:32 -0800 From: rv...@do... To: dot...@li... Subject: Re: [dotNetRDF-Support] Creating a multidictionary I don't see why that should cause that error, certainly declaring a MultiDictionary with that type signature in C# doesn't cause an issue. I don't have VB installed on my machine so can't test your example as-is Can you provide the stack trace for the error? Rob From: André Kahlert <ak...@ho...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Tuesday, November 13, 2012 9:58 AM To: <dot...@li...> Subject: Re: [dotNetRDF-Support] Creating a multidictionary It's just the same piece of code as before: Imports VDS.CommonPublic Class Form1 Private SubForm1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load Dim dict As New MultiDictionary(OfDouble, Integer)() End SubEnd Class Thanks... André Date: Tue, 13 Nov 2012 09:22:24 -0800 From: rv...@do... To: dot...@li... Subject: Re: [dotNetRDF-Support] Creating a multidictionary Hi Andre Without seeing the code I can only guess – mscorlib is the .Net framework core so most likely nothing to do with dotNetRDF (but without code I can't tell) An ArgumentException would imply you (or dotNetRDF) invoked some .Net framework method with incorrect/malformed arguments, you'll have to send a minimal code example if you want more help with this Rob From: André Kahlert <ak...@ho...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Tuesday, November 13, 2012 9:02 AM To: <dot...@li...> Subject: Re: [dotNetRDF-Support] Creating a multidictionary Rob, thanks for your quick support - that works now ;) I just found out that I also get the following exception: A first chance exception of type 'system.argumentexception' occurred in mscorlib.dll What might be causing this? Date: Mon, 12 Nov 2012 09:22:09 -0800 From: rv...@do... To: dot...@li... Subject: Re: [dotNetRDF-Support] Creating a multidictionary Hey Andre This is a common error and is caused by using the wrong build of the dotNetRDF library in your project. In the download package you would have seen a number of directories and you need to ensure you use the DLLs from the directory that matches the target .Net version and profile of your project. >From your error I can see that you are trying to use the .Net 4.0 Full build in a .Net 4.0 Client Profile project. Either use the DLLs from the net40-client folder or switch your project to use .Net 4.0 Full Warning 2 and Error 3 are a result of the mismatched .Net profiles which Warning 1 is informing you of. For future reference if you are able to use NuGet that may be the preferable option for installing dotNetRDF since NuGet will automatically select the correct build of the library based on your projects target .Net version and profile. Hope this helps, Rob Vesse From: André Kahlert <ak...@ho...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Monday, November 12, 2012 4:04 AM To: <dot...@li...> Subject: [dotNetRDF-Support] Creating a multidictionary Hello, I'm trying to create a simple multidictionary in VB.Net: Imports VDS.Common Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load Dim dict As New MultiDictionary(OfDouble, Integer)() End SubEnd Class Unfortunately it gives me the following warnings and errors: Warning 1:The referenced assebmly "dotNETRDF" could not be resolved, because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Warning 2:Namespace or type specified in the Imports "VDS.Common" doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. Error 3:Type "MultiDictionary" is not defined. Any idea what I'm doing wrong here? ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov_______________________________________________ dotNetRDF-Support mailing list dot...@li...https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ dotNetRDF-Support mailing list dot...@li...https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________ dotNetRDF-Support mailing list dot...@li...https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ dotNetRDF-Support mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________ dotNetRDF-Support mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ dotNetRDF-Support mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |