Titemaptest fail

Got the following errors:

Uncaught TypeError: Cannot call method ‘getAttribute’ of undefined CCTMXXMLParser.js:511
cc.TMXMapInfo.cc.SAXParser.extend.parseXMLFile CCTMXXMLParser.js:511
cc.TMXMapInfo.cc.SAXParser.extend.initWithTMXFile CCTMXXMLParser.js:430
cc.TMXMapInfo.create CCTMXXMLParser.js:767
cc.TMXTiledMap.cc.Node.extend.initWithTMXFile CCTMXTiledMap.js:197
cc.TMXTiledMap.create CCTMXTiledMap.js:346
TileDemo.extend.ctor TileMapTest.js:255
(anonymous function) CCClass.js:138
Class CCClass.js:117
nextTileMapTest TileMapTest.js:1300
TestScene.extend.runThisTest TileMapTest.js:1255
cc.LayerGradient.extend.onMenuCallback tests-main.js:137
cc.MenuItem.cc.Node.extend.activate CCMenuItem.js:172
cc.MenuItemLabel.cc.MenuItem.extend.activate CCMenuItem.js:333
(anonymous function) CCClass.js:138
cc.Menu.cc.Layer.extend.onTouchEnded CCMenu.js:442
cc.TouchDispatcher.cc.Class.extend.touches CCTouchDispatcher.js:376
cc.TouchDispatcher.cc.Class.extend.touchesEnded CCTouchDispatcher.js:508
cc.ProcessMouseupEvent CCTouchDispatcher.js:630
(anonymous function) CCTouchDispatcher.js:688

I have solved the problem by myself.

IIS7 does not support the tmx file , added the .tmx to MIMEType .It runs well.

thats why we recommend other servers like xampp

How do you specify the MINEType (.tmx image/png) ?

I got the Testcases and the Demo working in the IIS but I could not able to run any games such as(MoonWarriors, WaterMelon,CocosDragon And Crystal Craze). As soons as loading reaches 100%, it hangs

Version: Cocos2d-html5-v2.1.1
Thanks

watson wan wrote:

I have solved the problem by myself.
>
IIS7 does not support the tmx file , added the .tmx to MIMEType .It runs well.

What is the console log?

Dac Toan Ho wrote:

How do you specify the MINEType (.tmx image/png) ?
>
I got the Testcases and the Demo working in the IIS but I could not able to run any games such as(MoonWarriors, WaterMelon,CocosDragon And Crystal Craze). As soons as loading reaches 100%, it hangs
>
Version: Cocos2d-html5-v2.1.1
Thanks
>
watson wan wrote:
> I have solved the problem by myself.
>
> IIS7 does not support the tmx file , added the .tmx to MIMEType .It runs well.

First open your IIS management please , the “MiMe Type” is on “IIS” of “PC Name homepage” .

Double-Click the “MiMe Type” , then Click “Add” on the right corner of screen.

Enter “.plist” extension name and “text/vnd.wap.wml” MiMe Type.

I’m sorry for my bad English and good luck to you!

Happy new year to everyone!

Thanks Watson Wan. It is right.

Happy new year to everybody.