Dim StudentField As String = "Ash[0].Detail[0].Student[0]"
PDFForm.FillField(StudentField, username)
If I use the back button in my browser and re-do the operation then everything now works perfectly. The problem only seems to occur when I try the FillField the first time after logging on.
Please be sure that you have the permission to access that directory.
To start IIS Manager from the Computer Management window
From the Start menu, right-click My Computer, and click Manage.
In the console tree, expand the Services and Applications node.
Click Internet Information Services. The names and states of your Web sites appear in the details pane.
In the console tree, expand the Internet Information Services node and any subsequent Web site nodes to see a list of directories and virtual directories for that Web site.
Yes, I defintely have read & write access into that directory. Bear in mind that the directory is on my ISP site, so using IIS isn't an option.
The intersting point is that when I use the back button in my browser and re-do the operation, everything works. The error only occurs the first time after logon.
I'm using the following code to access the pdf file. I should mention that I'm using FileEditor.Append to build the pdf file before I manipulate the fields within it.
The FileEditor.Append command is working perfectly, it's the Fillfield I have the problem with. This code is in a Subroutine called from a LinkButton. If I catch the error first time through, exit the Sub and then click on the LinkButton again the code works perfectly.
Regards
Brian
Dim FileEditor As PdfFileEditor = New PdfFileEditor()