IIS cache the COM object in memory. you can seperate it into another process, http://support.microsoft.com/?scid=kb;EN-US;Q281335 and kill dllhost.exe when you cant update the dll.
我怎么不能KILL dllhost.exe啊,如何才能杀掉?
设置你的项目在创建链接项目事件中执行 net stop iisadmin. 链接后事件设置成 net start iisadmin 让编译器自动执行
在IIS管理器中右击你的网站,选属性菜单 -》 主目录属性页 -》点击 配置(G)按钮
弹出应用程序配置对话框, 在映射属性页(第一个属性页中)有缓存ISAPI应用程序的复选框。
取消选择就可以不缓存ISAPI的DLL了,不过要重启IIS (IIS admin服务)后才生效,以后这个网站的ISAPI的DLL就可以随时修改了。
祝你好运!
如果楼主觉得麻烦,可以使用编译事件,那就可以不用自己去开关站点了
you can seperate it into another process,
http://support.microsoft.com/?scid=kb;EN-US;Q281335
and kill dllhost.exe when you cant update the dll.
net stop iisadmin.
链接后事件设置成
net start iisadmin
让编译器自动执行