[redland-dev] Using the Redland RDF library in VS2005 C#
applications
Helm, P.W. (Pim) van den
pim.vandenhelm at tno.nl
Thu Jun 12 17:17:16 BST 2008
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
More information about the redland-dev
mailing list