从startup.cs asp.net core中删除WebDavModule

发布于 2025-02-13 12:06:58 字数 214 浏览 0 评论 0原文

IIS服务器给出“未找到的方法”。探索Google之后,我得到了Web DavModule应在Web配置文件中删除。 每次发布项目时,我都必须添加 <模块> < remove name =“ WebDavModule” /> </模块>
在WebConfig中,

请建议我如何在startup.cs或任何其他解决方案中添加它?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

东走西顾 2025-02-20 12:06:58

只需将web.config文件添加到您的项目,例如Bellow:

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

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> 
少年亿悲伤 2025-02-20 12:06:58

您可以通过几种方式

从IIS模型中删除

转到您的IIS网站
单击“模块”
删除WebDavModule
重新启动站点(可能不需要)

​href =“ https://i.sstatic.net/328ax.png” rel =“ nofollow noreferrer”>

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文