Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS does not write any logs #69

Open
ZhmerenkaSolution opened this issue Sep 5, 2024 · 1 comment
Open

IIS does not write any logs #69

ZhmerenkaSolution opened this issue Sep 5, 2024 · 1 comment
Labels

Comments

@ZhmerenkaSolution
Copy link

Have a weird issue:
When I host application in IIS - it doesn't write any logs. But, when I launch just .exe (Kestrel) it writes everything as supposed.
Log file located in the root of publish folder. Every folder permission is granted.
Does IIS have some local folder where host process locates and file paths starts there?
Project - asp net 7, blazor webassembly.
I understand that issue is not within logger.

@VitaliyMF
Copy link
Contributor

Try to specify full path instead of just log file name. A relative path is resolved in a usual way (default folder is app's working directory), but when MVC Core app started by IIS most likely working directory is not a directly with app's binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants