Thanks! Quick queston. Why are you only catching the DirectException in the DirectProvider.ExecuteRequest?
} catch (DirectException exception) {
Printable View
Thanks! Quick queston. Why are you only catching the DirectException in the DirectProvider.ExecuteRequest?
} catch (DirectException exception) {
Thread about exception handling started at :
http://www.extjs.com/forum/showthrea...740#post428740
Thanks mdissel! I will be continue the discussion on the new thread.
How do you set this up if the controllers are in a separate project from the view? For example my controllers are in myproject.Controllers and my views/scripts are in myproject.Web.
I tried that, I'm probably missing something dumb here, do I have to do anything to my controller assembly too? In the web.config of myproject.Web I have it setup like so, referencing the controller assembly:
<ext.direct providerName="Ext.app.REMOTING_API" apiUrl="DirectApi.js" routerUrl="DirectRouter.ashx" assembly="myproject.Web.Controller" dateFormat="Iso" debug="true" />
Yet when I run it I get the same as if I referenced a nonexistent assembly. If I set the assembly to myproject.Web (which does not contain any controllers) it'll run fine until it gets to the Test.SayHello function, which is right as the myproject.Web does not contain that controller. Again, probably incredibly simple here. Thanks for your help.
In Visual Studio right-click on your project that contains the controllers and select Properties from the menu. Select Application tab. Use the value of Assembly Name field in the configuration file.
The assembly name was not the problem, the provider api was working correctly. Adding [DirectIgnore] to all but the controller I was working on solved it (as outlined by the first post in the thread). Thanks again, Ext.Direct should save me a ton of work!
Ext.Direct.Mvc is now on Google Code! Full source code is available there as well as ready packages to download and use.
Homepage:
Ext.Direct for ASP.NET MVC on Google Code
The latest version (and the first one on Google Code) is now 0.8.4, which is compiled with the latest Json.NET 3.5 Release 6 (included).
Please refer to the first post for more details.
Eugene,
I stumbled onto your project after a long hiatus from ExtJS. Absolutely wonderful work.
Do you have a timeline for MVC2 release, I saw you mention that it will be coming soon?