Problem with site running mvc4

rasmuschristensen's Avatar

rasmuschristensen

16 May, 2012 07:25 PM

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

  1. Support Staff 1 Posted by friism on 16 May, 2012 08:49 PM

    friism's Avatar

    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

  2. 2 Posted by rasmuschristens... on 16 May, 2012 08:54 PM

    rasmuschristensen's Avatar

    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

  3. Support Staff 3 Posted by friism on 16 May, 2012 08:59 PM

    friism's Avatar

    Could you invite [email blocked] as a collaborator so that we can take a look?

    Michael

  4. 4 Posted by rasmuschristens... on 16 May, 2012 09:01 PM

    rasmuschristensen's Avatar

    Done. For info I unchecked the precompile check to get more information.

    /Rasmus

  5. Support Staff 5 Posted by friism on 16 May, 2012 09:59 PM

    friism's Avatar

    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

  6. 6 Posted by rasmuschristens... on 20 May, 2012 09:12 AM

    rasmuschristensen's Avatar

    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

  7. Support Staff 7 Posted by friism on 20 May, 2012 03:15 PM

    friism's Avatar

    Great, thanks for getting back to us.

    Michael

  8. 8 Posted by rasmuschristens... on 20 May, 2012 07:30 PM

    rasmuschristensen's Avatar

    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

  9. rasmuschristensen closed this discussion on 21 May, 2012 01:48 PM.

Comments are currently closed for this discussion. You can start a new one.

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