Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

MVC 3 500 Error wont go away and is not invited to the party

jacob.gable's Avatar

jacob.gable

01 Mar, 2011 04:13 AM

I've created a solution with three projects:

  1. A C# Class library with Entity Framework CTP 5 CodeFirst classes and DBContext. (1 model class with 2 properties; Id and string)
  2. Another C# library for sending Windows Phone 7 Push notifications
  3. An MVC 3 Website with Razor engine and HTML5 Boilerplate patterns.

The MVC 3 site has references to the other two projects and to the NuGet OpenAuth package.

I'm not able to get any custom errors to show up even though I've done the following:

  1. Commented out filters.Add(new HandleErrorAttribute()) in Global.asax.cs RegisterGlobalFilters(...) method.
  2. Set
  3. Set

My application name is LinkHarbor. I'm probably missing some dll reference copy always or don't have my project solution in the right place, but I can't seem to make any headway on this. I get no build errors in the log. Any help would be appreciated.

  1. 1 Posted by jacob.gable on 01 Mar, 2011 04:14 AM

    jacob.gable's Avatar

    Sorry, 2 and 3 above are setting customError to Off and setting compilation to debug. Xml got stripped.

  2. Support Staff 2 Posted by friism on 01 Mar, 2011 05:27 AM

    friism's Avatar

    This may be a MVC 3 oddity, possible resolutions here. Let us know if those don't resolve your issue.

  3. friism closed this discussion on 01 Mar, 2011 05:27 AM.

  4. jacob.gable re-opened this discussion on 01 Mar, 2011 02:35 PM

  5. 3 Posted by jacob.gable on 01 Mar, 2011 02:35 PM

    jacob.gable's Avatar

    I think this is related to the open auth package/library I referenced through NuGet. It adds some things to the web.config that I think is causing the problem. I'm still chasing it down, but I will report back what I find.

  6. Support Staff 4 Posted by friism on 01 Mar, 2011 05:55 PM

    friism's Avatar

    OK, if you get stuck, feel free to add support(a)appharbor.com as a collaborator on your app, and we can take a look too.

  7. 5 Posted by jacob.gable on 01 Mar, 2011 06:43 PM

    jacob.gable's Avatar

    If I remove the open auth package reference and it's modifications to the
    web.config I'm able to get to the site. I don't know which one specifically
    caused the problem, but that was it.

    I think the DotNetOpenAuth package requires full trust, even though it
    doesn't use it.

    Jacob

  8. Support Staff 6 Posted by friism on 01 Mar, 2011 08:32 PM

    friism's Avatar

    Websites on AppHarbor run with full trust, so that shouldn't be it. It would be a shame if you can't get OpenAuth working on AppHarbor. Let us know if there's any way we can help.

  9. friism closed this discussion on 01 Mar, 2011 08:32 PM.

  10. friism re-opened this discussion on 18 Mar, 2011 07:33 PM

  11. Support Staff 7 Posted by friism on 18 Mar, 2011 07:33 PM

    friism's Avatar

    Did you get this working? There's a possible resolution here.

  12. friism closed this discussion on 18 Mar, 2011 07:33 PM.

  13. jacob.gable re-opened this discussion on 19 Mar, 2011 12:52 AM

  14. 8 Posted by jacob.gable on 19 Mar, 2011 12:52 AM

    jacob.gable's Avatar

    I didn't end up trying it because I couldn't get any errors to show up besides the internal server generic ii7 error.

    I'll give it a try this weekend and let you know what I find out. Evidently there are some web.config things I have to add to try and get the custom errors to show.

    Thanks for following up. Looking forward to using the new BitBucket integration. Keep up the great work.

  15. friism closed this discussion on 19 Mar, 2011 05:17 AM.

  16. jacob.gable re-opened this discussion on 21 Mar, 2011 02:52 PM

  17. 9 Posted by jacob.gable on 21 Mar, 2011 02:52 PM

    jacob.gable's Avatar

    For future reference, the problem was probably with my web.config. I use the MotherEffin HTML5 Site template available on the Visual Extensions Gallery and it has a lot of mimeMap updates to the static content section. If anyone else is using a web.config from a HTML5 Boilerplate template, make sure you add remove elements for the fileExtensions that are updated. You can see my updated HTML5 Boilerplate web.config here: https://bitbucket.org/jacob4u2/mothereffin-html5-site/src/b5f7110af...

    If you're making an MVC 3 site with the Razor view engine you should check out the visual studio project template I created (http://visualstudiogallery.msdn.microsoft.com/2b462e2e-5215-4d07-a4..., MotherEffin HTML5 Site). You can deploy to AppHarbor with no modifications, e.g. http://mothereffinhtml5.apphb.com/

    Gonna do a write up/tutorial blog post as soon as I can.

  18. Support Staff 10 Posted by friism on 21 Mar, 2011 06:05 PM

    friism's Avatar

    Great, thanks a lot for sharing!

  19. friism closed this discussion on 21 Mar, 2011 06:05 PM.

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