从startup.cs asp.net core中删除WebDavModule
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需将
web.config
文件添加到您的项目,例如Bellow:Just add a
web.config
file to your project, like bellow:您可以通过几种方式
从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)
Remove from windows features