Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7692895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:57:28+00:00 2026-05-31T20:57:28+00:00

Just finished up my first mvc4 app. Everything is working great until I deploy

  • 0

Just finished up my first mvc4 app. Everything is working great until I deploy it and I get:
500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
every time I try to call /Account/Register or /Account/Login controllers:

I’ve snooped around in firefox console and fiddler. I didn’t find anything useful there, but then again I don’t really know what I should even be looking for.

Some other posts say to check the server log but that’s a problem in itself because when I try to download, move, view, or delete the latest log file I get errors like “file transfer failed”, “550 cant access file”, “500 failed to delete file”.

I don’t know what else to do, some please advice.
Heres some code for call to Login controller. I won’t post Register version since they seem related.

Ajax call:

$.ajax({
                    url: "/Account/Login",
                    type: "POST",
                    data: $('#loginForm').serialize(),
                    success: function (resultData) {
                        if (resultData.ok) {
                            ...unrelated stuff...has call to resultData.message
                        }
                    }
                });

Login controller:

    [AllowAnonymous]
    [HttpPost]
    public ActionResult Login(LoginModel model)
    {

        if (ModelState.IsValid)
        {
            if (Membership.ValidateUser(model.UserName, model.Password))
            {
                FormsAuthentication.SetAuthCookie(model.UserName, model.RememberMe);
                return Json(new { ok = true, message = "Login successful." });
            }
            else
            {
                return Json(new { ok = false, message = "The username or password you entered is invalid. Please try again." });
            }
        }

        // If we got this far, something failed, redisplay form
        return View(model);
    }

It all seems pretty standard here so I really don’t know what it could be or how to even diagnose

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:57:29+00:00Added an answer on May 31, 2026 at 8:57 pm

    I ran into a similar issue, which was a result of certain referenced DLLs not being present in the GAC of the server (only on the dev machine with the MVC4 beta installed). The solution was to set those dependencies to “Copy to Local” before compilation

    * System.Web.Mvc
    * System.Web.Routing
    * System.Web.Abstractions
    * Microsoft.Web.Infrastructure
    * System.Web.Razor
    * System.Web.WebPages.Deployment
    * System.Web.WebPages.Razor
    

    If you’re having the same problem these links will help you solve it:

    Could not load file or assembly 'System.Web.Mvc'

    http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a rails novice and just finished my first rails app(as far as I
I'm just about finished my first release of automailer, a program I've been working
I just finished my first iPhone app. It's a little game and I want
I've just finished my first "real" APEX app but it's looking a bit messy.
i just finished my first view in my iPhone app and i want to
I just finished creating my first major application in C#/Silverlight. In the end the
I'm just finished my first month of getting to grips with flex. All of
I just finished writing my very first command-line tool in Objective-C, compiled it, and
So I am almost finished with my first app. It was constructed in Visual
I just finished my first web Part for Sharepoint WSS 3.0 and I'm very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.