开发者

IIS 7.5 AutoStart Feature doesn't work

I am new to IIS 7.5, and I'm trying to use the AutoStart feature, a开发者_运维技巧s described in ScottGu's blog and MSDN.

I implemented my own Preload() in my own IProcessHostPreloadClient and I just print to the log and event viewer there. But it seems I never reach the Preload(), since nothing is being printed. I expect to see the prints when I restart the Application Pool, but, as I said, nothing is happening.

Any suggestions as to what he problem could be? Or how can I check the reason for the problem?


I just print to the log and event viewer there

That could be your problem. Are you sure you can write to the event log at all from within your web app? Traditionally you won't have enough permission to do it in an asp.net app hosted in IIS running the standard permissions.

Try putting a test page in your web app that writes to the event log to make sure your print to event log code is working. If it's not, can you go the simple option of writing a text file to your app_data folder? You've normally got enough permission to write to it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜