wcf - IIS7自动启动时自动启动应用程序/global.asax/wcf服务

标签 wcf iis-7 global-asax

感谢您的时间 :)
如果之前有人问过这个问题,我很抱歉,我真的需要澄清一下。

环境:server 2008 R2 64bit

基本上我试图做的是创建一个自治的应用程序,即使服务器重新启动也会加载。

我继续编写了一个 wcf 服务来完成工作量。

我所需要的只是一个可以启动一个 Web 方法的触发器。即使网站未加载(访问),它也需要触发。

到目前为止,我发现的所有内容都是注册表编辑,并且可能是批处理文件。我真的不喜欢这个主意,我希望我能做点别的。

我希望在 iis7 中找到一些可以在服务中调用 global.asax 文件或 AppInitialize() 的东西。

我能够让它启动的唯一方法是我自己访问应用程序。

谢谢你的帮助!

:)

最佳答案

你的 Windows Server 版本实际上有 IIS 7.5,所以你很幸运。查看新 自动启动 特征:

Auto-Start Feature

The auto-start feature of AppFabric is built on top of the auto-start feature of Internet Information Services (IIS) 7.5, which is included in Windows 7 and Windows Server 2008 R2. In IIS, you can configure an application pool and all or some of its applications to automatically start when the IIS service starts.

关于wcf - IIS7自动启动时自动启动应用程序/global.asax/wcf服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9162623/

相关文章:

c# - 如何将 session 值设置为空字符串?

c# - Mono 消费 WCF 服务失败 ServiceClient Linux

wcf - WCF 端点的安全性

iis-7 - 在 Windows 7 上的经典 ASP 中执行 ServerXMLHTTP.send 时出现 MSXML3.dll 80072efd 和 800c0005 错误

visual-studio-2010 - Asp.net 4.0尚未注册

c# - 在Application_Start上访问当前域名

ASP.NET Session_End 事件未触发

wcf - 使用用户名通过 https 配置 WCF 以获得 WS-Security

c# - WCF 无法解析 Java Soap 响应

iis-7 - 删除 "InetPub"文件夹是否安全?