Home > front end >  Remove WebDAVModule from startup.cs asp.net core
Remove WebDAVModule from startup.cs asp.net core

Time:07-10

IIS Server gives "Method Not Found Error". After Exploring Google, I got that WebDAVModule should be removed in web config file. Every time i publish my Project, i have to add this <modules> <remove name="WebDAVModule" /> </modules>
in Webconfig

Please suggest me how do i add this in Startup.cs or any other solution?

CodePudding user response:

Just add a web.config file to your project, like bellow:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <modules>
      <remove name="WebDAVModule" />
    </modules>
  </system.webServer>
</configuration> 

CodePudding user response:

You can do it in several ways

Remove from IIS model

Go to your site in IIS Click "Modules" Remove WebDAVModule Restart site (might not be needed)

enter image description here

Remove from windows features

Turn windows features on or off

  • Related