469,963 Members | 1,652 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

aspx web project exception could not find the file on server

hi,
I have aspx web project. I added reference to J# project dll. In J# project
i have link towords file on IIS server (aspx project) File link code in J#
(java) are below:
public static void Pdf() {
try {
//Setup directories
File baseDir = new File(".");
File outDir = new File(baseDir, "TestPages");
outDir.mkdirs();
//Setup input and output files
File fofile = new File(baseDir, "Styles/test.xml");
File pdffile = new File(outDir , "ResultFO2PDF.pdf");
ExampleFO2PDF app = new ExampleFO2PDF();
app.convertFO2PDF(fofile, pdffile);
} catch (Exception e) {
e.printStackTrace(System.err);
System.out.println(System.err);
System.exit(-1);
}
}
I made folder "Styles" and "TestPages" under this link
C:\Inetpub\wwwroot\TourWeb\WebUISNP\Styles
But when i run above code in aspx web project it could not find the file
"test.xml" and gives exception.
Any sample code or ideas

Cheer,
sa
Nov 16 '05 #1
0 974

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Daniel Rimmelzwaan | last post: by
6 posts views Thread by John Lau | last post: by
29 posts views Thread by John Rivers | last post: by
4 posts views Thread by Dan Sikorsky | last post: by
7 posts views Thread by JeremyWoertink | last post: by
2 posts views Thread by AAaron123 | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.