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.
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.
You can specify an assembly name in the web.config ext.direct section file..
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:
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!