last day (15 days later) » 

11:43 PM
2
A: ASP.NET Core hosting - 500 internal server error

Lukasz Makowej I have also enabled stdoutLog in web.config as but I don't see that folder either: stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" There is one trick here - you must create both folders logs and stdout manually - then and only then IIS will create log file inside logs folder (not ...

 
Thanks Lukasz. I created the folders and now I can see one file generated in logs folder. It is named as 'stdout_sometimestamp.log'. Now, I cannot see this file in editor at hosting website. So, I downloaded that file and tried to open with notepad but it's blank. Even the downloaded size is 0 kb. But in the directory it shows the size as 5 kb. So, once again I am not able to see the error :(
 
This is the file but looks like you have insufficient permission level... Perhaps problem is with downloading over HTTP, maybe try access the file via FTP ?
This file is locked by IIS while Website is running - it's not an issue when I'm accessing a file directly on server/disk, but in your case, it could be a problem - try to stop the IIS and see if then you will have access to the file via hosting website?
Or try restart - IIS will create new file after every restart, so you should have access to previous logs.
 
I tried FTP and got the file. I can see the log now. Thank you so much.
 
No problem. BTW what was the reason of '500' in your case?
 
It said that ClientId must be provided and that was the message for Facebook login. Now, facebook options use AppId, so I am trying to figure out where did it go wrong and why ClientId message although It works on local.
 
11:43 PM
Hehe. I had the same problem. I' using UserSecret Tool so my ids/keys are in a different location (outside project/version control), and I've forgotten put them into the server.
 
Hey.. where can I find that usersecrets.json. On the website it's mentioned as %APPDATA%\microsoft\UserSecrets\<userSecretsId>\secrets.json but I don't see such location exists.
Got it now.
 
usersecrets.json is useful if you want to protect the key and do not publish them in source control, but if you can/want you can put secrets directly into appsettinigs.json
 

  last day (15 days later) »