#3 dependency problems

open
nobody
None
5
2004-07-22
2004-07-22
No

Hello!

I get this error message:
"File or assembly name ApacheFop.Net, or one of its
dependencies, was not found."

Code snippet (C#):
-------------------------
try
{
String foFilePath = Path.GetTempPath() +
"tsfo.xml";
System.Xml.Xsl.XslTransform xslt = new
System.Xml.Xsl.XslTransform();
xslt.Load(new XmlTextReader(new
System.IO.StreamReader("c:\\productpdf.fo")), new
XmlUrlResolver(),
XmlSecureResolver.CreateEvidenceForUrl("http://www.anywhere.net"));
xslt.Transform("C:\\Porr_UPStd.xml",
foFilePath, null);

System.IO.StreamReader reader = new
System.IO.StreamReader(foFilePath);
String foString = reader.ReadToEnd();

sbyte[] pdfData = new Engine().Run(foString);
FileOutputStream driverOutput = new
FileOutputStream("C:\\Porr_UPStd.pdf");
driverOutput.write(pdfData);
driverOutput.close();

Console.WriteLine("Made it here.");
}
catch(Exception e)
{
Console.WriteLine(e.Message);
}
Console.ReadLine();
-------------------------

I loaded ApacheFop.Net.dll into the dependency walker.
APPHELP.DLL was missing. I copied the missing DLL into
C:\WINNT\system32 (OS: Windows 2000 Server SP4). No DLL
is missing anymore. But dependency walker still says:
"Warning: At least one module has an unresolved import
due to a missing export function in a delay-load
dependent module."
My code still throws the same exception.

What is wrong here?

Regards,

Reinhold Mannsberger

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks