感谢您的时间 :)
如果之前有人问过这个问题,我很抱歉,我真的需要澄清一下。
环境: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/