June 29th, 2010, 05:09 PM
ITextSharp saying File not found when published to My server.
I am using ItextSharp and I am getting a new font for it by doing this
string fontPath = Path.GetFullPath("C:\\BMSApplicationFiles\\Fonts\\FREE3OF9.TTF");
BaseFont barCodeBase = BaseFont.CreateFont(fontPath, BaseFont.CP1252, BaseFont.EMBEDDED);
That file is in that directory on both my dev machine and the server. When i run this on my dev machine it works fine, when published to my server I get an error saying FREE3OF9.TTF is not found as a file or a resource. I have double and triple checked that the file is in fact there on my server. My application has full trust on IIS. and IIS user has full access to this folder. And still I get this error. Very frustrating. Any ideas??
This code is Not inside the Web Application but inside a DLL class library that the web application is referencing. Do I need to add any more special permissions or something?
July 1st, 2010, 05:15 PM
Re: ITextSharp saying File not found when published to My server.
did you try to add this file inside your Asp website directory and try to read it from there?
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black
, Living or Dieing
and 0 or 1 that's MY life
iam an Object in Object Oriented Life
Click Here to Expand Forum to Full Width