The page you requested could not be supplied due to an extended configuration issue. If the page is a script, add a handler. If you should download the file, add a MIME map.

Source: Internet
Author: User

After installing vs2013 today, the VS Open Project has an error on the page:

The page you requested could not be supplied due to an extended configuration issue. If the page is a script, add a handler. If you should download the file, add a MIME map.

Thinking about it, VS has its own IIS Express, so it may be that the file suffix of a format is not mapped (it was later found that the JSON format did not map). The online search for a long time finally found the following methods:

Local code written with VS2010, when debugging Web reports can not be displayed, with the 24.248 server on the VS2013 still can not be displayed, and finally the project is deployed on the IIS server or not display. Then is a variety of Baidu, degrees Niang said that there is no MIME mapping on IIS, so the browser cannot load the GRF file. OK, configure the MIME type for IIS: Open IIS Manager-->mime Type--Add, file name:. Grf,mime Type: printreports/Agency fees statement. Grf. A miracle has occurred, and Web reports published on IIS can be accessed normally. But I can't see the effect in the debug phase, every time I have to modify, commit code on VS2010, then update, build, publish code on the VS2013 of the 24.248 server, and finally see the effect on IIS.   How, very scratching your heads! Solution One: Add a MIME mapping for IIS Express. If you have VS2010 installed on your computer, you must first install the IIS Express Debug server, because the VS2010 comes with an ASP. NET Development Server, unable to add MIME mappings, about the installation and use of IIS Express, You can refer to the blog: The configuration of IIS is used, and if VS2013 is installed on your computer, you can add MIME mappings directly to IIS Express. The operation is as follows:1in the DOS window, enter the IIS Express installation directory, the default is "C:\Program Files\IIS Express";2Execute the command under the IIS Express installation directory: AppcmdSetConfig/section:staticcontent/+[fileextension='. XYZ', mimetype='Text/plain'] PS: Variable fileextension string is a file extension, variable MimeType string is a file type description, such as the command I executed is: AppcmdSetConfig/section:staticcontent/+[fileextension='. GRF', mimetype='printreports/Fee Payment form. GRF'now in the debug state, the browser can also open the Web report. Solution two: Using Jenkins to manage SVN and IIS, set up Jenkins to republish as long as the code commits, so that we can always see the code we submitted.  However, the pressure on the server must be very large, it is not recommended to do so. To this, the problem has been solved, finally can ease the tone. 

The page you requested could not be supplied due to an extended configuration issue. If the page is a script, add a handler. If you should download the file, add a MIME map.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.