PDA

View Full Version : [CLOSED] Ext undfine error!



davidhsu
Nov 09, 2012, 1:11 AM
dear all:

use vs2012 in Win7, I create a new Mvc4 project , Add Ext.net by NuGet Pakcage manager console. Then In Homecontroller->index.cshtml , Add

@using Ext.Net;
@using Ext.Net.MVC;
@Html.X().ResourceManager()

I get this error

--->
未處理的例外狀況 位於行 7,欄 1 在 http://localhost:50288/extnet/locale/ext-lang-zh-TW-js/ext.axd?v=0 中

0x800a1391 - Microsoft JScript 執行階段錯誤: 'Ext' 未經定義

0x800a1391 - Microsoft JScript runtime error: 'Ext' undefine

Baidaly
Nov 09, 2012, 1:18 AM
Hello!

Please, provide more information.

http://forums.ext.net/showthread.php?3440
http://forums.ext.net/showthread.php?10205

But right now I recommend to you check this question http://stackoverflow.com/questions/12860727/how-to-setup-ext-net-2-0-in-a-vs2012-mvc4-project .

davidhsu
Nov 09, 2012, 2:29 AM
Hi,
It is been fixed! Key point is -->
Add follw line to RegisterRoutes
routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");