473,804 Members | 3,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I am using ActivePDF tool kit to generate PDF files in our ASP.NET 2.0 web app. Need help!

Hello,
We are using ActivePDF toolkit to generate reports in our web
application. We are using ASP.NET 2.0 and SQL Server 2005.

We are able to open the pdf files on our local development box with out
any problem. But having problems on the production server.

When we moved our application to the production serrver we made sure
that we copied the
production version of the APToolkitNET.dl l to our project BIN directory
but still having problems.

When we try opening the PDF file on the server this is the error we are
getting:

"Adobe Reader could not open 'XXXXX[2].pdf' because it is either no a
supported file type or because the file has been corrupted (for
example, it was sent as an email attachment and wasn't correctly
decode)"

But the same code works perfectly fine on my development box but not
sure why is this causing on the server.

The version of Adobe Reader on my development box is 6.0
The version of Adobe Reader on the server is 7.0 (not sure if this
makes any difference but just want to mention it here)

Can some one help me with this if any one of you had similar problem in
the past?

Thanks in advance
-L

Apr 22 '06 #1
1 4365
I have run into this before. It has nothing to do with the ActivePDF though.

It may be that content-expiration on the server is set to "immediatel y". In
this case, if a round trip is required by the client to the server then the
client may not be able to access it because it has already expired. Try
setting content expiration to 1 minute on the web server.

Also, if using SSL, the "do not save encrypted files to disk" setting in IE
may prevent the PDF from being saved to Temporary Internet Files and may
cause a similar problem.

--
Brad

"Software is like melted pudding..."
"Learner" wrote:
Hello,
We are using ActivePDF toolkit to generate reports in our web
application. We are using ASP.NET 2.0 and SQL Server 2005.

We are able to open the pdf files on our local development box with out
any problem. But having problems on the production server.

When we moved our application to the production serrver we made sure
that we copied the
production version of the APToolkitNET.dl l to our project BIN directory
but still having problems.

When we try opening the PDF file on the server this is the error we are
getting:

"Adobe Reader could not open 'XXXXX[2].pdf' because it is either no a
supported file type or because the file has been corrupted (for
example, it was sent as an email attachment and wasn't correctly
decode)"

But the same code works perfectly fine on my development box but not
sure why is this causing on the server.

The version of Adobe Reader on my development box is 6.0
The version of Adobe Reader on the server is 7.0 (not sure if this
makes any difference but just want to mention it here)

Can some one help me with this if any one of you had similar problem in
the past?

Thanks in advance
-L

Apr 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1833
by: jason | last post by:
Does anyone have any ideas on a PAGE WATCH tool or an application that allows a user to be notified when page changes automatically by email. My immediate thoughts would be to use the FSO object to go in and check files by date and then generate a CDO script. Another possibility would be to limit the tool to database portions of the site where I can track changes. But, both approaches are complicated by the need to automatically...
1
475
by: jtsree | last post by:
I am Using (Windows XP) Visual Studio.net 2003 professional edition working on VB.net language. I am bulding a very very simple project in VB.net where i connect to Access Database by dragging OledbDataAdapter tool from the Data tab of the Toolbox. When OledbDataAdapter has been added to the Component tray i am able to generate a connection to Access database and generate Connection object and also the Test Connection has Succeeded. Now...
121
10196
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
5
3490
by: Benne Smith | last post by:
Hi, I have three enviroments; a development, a testing and a production enviroment. I'm making a big application (.exe), which uses alot of different webservices. I don't use the webservices by adding a WebReference, since it does not allow me to keep state (cookiecontainer) or to specify functions on the classes (like if i want to override the ToString() function on a class from my webservice). So the only way i can see how i can get...
3
1178
by: Paul | last post by:
Hi, Does anyone use/know of a web hosting provider that they would recommend? We need to generate pdfs on the fly and our current provider does not offer ActivePDF? Thank you for reading and maybe helping. Paul.
2
1747
by: dchadha | last post by:
Hi, I need to convert HTML (online or offline) to PDF in C# application. In addition I want to merge PDF documents also on the fly. I am looking for C# / VB.NET code or a .NET component which can be referenced in my project and accomplish the required tasks. I have browsed but didn't find a suitable code or component to accomplish the above task. I will really appreciate any help or pointer in this.
6
5013
by: Robbie Hatley | last post by:
I'm maintaining a software project with 134 C++ files, some of them huge (as much as 10,000 lines each), and very few prototypes. The author's attitude towards prototypes was like this: Prototypes are only good for headers to be included in other files. For functions which call each other inside one file, such as A calls B which calls C and D, just define the functions in order D, C, B, A, and you'll never need prototypes.
4
2387
by: Anastasios Hatzis | last post by:
I'm looking for a pattern where different client implementations can use the same commands of some fictive tool ("foo") by accessing some kind of API. Actually I have the need for such pattern for my own tool (http://openswarm.sourceforge.net). I already started restructuring my code to separate the actual command implementations from the command-line scripts (which is optparser-based now) and have some ideas how to proceed. But probably...
1
1709
by: lnong | last post by:
Im using the ActivePDF Toolkit to programmatically fill in a PDF document using .NET. I have a mulitline textfield (textbox), and I want to be able to insert a newline character. I cannot find a way to do this. I tried outputting these, but none work. Please help! 1) "This is Line 1" + "\n" + "This is Line 2" 2) "This is Line 1" + Environment.NewLine + "This is Line 2" 3) "This is Line 1" + ControlChars.CrLf + "This is Line 2" 4)...
0
9582
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10580
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9157
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5652
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2993
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.