PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Apr 19, 2024 1:28 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ASP.NET Compile Error
PostPosted: Wed Feb 06, 2008 5:37 am 
Offline

Joined: Wed Feb 06, 2008 5:26 am
Posts: 1
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?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 11, 2008 5:56 pm 
Offline

Joined: Mon Feb 11, 2008 5:06 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 249 guests


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 post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group