托管在 iis7.5 上的 Web 服务有一个 Web 方法,每 5 分钟就会由“幽灵”调用一次。

发布于 2024-12-07 11:30:28 字数 1077 浏览 1 评论 0原文

我是一名 .Net 开发人员,第一次在 IIS 7.5 计算机上遇到 ASMX Web 服务的行为。它是一个临时服务器,所以我知道我是唯一使用它的人。

奇怪的行为如下:

  • 此 WS 中有 5 个 Web 方法,旨在由 Web 客户端代码调用
  • (据我所知),对于 WS,不存在“默认”Web 方法,
  • 每个 Web 方法都向 Windows 事件写入一个条目条目时的应用程序日志
  • 事件日志条目显示调用了哪个 Webmethod 以及其他一些内容
  • ,如果我让事情闲置,其中一个 Webmethods 每 5 分钟就会被调用一次,

我已经简要地查看了快速失败保护功能认为这可能就是它。目前已启用并设置为 5 分钟,但其其他方面似乎不适用。

我将其更改为“禁用”并重新启动 IIS,但它仍然以上述奇怪的方式运行。我很困惑这可能是什么......

        [WebMethod(Description = "Search TRIM by parsing CF's WebDrawer string for search criteria")]
    public string SearchCF(string trimURL
        , string CFSearchString
        , string CallerPC = "not specified"
        , string RequestorID = "not specified")
    {
#if DEBUG
        string d = String.Format("SearchCF: trimURL={0}, CFSearchString={1}, Identity={2}, CallerPCname={3}, RequestorIdentity={4} "
                                            , trimURL, CFSearchString, GetUserInfo(), CallerPC, RequestorID);
        LogDebuggingInfo(d, 500);
#endif            

I am a .Net developer encountering behavior of my ASMX webservice on an IIS 7.5 machine for the first time. It is a staging server so I know I am the only one using it.

Strange behavior as follows:

  • There are 5 webmethods in this WS meant to be called by web client code
  • (to my knowledge) there is no such thing as "default" webmethod for a WS
  • each one of the webmethods writes an entry to the Windows event application log upon entry
  • the event log entry shows which webmethod called and some other stuff
  • if I leave things idle, one of the webmethods gets called every 5 minutes EXACTLY

I've looked briefly at the rapid-fail protection feature thinking this might be it. It is currently enabled and set to 5 minutes but the other aspects of it don't seem to apply.

I changed it to DISABLED and restarted IIS but it still behaves in the above strange way. I am confused what this could be...

        [WebMethod(Description = "Search TRIM by parsing CF's WebDrawer string for search criteria")]
    public string SearchCF(string trimURL
        , string CFSearchString
        , string CallerPC = "not specified"
        , string RequestorID = "not specified")
    {
#if DEBUG
        string d = String.Format("SearchCF: trimURL={0}, CFSearchString={1}, Identity={2}, CallerPCname={3}, RequestorIdentity={4} "
                                            , trimURL, CFSearchString, GetUserInfo(), CallerPC, RequestorID);
        LogDebuggingInfo(d, 500);
#endif            

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

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

发布评论

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

评论(2

那小子欠揍 2024-12-14 11:30:28

通过在该服务器上安装独立版本的 .Net Framework 4.0(64 位版本)解决了上述这种非常奇怪的情况。接下来通过运行以下命令安装 ASP.NET 4.0:

o   navigate to C:\Windows\Microsoft.NET\Framework64\v4.0.30319 
o   in cmd prompt (run as Administrator) execute:
  • aspnet_regiis.exe –i
  • iisreset 
o   reconfigure both the client site and the site hosting the webservice to run ASP.NET 4.0 (resulted in significant reduction of the number of entries in web.config

在尝试修复该问题的上述序列之前,我检查了上面的其他建议。

This very strange condition described above was solved by installing the standalone version of .Net Framework 4.0 (64bit version) to this server. This was followed by installing ASP.NET 4.0 by running:

o   navigate to C:\Windows\Microsoft.NET\Framework64\v4.0.30319 
o   in cmd prompt (run as Administrator) execute:
  • aspnet_regiis.exe –i
  • iisreset 
o   reconfigure both the client site and the site hosting the webservice to run ASP.NET 4.0 (resulted in significant reduction of the number of entries in web.config

I checked out the other suggestions above before trying the above sequence which fixed it.

爱*していゐ 2024-12-14 11:30:28

答案涉及应用升级。请参阅我如何修复此问题:

iis7.5 上托管的 Web 服务每 5 分钟就会由“幽灵”调用一个 Web 方法

Answer involves applying upgrades. Please see how I fixed this at:

webservice hosted on iis7.5 has one webmethod invoked every 5 minutes exactly by a "ghost"

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