利用IIS7自带类库管理IIS现在变的更强大更方便,而完全可以不需要用DirecotryEntry这个类了(网上很多.net管理iis6.0的文章都用到了DirecotryEntry这个类 ),Microsoft.Web.Administration.dll位于IIS的目录(%WinDir%\\System32\\InetSrv)下,使用时需要引用,它基本上可以管理IIS7的各项配置. 这个类库的主体结构如下: 主要调用code 如下: using (ServerManager sm = Ser
Error info:Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Solution: This is because Microsoft.We
在进行web test录制时,IE启动后,在左侧可能没有显示Microsoft Web Test Recorder,这很有可能是因为IE加载项中,该项被禁止了,按照如下操作可解决此问题: 1. 打开IE的 管理加载项 窗口,如下图 2. 选择 工具栏和扩展,正常在右侧的列表中可以看到Microsoft Web Test Recorder ... 3. 选中 Microsoft Web Test Recorder ... ,然后点击启用,如下图