question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install injects staticContent section a second time to webconfig

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
SCullmancommented, Mar 12, 2021

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.

0reactions
iJungleboycommented, Mar 12, 2021

That’s a bummer, then I’ll close this.

Do you think your patch introduced new problems, or can we leave it in?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found