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.