康布尔 2, 404 错误

发布于 2025-01-01 16:53:01 字数 287 浏览 1 评论 0原文

我正在尝试让combres在IIS 7上使用我的.net 4 Web表单。

一切都在本地工作,但是当站点上线时,以下路径会出现404错误

www.mydomain.co.uk/combres.axd/siteCss/-1938526509/

,但是如果我删除最后的/,它就可以工作。

www.mydomain.co.uk/combres.axd/siteCss/-1938526509

我该如何解决这个问题?

Am trying to get combres working with my .net 4 web form on IIS 7.

Everything is working locally, however when made the site live the following path comes up with 404 error

www.mydomain.co.uk/combres.axd/siteCss/-1938526509/

But if i remove the / at the end it works.

www.mydomain.co.uk/combres.axd/siteCss/-1938526509

How can I fix this problem ?

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

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

发布评论

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

评论(1

欢你一世 2025-01-08 16:53:01

在您的 Combres.xml 文件中,您可能将 defaultDebugEnabled 设置为 false。这导致它可以在本地工作,但会在实时情况下生成类似的 URL。将其设置为自动,它应该可以工作。

<resourceSets url="~/combres.axd" defaultDuration="300"
                                defaultVersion="auto"
                                defaultDebugEnabled="auto"
                                defaultIgnorePipelineWhenDebug="true"
                                localChangeMonitorInterval="30"
                                remoteChangeMonitorInterval="60">

In your combres.xml file you probably have defaultDebugEnabled set to false. This leads it to work on local but generates urls like these on live. Set it to auto and it should work.

<resourceSets url="~/combres.axd" defaultDuration="300"
                                defaultVersion="auto"
                                defaultDebugEnabled="auto"
                                defaultIgnorePipelineWhenDebug="true"
                                localChangeMonitorInterval="30"
                                remoteChangeMonitorInterval="60">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文