I set my Dependency resolved on the application start event for injecting controllers, however it looks like it's not triggering the application start event because I keep getting an error about my controllers not having parameterless contructor which looks like controller are not being instantiated with structuremap, I had webactivator on my project and I thought that perhaps it doesnt work on appharbor so I removed it but still the same error. my app is here http://mortgagecrunch.apphb.com/
Global asax application start is not executing
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
#1 Posted by friism Support staff on 20 Mar, 2011 07:12 AM
This is unlikely to be an AppHarbor problem. Does it work when you run your application on your local machine?
#2 Posted by ryudice on 20 Mar, 2011 07:15 AM
Yes, it does
#3 Posted by friism Support staff on 20 Mar, 2011 07:19 AM
Have you checked out the related discussion here.
#4 Posted by ryudice on 20 Mar, 2011 07:23 AM
I'm using a the dependencyresolver in mvc 3 for injection, but let me try using the controller factory, by the way the branch I'm pushing is not the master branch, would that have something to do?
#5 Posted by friism Support staff on 22 Mar, 2011 12:56 AM
Hi Roberto, did you get this working?
#6 Posted by ryudice on 22 Mar, 2011 01:33 AM
Hi, yes, I used a custom controller factory for instantiating controllers instead of using the dependency resolver and it worked, I'm not sure why though. thanks for following up.
#7 Posted by friism Support staff on 22 Mar, 2011 02:05 AM
Cool, happy you got it working!
friism closed this discussion on 22 Mar, 2011 02:05 AM.