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

Cannot upload files in Optimizely 12 when Elmah is activated #154

Open
mbooh opened this issue Oct 31, 2022 · 2 comments
Open

Cannot upload files in Optimizely 12 when Elmah is activated #154

mbooh opened this issue Oct 31, 2022 · 2 comments

Comments

@mbooh
Copy link

mbooh commented Oct 31, 2022

For some reason you cannot upload files in Optimizely CMS 12 if you have Elmah activated.

Please see the following forum post at Optimizely for further information:

https://world.optimizely.com/forum/developer-forum/cms-12/thread-container/2022/10/cannot-upload-media-after-upgrade/

Removing:
app.UseElmah() and services.AddElmah() fixes the problem and let us uplad files again.

@mbooh
Copy link
Author

mbooh commented Nov 1, 2022

It is onky app.UseElmah() that causes the problem. Use services.AddElmah() and files will be written.

@mbooh
Copy link
Author

mbooh commented Feb 1, 2023

Adding app.UseElmah(); last in the Configure method fixes the issue.

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

No branches or pull requests

1 participant