Problem with site running mvc4
Hi
I've just started a new project MobShop running mvc4. I'm not sure if mvc is the issue but I get a precompile error: https://appharbor.com/applications/mobshop/builds/235519
Michael Friis tweeted that it is required to use the nuget mvc4 package. As the project is a vs11 mvc4 site, this nuget package is already in the project.
Can you help me about the error?
Best regards
Rasmus Christensen
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by friism on 16 May, 2012 08:49 PM
Hi Rasmus, remember that .NET Framework 4.5 is not supported on AppHarbor, so you'll have to make sure your app targets .NET Framework 4.0. It's also required that the MVC 4 beta dll is deployed along with your app, since it's not installed on AppHarbor app servers.
I've pushed the code for the MVC 4 app that runs on AppHarbor to Github: https://github.com/friism/doesmvc4betarunonappharborquestionmark
Let us know if that doesn't help you get the app running, we'd love to help out.
Michael
3 Posted by rasmuschristensen on 16 May, 2012 08:54 PM
Hi Michael
Well the project is targeted .NET 4.0, but I'm currently using Nuget
package restore but the aspnet mvc assemblies is set to copy local true,
should that be an issue?
/Rasmus
Support Staff 4 Posted by friism on 16 May, 2012 08:59 PM
Could you invite [email blocked] as a collaborator so that we can take a look?
Michael
5 Posted by rasmuschristensen on 16 May, 2012 09:01 PM
Done. For info I unchecked the precompile check to get more information.
/Rasmus
Support Staff 6 Posted by friism on 16 May, 2012 09:59 PM
Hi Rasmus, could you take a look at this:http://stackoverflow.com/questions/9431975/could-not-load-file...
...and let us know whether that solves the problem.
Michael
7 Posted by rasmuschristensen on 20 May, 2012 09:12 AM
Hi,
The assembly binding redirect did it. I'm not sureanything else is needed from the default setup in a vs11 mvc 4 beta project.
/Rasmus
Support Staff 8 Posted by friism on 20 May, 2012 03:15 PM
Great, thanks for getting back to us.
Michael
9 Posted by rasmuschristensen on 20 May, 2012 07:30 PM
Hi Michael
I've just added a project to Github, running at appharbor, that contains the changes to get it up and running:
Site:
http://mvc4betaappharbor.apphb.com/
Source:
https://github.com/rasmuschristensen/mvc4BetaAppharbor
And a blogpost: http://bypassion.dk/?p=172
/Rasmus
rasmuschristensen closed this discussion on 21 May, 2012 01:48 PM.