Install injects staticContent section a second time to webconfig
See original GitHub issueI’m submitting a …
[x] bug report => search github for a similar issue before submitting
…about [x] Installation
Current behavior Current web.config has already a staticContent section. When 2sxc installs, it adds it a second time, breaking the server installation.
It is super easy to discover and to fix, and I already know that now for a too long time. Installing 2sxc and editing web.config was already part of my installation recipe.
Problem is this section in the manifest:
<node path="/configuration/system.webServer" targetpath="/configuration/system.webServer/staticContent" action="update" collision="ignore">
<staticContent>
<remove fileExtension=".webp" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />
</staticContent>
</node>
What is the motivation of this report I am going to submit a PR.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Static Content <staticContent>
The <staticContent> element configures several settings related to processing requests for static files in Internet Information Services ...
Read more >Injecting content to every page on a site - Developer Support
App Dev Manager Roberto Peña explores a creative approach to injecting content into every page on a web site.
Read more >Spring Boot not serving static content
I discovered two solutions that worked for me: Option #1 - Stop using @EnableWebMvc annotation This annotation disables some automatic ...
Read more >Security and performance improvements in your web.config ...
I'm working on converting this same site to Core, but haven't had a lot of time available, so it is slow going. Secure...
Read more >Web.config File Options
The second location section configures custom error handling for custom uncompiled classic ASP scripts: The section targets the custom products/custom directory ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please leave it in. It is still the best practice and now in sync with dnn core. And, if it still fails, there is only a single
<staticContent />
to remove, which is less noise and better to detect.That’s a bummer, then I’ll close this.
Do you think your patch introduced new problems, or can we leave it in?