Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Static svg files on 9.1.6 throws 500 internal server error

Static svg files on 9.1.6 throws 500 internal server error

Kevin Steffer
Kevin Steffer
Reply

We have this image reference 

<img src="/Files/Templates/Designs/espresso/assets/img/lighthouse-logo.svg" alt="Lighthouse">

served from a 9.1.6 it throws a 500 Internal Server Error

served from 9.1.4 it works :)

 

 


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi kevin

I think it is because of this "fix" in web.config, see dump. Can you try to remove that and see if it works again?

BR Nicolai

 

Capture.PNG
Votes for this answer: 1
 
Kevin Steffer
Kevin Steffer
Reply

Hi Nicolai,

By removing this section - it works again, thanks!

<location path="Files" allowOverride="false">
    <appSettings>
      <clear />
      <add key="webpages:Enabled" value="false" />
    </appSettings>
    <system.webServer>
      <staticContent>
        <remove fileExtension=".cshtml" />
        <mimeMap fileExtension=".cshtml" mimeType="text/plain" />

        <remove fileExtension=".vbhtml" />
        <mimeMap fileExtension=".vbhtml" mimeType="text/plain" />

        <remove fileExtension=".aspx" />
        <mimeMap fileExtension=".aspx" mimeType="text/plain" />
      </staticContent>
      <handlers>
        <clear />
        <add name="StaticFile" path="*" verb="*" modules="StaticFileModule" resourceType="File" requireAccess="Read" />
      </handlers>
    </system.webServer>
  </location>

 
Nicolai Pedersen
Reply

ok, thanks

Will look into fixing the issue in the standard build.

BR Nicolai

 
Nicolai Pedersen
Reply

Hi Kevin

We looked at this and cannot reproduce the issue internally. How come you got a 500 on static file?

Do you maybe have something else in your iis/web config that could cause this?

BR Nicolai

 

You must be logged in to post in the forum