Hi all,
I'm trying to create a simple web form that generates a PDF using PDFSharp. Everything works fine on my system, but as soon as I upload the project to the server (all files, including the bin/ folder containing PDFSharp.dll) it throws a compilation error. The error is:
Code:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'PdfDocument' is not defined.
Source Error:
Line 12: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 13:
Line 14: Dim oPDFDocument As PdfDocument
Line 15: Dim oPDFPage As PdfPage
Line 16: Dim oXGraphics As XGraphics
Source File: C:\cygwin\home\sisk\WebSite1\HelloWorld.aspx.vb Line: 14
It looks like it isn't even recognizing PDFSharp.dll; any ideas as to why it's working fine on my local system but completely failing once it's uploaded to the server?