add .json handler support in IIS 7
Sometimes we need to create JSON in a text file with extension .json, however by default IIS 7 or any of the IIS are not configure to handle .json extension. So below is a very simple method to do that. You can apply the method on the root of IIS so .json can be handled by every site or virtual folder in the IIS or just to the specific site.
- Open IIS Manager
 - Display properties for the IIS Server
 - Click MIME Types and then add the JSON extension:
- File name extension: .json
 - MIME type: application/json
 
 - Go back to the properties for IIS Server
 - Click on Handler Mappings
- Add a script map
 - Request path: *.json
 - Executable: C:\WINDOWS\system32\inetsrv\asp.dll
 - Name: JSON
 
 
add .json handler support in IIS 7的更多相关文章
- iMX6QD How to Add 24-bit LVDS Support in Android
		
iMX6QD How to Add 24-bit LVDS Support in Android 版本 4 由 Ying Liu 于 2012-10-14 下午11:52创建,最后由 Jodi Pau ...
 - Jquery+Json+Handler文件结合应用实例
		
1.页面script代码-[model数据.字符串] <script type="text/javascript" charset="utf-8" src ...
 - Caused by: java.lang.ClassNotFoundException: org.springframework.integration.handler.support.HandlerMethodArgumentResolversHolder
		
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring ...
 - Gradle Goodness: Add Incremental Build Support to Tasks
		
Gradle has a very powerful incremental build feature. This means Gradle will not execute a task unle ...
 - Gradle Goodness: Add Incremental Build Support to Custom Tasks with Annotations
		
In a previous post we learned how we can use the inputs and outputs properties to set properties or ...
 - No mapping found for HTTP request with URI [/test2/test/add.json] in DispatcherServlet with name 'dispatcher'
		
查看spring-mvc.xml中扫描包路径配置是否正确: <!-- 扫描controller(controller层注入) --> <context:component-scan ...
 - [译] 在Web API 2 中实现带JSON的Patch请求
		
原文链接:The Patch Verb in Web API 2 with JSON 我想在.NET4.6 Web API 2 项目中使用Patch更新一个大对象中的某个字断,这才意识到我以前都没有用 ...
 - 配置IIS支持Json格式
		
配置iis支持.json格式的文件 原文地址:http://blog.eroad.info/iis-suport-json/ 在做easyUI的官方示例的时候 有的例子是直接读取的json文件,但是默 ...
 - IIS支持json、geojson文件
		
最近在搞asp.net + openlayers. 其中openlayer有个数据源支持 .geojson 数据,但是怎么测试都不能成功.同样的数据拿到php下就能成功显示. 搓. 在网上漫无目的的搜 ...
 
随机推荐
- linux 下部署nodejs(两种方式)
			
本次博客的编写时用的系统环境,刚装好的Centos 6.4 64位虚拟机. 另外关于linux 其他系统的安装 可以参考https://github.com/joyent/node/wiki/Ins ...
 - android tcp协议主要函数
			
1 tcp_timers: 处理各种timer超时信息,关键函数tcp_xmit_timer 2 tcp_iutput: 3 tcp_output:接收方的接收窗口struct tcpcb.snd_w ...
 - day8---多线程socket 编程,tcp粘包处理
			
复习下socket 编程的步骤: 服务端: 1 声明socket 实例 server = socket.socket() #括号里不写 默认地址簇使用AF_INET 即 IPv4 ...
 - Orchard SQLite v1.7.2
			
1. Upgrade NHibernate to v3.3.3 2. Add lib csharp-sqlite to support SQLite 3. Replace oracle client ...
 - Helios与Katana的区别
			
Helios与Katana都是微软开发的基于IIS的OWIN实现. 它们之间的区别很简单:Helios不依赖于ASP.NET Runtime,Katana依赖于ASP.NET Runtime. Hel ...
 - node-webkit教程(14)禁用缓存
			
1.在开发者工具中禁用缓存 上面这张图,是在node-webkit 中 在开发工具中配置禁用缓存的选项. 使用这个选项可以有效的禁用所有页面缓存. 2. 在配置文件中,配置webkit 缓存禁用和启用 ...
 - Nginx学习笔记(六) 源码分析&启动过程
			
Nginx的启动过程 主要介绍Nginx的启动过程,可以在/core/nginx.c中找到Nginx的主函数main(),那么就从这里开始分析Nginx的启动过程. 涉及到的基本函数 源码: /* * ...
 - [ucgui] 彩色条函数
			
/* 颜色条 */ void ShowColorBar(void) { , y0 = , yStep = , i; int NumColors = LCD_GetDevCap(LCD_DEVCAP_N ...
 - Jenkins2 - 下载与启动
			
文章来自:http://www.ciandcd.com 文中的代码来自可以从github下载: https://github.com/ciandcd 本文将引导jenkins初学者安装和配置jenki ...
 - 如何试用Office 365 及 SharePoint Online(美版)
			
Office 365已经在国外运营一段时间了,本文主要帮助大家注册一个试用账户.废话少说按步骤来: 进入注册页面,链接地址 . 1. 对于不同的企业,提供了不同的套餐,这里我们试用这个中等企业的套餐, ...