500 Error on images after installing Nexu

Hi there,

I’m getting an error on some images since I installed Nexu.

There was an initial problem where suddenly I had to clear up some ambiguous class references in my CSHTML files, but that seems unrelated.

Now, on some pages, my images don’t appear and if I ‘open in new tab’, I get this error:

HTTP Error 500.22 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Most likely causes:
This application defines configuration in the system.web/httpModules section.

Things you can try:
Migrate the configuration to the system.webServer/modules section. You can do so manually or by using AppCmd from the command line. For example, from the IIS Express install directory, run appcmd migrate config "Default Web Site/". Using AppCmd to migrate your application will enable it to work in Integrated mode. It will continue to work in Classic mode and on previous versions of IIS.
If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
Alternatively, switch the application to a Classic mode application pool. For example, from the IIS Express install directory, run appcmd set app "Default Web Site/" /applicationPool:"Clr4ClassicAppPool". Only do this if you are unable to migrate your application.

I’ve already got the recommended configuration in my web.config:

    <location path="." inheritInChildApplications="false">
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />

So I don’t know what else I can do. I can’t change the IIS settings, they have to be in the web.config. file.

If you have any suggestions, I’ll gladly try them.

Thanks!

Toby.


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/104277-500-error-on-images-after-installing-nexu