IIS Express adds MIME ing, expressmime

Source: Internet
Author: User

IIS Express adds MIME ing, expressmime

Recently, when I used Grid Report for Web reports, I encountered a very scratching the head.

Code written locally using VS2010 cannot be displayed in the Web Report during debugging. VS2013 cannot be displayed on server 24.248, and the project cannot be displayed after being deployed on the IIS server.

Then there are various Baidu, du Niang said there is no MIME ing established on IIS, so the browser cannot load grf files. Okay, configure the MIME type of IIS: Open IIS manager --> MIME type --> Add, file name:. grf, MIME type: PrintReports/Proxy settlement table. grf.

The miracle is that the Web reports published on IIS can be accessed normally. But I cannot view the Running Effect in the debugging stage. Each time I have to modify and submit the code on VS2010, I will update, generate, and release the code on VS2013 on server 24.248, finally, check the effect on IIS. How are you doing? scratching your head!

Solution 1: Add MIME ing for IIS Express. If VS2010 is installed on the computer, you must first install the IIS Express debugging server, because the Asp. net Development Server, cannot add MIME ing. For IIS Express installation and use, refer to the blog: IIS configuration and use; if VS2013 is installed on the computer, you can directly add MIME ing in IIS Express. The procedure is as follows:

1. Enter the IIS Express installation directory in the DOS window. The default value is "C: \ Program Files \ IIS Express ";

2. Run the following command in the IIS Express installation directory: appcmd set config/section: staticContent/+ [fileExtension = '. xyz', mimeType = 'text/plain']

PS: The variable fileExtension string is the file extension, and the variable mimeType string is the description of the file type. For example, the command I run is: appcmd set config/section: staticContent/+ [fileExtension = '. grf', mimeType = 'printreports/proxy statement. grf']

Now, in the debugging status, the browser can open the Web report.

Solution 2: Use Jenkins to manage SVN and IIS and set Jenkins to be re-released as long as the code is submitted, so that we can always see the submitted code. However, the pressure on the server must be high. We do not recommend this.

At this point, the problem has been solved, and you can finally feel comfortable.


How to add step-by-step interaction of mime ing vertices

Add the Mime type of BT seeds to make. the torrent format can be downloaded with the extension. torrent: the Mime type is application/octet-stream. All extensions and the like are known, that is, the type is unknown.

Also, pay attention to mime. Can you teach me how to change the file type that is not found in IIS by default?

After iiss' installation in windows, it supports. shtml. You only need to allow "file inclusion at the front-end of the server" in "WEB Service extension.
For windows 2000, you need to add an application extension ing in IIS.
The executable file is in: C: \ WINDOWS \ system32 \ inetsrv \ ssinc. dll. Extension: shtml/shtm
Open the IIS manager and open the properties of "Local Computer" -- "MIME type --" New
Suffix:. shtml
MIME Type: text/html

Suffix:. shtm
Mime Type: text/html

Click OK. Find the Web service extension (which is parallel to the website under IIS) and enable the "file inclusion on the server" extension. (IIS must be restarted, otherwise it cannot be accessed !)
In iis's definition, .shtml is a type of SSI component and must be enabled. Then you can install the mongo.shtml program correctly.

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.