IIS6/7/8 WEB server cannot access grf report template files. iis6grf

Source: Internet
Author: User

IIS6/7/8 WEB server cannot access grf report template files. iis6grf

Cannot be accessed through IE. grf report file. This is because IIS6/7/8 imposes restrictions on the access extension. In addition to the defined extension, other extension names cannot be accessed, which is different from IIS5, IIS5 imposes no restrictions on all extensions.

Solution: Open the "Internet Information Service" management interface and add the ". grf" extension to define the MIME type, so that the. grf file can be downloaded directly. Procedure:

1. Open the IIS Microsoft Console (MMC), right-click the name of the local computer, and click "properties ".

2. Click "MIME type ".

3. Click "new ".

4. In the "extension" box, type the required file extension ". grf ".

5. In the "MIME type" box, type "grf/gridreport ".

6. For new application settings, you must restart the Web Publishing Service or restart the computer.

Enter the URL of a report template file in the browser to check whether the file can be downloaded normally. If the file can be downloaded, the problem has been solved.

If you are using asp.net for development, you can also add a file type definition in web. config to solve this problem, as shown in the following content:

<System. webServer> <staticContent> <mimeMap fileExtension = ". grf" mimeType = "grf/gridreport"/> </staticContent> </system. webServer>



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.