Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Change profile picture is giving error 500 when hosting #2202


User avatar
0
mengvisal created
Support Team

Hi!

When I try to change the profile picture for the project hosted in IIS of Amazon EC2, it gives me error: <a class="postlink" href="http://mywebsite.com/Profile/UploadProfilePicture">http://mywebsite.com/Profile/UploadProfilePicture</a> 500 (Internal Server Error) but when I test in IIS Express, it is working fine.

FYI: I configure default route in the project to Application/Index instead of Home/Index because I want to go directly to Login Page or Tenant Page (Not Front-end Page)

routes.MapRoute(
               name: "Default",
               url: "{controller}/{action}/{id}",
               defaults: new { controller = "Application", action = "Index", id = UrlParameter.Optional },
               namespaces: new[] { "CarlWeb.Controllers" }
           );

Thanks!


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Uploaded files are stored in "~/Temp/Downloads" temporarily. Probably you dont have permission to write to this folder.

    Can you check that ?