473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Internet Explorer problem after upgrade from Visual Studio 2003 to Visual Studion 200

Hi,

I use following C# code behind an aspx file to send a *.pdf file to the
Internet Explorer.
The variable "buffer" is of type byte[] and is filled with the contents of a
*.pdf file.
Expand|Select|Wrap|Line Numbers
  1. this.Response.ClearHeaders();
  2. this.Response.Clear();
  3. this.Response.ContentType = "application/pdf";
  4. this.Response.BinaryWrite(buffer);
  5. this.Response.End();
  6.  
All works fine for years. When the aspx file is requested, the acrobat
reader is activated and the pdf file is shown.

Now I have installed Visual Studio 2005 parallel to Visual Studio 2003. All
seems to run as expected, except the pdf file is not shown anymore. The
Internet Explorer 6 shows only a white background, but does not start
acrobat reader. When I try to see the source text, I get an error message,
that the "xml source cannot be shown".

After deinstalling Visual Studio 2005 by Windows System Recovery all runs
normal again.
Any idea?
Aug 2 '07 #1
2 1327
Plater
7,872 Expert 4TB
I would suggest using telnet (if possible) or even (gah!) firefox to see what the RETURNED headers are when you request the page that should be a pdf.

You clear all the headers out, but what the definition of "clear" is might be different depending on which version of VS you have, and one of the headers might be getting mangled.

I do something similar (although I require mine to popup with a "save open cancel" dialog)
Expand|Select|Wrap|Line Numbers
  1. Response.Clear();
  2. Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
  3. Response.ContentType = "Application/PDF";
  4. Response.AddHeader("content-disposition", "attachment; filename=" + System.IO.Path.GetFileName(getfile));
  5. Response.WriteFile(getfile);//I send directly from a file, but you should be able to just send the bytes
  6. Response.End();
  7.  
Aug 3 '07 #2
kenobewan
4,871 Expert 4TB
It appears that IE6 is not the culprit. I would think that there is a referencing problem that is not explicit. The difference may be in the framework.
Aug 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: thdevdex | last post by:
I recently upgraded to Visual Studio.Net 2003. I'm a bit hesitant to remove VS2002.Net in fear of the removal messing up 2003. However, I need the disk space but don't want the hassle of...
5
by: Edward Mitchell | last post by:
Is there a way that I can repair MS Internet Explorer? I seem to have broken it somewhere. I have been developing a .NET app. Three days ago I saw a message box in a web site that I visit saying...
1
by: Doug Bell | last post by:
Hi, If I modify my Registry adding a new key HKEY_CLASSES_ROOT\*\shell\Use My App\command with a (Default) Value of C:\Program Files\Doug\DotNetApps\MyApp.exe "%1" then right clicking on files in...
36
by: Tim | last post by:
Is there a way to upgrade from Visual C++ Net 2002 to Visual C++ Net 2003? The 2002 version does not provide a Windows Forms Designer. I can't find any upgrade package on Microsoft's website. ...
2
by: Herfried K. Wagner [MVP] | last post by:
Hello, There are often questions in this newsgroup posted by VS.NET 2002 users. VS.NET 2002 is "out of date", its successor is VS.NET 2003. There is a special ("cheap") upgrade offer available...
2
by: Ulf | last post by:
I have found Ajax and webservice.htc that is not supported any more. Is there a built in funcion for webservices in Visual Studion 2005 / .Net 2.0 ? What is the best solution ?
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
1
by: Dhwanit Shah | last post by:
Hi, I have one question regarding ASP.NET 2.0. Question : If i want to use ASP.NET 2.0 along with .Net Framework 2.0 and Visual Studio 2003 then what shud i do ? Actually i want to use...
0
by: Bernhard Hess | last post by:
I use following C# code behind an aspx file to send a *.pdf file to the Internet Explorer. The variable "buffer" is of type byte and is filled with the contents of a *.pdf file. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.