[redland-dev] Using the Redland RDF library in VS2005 C# applications

Lou Sakey ljsakey at verizon.net
Sat Jun 14 18:42:57 BST 2008


I have successful build and ran Redland 1.0.6 and 1.0.7 using VS2005.  The
existing project files are completely out of date.  The crashes that I
initially experienced were related to inconsistent use of the C runtimes.

Some of the projects specified a shared DLL, others a static, some single
threaded, some multi-threaded.

 

-----Original Message-----
From: redland-dev-bounces at lists.librdf.org
[mailto:redland-dev-bounces at lists.librdf.org] On Behalf Of Helm, P.W. (Pim)
van den
Sent: Thursday, June 12, 2008 12:17 PM
To: redland-dev at lists.librdf.org
Subject: [redland-dev] Using the Redland RDF library in VS2005 C#
applications

Hi,
 
I am trying to build the RDF library and using older versions in a C#
application created in VS2005. Currently every attempt fails. Building
the last SVN version in VS2005 complaints about missing function
specifications in the Raptor library. 
 
Using an older (2006) Redland.NET.dll fails to load dynamically with the
message:
<<
An unhandled exception of type 'System.IO.FileLoadException' occurred in
System.Windows.Forms.dll
 
Additional information: Could not load file or assembly 'Redland.NET,
Version=1.0.2.1, Culture=neutral, PublicKeyToken=3d075a939a316751' or
one of its dependencies. Strong name validation failed. (Exception from
HRESULT: 0x8013141A)
>>
 
Using the C.dll's and the C# wrapper files inside the application also
fails. My application just uses a small piece of code:
<<
Redland.MemoryStorage storage = new
Redland.MemoryStorage("contexts='yes'");
Redland.Model model = new Redland.Model(storage);
Redland.Parser parser = new Redland.Parser();
foreach (Redland.Statement s in parser.ParseAsStream(url_input.Text))
	model.AddStatement(s);
model_output.Text = model.ToString(); 
>>

This crashes in the foreach loop when running the first time. To be more
precise deep inside the ParseAsStream function.

Does any one have an idea how to use the rdflib inside C#? 

Kind regards,
Pim van den Helm
This e-mail and its contents are subject to the DISCLAIMER at
http://www.tno.nl/disclaimer/email.html

_______________________________________________
redland-dev mailing list
redland-dev at lists.librdf.org
http://lists.librdf.org/mailman/listinfo/redland-dev



More information about the redland-dev mailing list