SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am migrating from WSS 3.0 to SharePoint Server 2010. In WSS in the Web Part Gallery, I could open .xml files for a custom Web Part in the browser, as long as they had the < ?xml... > tag. With 2010, the Name field in the Web Part Gallery links to the .webpart file (which is still xml). But when I click the Name, it prompts me to download it. How do I display the .webpart file in the browser instead?

share|improve this question

It turns out the answer is, SharePoint 2010 forces certain file types to be downloaded, even if you associate the file extension (.webpart in this example) with Internet Explorer. I found the answer here:

The author gives detailed instructions for excluding a specific extension, so it is displayed in the browser instead of being downloaded. However, if you are working in a Development environment, and want to just turn off the security setting, follow these steps:

  • Open Central Administration (you must be a Farm Administrator).
  • Under Application Management, click "Manage Web Applications".
  • From the Web Applications Management page, click your Web Application to select it.
  • NOTE: Some extensions are simply blocked. From the ribbon, click "Blocked File Types", remove your extension from the dialog window shown, and click "OK" to save your changes. If your extension is not listed (for example, .xml or .webpart), continue with these instructions.
  • From the ribbon, click "General Settings".
  • From the Web Application General Settings dialog, scroll about halfway down to "Browser File Handling" and select "Permissive".
  • Click "OK" to save your changes.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.