• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1730
  • Last Modified:

MIME type for .master

I am working with a .master file in Expression Web. So far everything works but I cannot get just the master.master page come up in the browser.

I tried text/plain but I could not bring that page up in the browser - I actually received this error

This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.master' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested URL: /MasterPage1.master  

What is the correct MIME type for .master pages?
0
coreybryant
Asked:
coreybryant
  • 2
2 Solutions
 
Jens FiedererCommented:
ASP .master pages are not normally SERVED by themselves, they are used to generate pages (maybe I am just confused because "Expression Web" is strange to me, but this IS an ASP.NET question, and in ASP.NET you normally serve up the .ASPX files that REFERENCE a .master file).
0
 
Göran AnderssonCommented:
You can't view the .master file in the browser. A master file is never viewed on it's own, you view the content page, and it uses the master page as a template.

You get the error message because IIS will not let you request the .master file, as it's not meant to be viewed directly.
0
 
Jens FiedererCommented:
If you are curious what the .master page is providing, you could copy it to an .ASPX or a .HTM page (with appropriate wrapping) and look at THAT.
0
 
coreybryantAuthor Commented:
Thanks.  I just saved the file as a TXT file as well so the other user could see the complete source code just in case.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now