How do I get IE to open a file with its associated application?

Posted by Wayne on Stack Overflow See other posts from Stack Overflow or by Wayne
Published on 2008-10-22T15:55:36Z Indexed on 2010/04/21 23:03 UTC
Read the original article Hit count: 236

MSTest produces an XML file with a .trx extension containing test results.

If I have a .trx file on a machine without Visual Studio installed, I get prompted to "Use the Web Service..." or "Select from a list...", which is expected. If I have a .trx file on my development machine and I open it, it opens in Visual Studio, which is expected. If I click a link on a web page or in an email which gets a .trx file from my build server, it ALWAYS opens the XML in IE.

How do I configure IE (or IIS on the build server) to open the remote .trx file in Visual Studio, if it's installed, or prompt if it's not?

UPDATE: If I rename the .trx file on the server and give it various extensions (eg. .bmp, .msi, .txt, .zip), it still opens as XML in IE, so it's clearly going by the content of the file and not the declared MIME type.

© Stack Overflow or respective owner

Related posts about internet-explorer

Related posts about mime-type