Handler “ExtensionlessUrlHandler-Integrated-4.0” has a bad module “ManagedPipelineHandler” in its module list

后端 未结 22 1609
北荒
北荒 2020-12-02 04:11

To be honest, I\'ve tried to turn a dirty trick on IIS and just when I thought that I was going to get away with it, I realized my workaround doesn\'t work. Here\'s what I\'

相关标签:
22条回答
  • 2020-12-02 04:12

    Installing .NET 4.7 worked for me. I only had 3.5 installed prior.

    0 讨论(0)
  • 2020-12-02 04:15

    I had this problem and found that removing the following folder helped, even with the non-Express edition.Express:

    C:\Users\<user>\Documents\IISExpress

    0 讨论(0)
  • 2020-12-02 04:15

    I was facing this issue in a web application hosted on a shared hosting server. So obviously did not have direct access to IIS, so could not apply many solution proposed here.

    On the hosting provider's control panel I enabled error logging for IIS and ASP.Net. And then got to know that error actually lied in a missing cshtml.

    0 讨论(0)
  • 2020-12-02 04:17

    For Windows 10 / Windows Server 2016 use the following command:

    dism /online /enable-feature /featurename:IIS-ASPNET45 /all

    The suggested answers with aspnet_regiis doesn't work on Windows 10 (Creators Update and later) or Windows Server 2016:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
    Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
    Administration utility to install and uninstall ASP.NET on the local machine.
    Copyright (C) Microsoft Corporation. All rights reserved.
    Start installing ASP.NET (4.0.30319.0).
    This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
    Finished installing ASP.NET (4.0.30319.0).

    Interestingly, the "Turn Windows Features On/Off" dialog didn't allow me to untick .NET nor ASP.NET 4.6, and only the above DISM command worked. Not sure whether the featurename is correct, but it worked for me.

    0 讨论(0)
  • 2020-12-02 04:18

    For me, removing WebDAV from my server caused the application to return a 503 Service Unavailable Error message when using PUT or DELETE, so I re-installed it back again. I also tried completely removing .NET Framework 4.5 and reinstalling it and also tried re-registering as suggested but to no avail.

    I was able to fix this by disabling WebDAV for the individual application pool, this stopped the 'bad module' error when using PUT or DELETE.

    Disable WebDAV for Individual App Pool:

    1. Click the affected application pool
    2. Find WebDAV Authoring Tools in the list
    3. Click to open it
    4. Click Disable WebDAV in the top right.

    Ta daaaa!

    I still left the remove items in my web.config file.

     <system.webServer>
        <modules>
          <remove name="WebDAVModule"/>
        </modules>
        <handlers>
          <remove name="WebDAV" />
        </handlers>
     <system.webServer>
    

    This link is where I found the instructions but it's not very clear.

    0 讨论(0)
  • 2020-12-02 04:19

    Making this its own post because this had me going for hours.

    I saw maybe a dozen of similar posts here and elsewhere about this problema and the aspnet_regiis fix. They weren't working for me, and aspnet_regiis was acting odd, just listing options etc.

    As user ryan-anderson above indicated, you cannot enter .exe

    For those less comfy with things outside IIS on the server, here's what you do in simple steps.

    1. Find aspnet_regiis in a folder similar to this path. c:\Windows\Microsoft.NET\Framework\v4.0.30319\

    2. Right-click command prompt in the start menu or wherever and tell it to run as administrator. Using the windows "Run" feature just won't work, or didn't for me.

    3. Go back to the aspnet_regiis executable. Click-drag it right into the command prompt or copy-paste the address into the command prompt.

    4. Remove, if it's there, the .exe at the end. This is key. Add the -i (space minus eye) at the end. Enter.

    If you did this correctly, you will see that it starts to install asp.net, and then tells you it succeeded.

    0 讨论(0)
提交回复
热议问题