[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

msg file doesn't open in Firefox

Posted on 2012-08-15
12
Medium Priority
?
1,559 Views
Last Modified: 2012-12-09
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
0
Comment
Question by:RTSol
10 Comments
 
LVL 7

Expert Comment

by:namol
ID: 38297781
What OS are you using? If it's XP then you can try this knowledge base article.

http://support.microsoft.com/kb/312346
0
 

Author Comment

by:RTSol
ID: 38298071
It is not XP - it is Windows 7
0
 
LVL 4

Expert Comment

by:Friman001
ID: 38299124
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 4

Expert Comment

by:Friman001
ID: 38310565
Dude, if it is just a path, rework something!
0
 
LVL 15

Expert Comment

by:rajeeshmca
ID: 38310820
Check for the settings in the firefox.. like the pop up is disabled..

Regards
Rajeesh
0
 

Author Comment

by:RTSol
ID: 38311411
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
 
LVL 25

Expert Comment

by:apeter
ID: 38313778
Did you tried below

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

Author Comment

by:RTSol
ID: 38316459
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
 

Accepted Solution

by:
RTSol earned 0 total points
ID: 38658059
Didn't find a solutioin for this - doing it in another way
0
 

Author Closing Comment

by:RTSol
ID: 38673550
Went for another solution
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question