|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
m5sisk
Joined: 06 Feb 2008 Posts: 1
|
Posted: Wed Feb 06, 2008 5:37 am Post subject: ASP.NET Compile Error |
|
|
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? |
|
Back to top |
|
|
myro
Joined: 11 Feb 2008 Posts: 2
|
Posted: Mon Feb 11, 2008 5:56 pm Post subject: |
|
|
in your visual studio open up you website, and try to compile it in "Publishing mode"
Build -> Publish WebSite.
make sure that the project have copied all the dll references in /bin/
let me know if it works or not. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|