-1

I am trying to upload my website , unfortunately i made a mistake,i delete 3 folders in my root directory i.e logs and data and wwwroot.So after recreating manually these folders i got this error:

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

How can i solve that ?any idea ? Best regards

Ehsan Akbar
  • 6,977
  • 19
  • 96
  • 180
  • 1
    Try to set it's permissions to 777 – Ibrahim Apr 30 '14 at 20:07
  • 1
    @user1924402: 777 for asp.net? Even if you mean "give everyone permission to everything" in the Windows sense, that is not a good idea. – Eric J. Apr 30 '14 at 20:11
  • Only for wwwroot, but you can try for all too, why not. – Ibrahim Apr 30 '14 at 20:11
  • definitely sounds like a permissions issue. Review your iis configuration and windows event logs- they may give you pointers. A bit hard to give you more feed back as I am not sure exactly what you mean by root. – Gavin Apr 30 '14 at 20:12
  • Did you create an empty `wwwroot` folder, or did you restore a backup? – CodeCaster Apr 30 '14 at 20:14
  • @Gavin for example i have a folder mywebsite.com inside this folder i had these three folders that i said .and i deleted these 3 folders – Ehsan Akbar Apr 30 '14 at 20:15
  • @CodeCaster Yes i create an empty folder but after recreating i upload my files – Ehsan Akbar Apr 30 '14 at 20:17
  • [Check the actual error](http://stackoverflow.com/questions/2640526/detailed-500-error-message-asp-iis-7-5), then [correct your permissions](http://stackoverflow.com/questions/929131/how-do-i-resolve-http-error-500-19-internal-server-error-on-iis7-0). – CodeCaster Apr 30 '14 at 20:19
  • @user1924402 i changed to 777 and it works ,any security problem ??????/ – Ehsan Akbar Apr 30 '14 at 20:20
  • No, you don't have to worry about this. – Ibrahim Apr 30 '14 at 20:23
  • @EA: Giving all permissions to every user is most certainly a security issue. – Eric J. Apr 30 '14 at 20:43

1 Answers1

0

After you've created the folder wwwroot in inetpub make sure the IUSR_computername has permission on this wwwroot folder and the files and folder under it. Also do verify the virtual directory in IIS, so that it is still pointing to the same folder.

pushpraj
  • 13,458
  • 3
  • 33
  • 50