msg file doesn't open in Firefox

Hi,

I have a web page from which I open files stored in SQL. To open them I use a IHttpHandler with this code:

                context.Response.ContentType = "application/vnd.ms-outlook";
                context.Response.AddHeader("content-disposition", "attachment;filename=" + docName);

This works fine to open msg files in Internet Explorer but when I use Firefox I get the following message:

The command line argument is not valid. Verify the switch you are using.

Any idea how to fix this?

Best regards
RTsol
RTSolAsked:
Who is Participating?
 
RTSolConnect With a Mentor Author Commented:
Didn't find a solutioin for this - doing it in another way
0
 
namolCommented:
What OS are you using? If it's XP then you can try this knowledge base article.

http://support.microsoft.com/kb/312346
0
 
RTSolAuthor Commented:
It is not XP - it is Windows 7
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
Friman001Commented:
Use a TableAdaptor to pull data from a SQL Database.  A TableAdaptor will store everything you need to fool around with SQL DB's (e.g. SQL Queries, Connection Strings, ect.)  It is a very hard topic to grasp though but, once you get it... http://msdn.microsoft.com/en-us/library/bz9tthwx(v=vs.80).aspx.

Ryan F
0
 
Friman001Commented:
Dude, if it is just a path, rework something!
0
 
rajeeshmcaCommented:
Check for the settings in the firefox.. like the pop up is disabled..

Regards
Rajeesh
0
 
RTSolAuthor Commented:
Pop ups are allowed. It is only for msg files I have the problem. Other documents like .doc, .xls or .pdf open from Firefox with no problems.
0
 
apeterCommented:
Did you tried below

context.Response.AddHeader("content-disposition", "inline;filename=" + docName);
0
 
RTSolAuthor Commented:
Hi,

It made no difference. It still opens fine in Internet Explorer but with Firefox it needs to be downloaded first - otherwise:

The command line argument is not valid. Verify the switch you are using.

Bets regards
RTSol
0
 
RTSolAuthor Commented:
Went for another solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.