Allow loading of JSON files in Visual Studio Express 2013 for Web

如果讀取JSON file遇到404.3 - Not Found,可按照下列步驟解決

● open cmd

● run command
   cd C:\Program Files (x86)\IIS Express

● run command
    appcmd set config /section:staticContent /+[fileExtension='.json',mimeType='application/json']

沒有留言:

張貼留言