iis中自动浏览Service.svc文件
我创建了一个WCF 服务,并将其托管在IIS 中。当我在 IIS 中启动服务时,直到我浏览 Service.svc 文件后,该服务才会启动。
应用程序池在特定时间间隔后被回收,然后当服务重新启动时,我再次需要去浏览 Service.svc 文件。
我已将此服务设置为默认值,但它不起作用并且结果相同。
有什么方法可以在服务启动或重新启动时自动浏览我的 Service.svc 文件。
I have created a WCF service which i have hosted in IIS. When I start the service in IIS, the Service do not started until I browse my Service.svc file.
Application pool gets recycled after a specific interval, then when the Service is restarted I again need to go and browse the Service.svc file.
I have set this Service as Default bt it does not work and results the same.
Is there any way to automatic browse my Service.svc file when the Service is started or restarted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 IIS 的普遍烦恼。它启动工作进程来执行网站处理,这些处理在网站被请求之前不会(总是)启动。我过去使用的解决方法是访问 Web 应用程序外部的页面来启动 IIS 工作进程,以便在需要时可用。但要小心,尽管应用程序池存在一些细微差别,可能会使事情变得比实际需要的更加复杂。
This is a general annoyance with IIS. It launches worker processes to perform website processing which don't (always) start until the website has been requested. The workaround I've used in the past is to hit a page outside of my web application to launch the IIS worker process so it is available when I need it. Be careful though there are some nuances to the app pools that can make this more complicated than it needs to be.