web developer tips (73): IIS搜索引擎优化工具包


原文地址:about IIS Search Engine Optimization (SEO) Toolkit Beta 注:翻译本文时IIS搜索引擎优化工具包已经发布正式版。 IIS的搜索引擎优化(SEO)工具包-是一个免费的工具包,帮助Web开发人员,托管服务提供商,和服务器管理员,通过对搜索引擎的友好性,提高在搜索结果中的网站的相关性。此seo的工具包可以通过 Microsoft Web Platform Installer进行安装。 IIS的搜索引擎优化(SEO)工具的功能: http://www.watch-life.net/visual-studio/iis-search-engine-optimization-seo-toolkit.html 1、提高网站来自搜索引擎的流量。 2、控制搜索......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (72): 在Windows 7中使用IIS远程管理器


原文地址:you can now manage Windows Server 2008 and Windows Server 2008 R2 from Windows 7 IIS的远程管理器(IIS Remote Manager)目前支持Windows 7。在此之前发布的版本,iis远程管理只支持XP,Vista,Windows Server 2003和Server 2008的(不包括Home Basic版本)。现在,用户可以安装在Windows 7客户端远程管理器来远程管理2008和Server 2008 R2 IIS服务。 http://www.watch-life.net/visual-studio/iis-remote-management-for-windows-7.html 远程管理器在IIS下载中心提供下载: x86版本:IIS Manager for Remote Administration x64版本: IIS Manager for Remote Administration 或者在micr......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (71): 关于FastCGI 1.5beta几个新配置设置


原文地址:there are several new configuration settings available in FastCGI Extension 1.5 Beta 以下是FastCGI 1.5beta的新配置: http://www.watch-life.net/visual-studio/there-are-several-new-configuration-settings-available-in-fastcgi-extension-1-5-beta.html 1、MonitorChangesTo(监视对文件所做的更改) -指定文件路径,如果更改此文件,将触发 FastCGI 进程回收。如果属性值是空的,监视功能将不可用。文件的路径是FastCGI 进程所在目录的绝对或相对路径。如果没有输入,则默认值为空。 2、StderrMode (标准错误模式)-指定如何处理 FastCGI 进程报告的错误。可设......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (70):使用命令脚本安装IIS7


原文地址: how to install win7 RC IIS through command script 注:原文是在windows 7rc 版本下用命令脚本来安装,不过2009年10月22日windows 7 已经正式发布了。因此本文没有用原文中的安装脚本命令。而是在查询有关资料后,使用下面通用的脚本命令。 http://www.watch-life.net/visual-studio/install-iis-7-from-the-command-line.html Windows Vista Professional, Windows Vista Ultimate, or Windows Server 2008 Editions,window7安装iis7命令脚本如下: start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS......[阅读全文]

分类: Visual Studio | 2 条评论 »

web developer tips (48):IIS7应用程序池的“Ping”设置可能影响调试


原文地址:that IIS7 application pool’s “Ping” settings may affect IIS7 based website or application debugging
对于非响应的应用程序( application pool),默认情况下,IIS7有个1.5分钟的窗口。在IIS的web应用和网站调试期间,我们可能要改变其应用程序池的高级设置,比如设置“Ping的最大响应时间”给一个更大的值,或者设置“启用ping”为“false”。
http://www.watch-life.net/visual-studio/iis7-application-pool-s-ping-settings-may-affect-debugging.html

[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (46):使用Web Deployment Tool进行Web部署迁移


原文地址:that Web Deployment “migrate” operation is “sync” operation with all migration rules enabled 从IIS6 迁移一个应用或整个服务器到 IIS7,需要使用“msdeploy”命令行工具来完成迁移(migrate)。 例如,你可以在服务器上建一个“migration”的包,如下: msdeploy -verb:sync -source:webserver60 -dest:package=c:\migratedServer.zip 迁移意味着移动更多组件,然后进行同步。有关使用 Web Deployment Tool 进行部署迁移请参阅: Migrate from IIS 6.0 to IIS 7.0 同样的在C#里可以使用web部署的公用的APIs,你可以写C#进行同步(sync),只是需要启用所有......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (43):通过请求处理管道注册IHttpModule


原文地址:The way you register your IHttpModule depends on the request processing pipeline in which your module will run 建立和运行自定义IHttpModule需要做三件简单的事: 1、把源码编译成dll。 2、在net里注册。 3、在IIS配置系统里注册。 http://www.watch-life.net/visual-studio/register-your-ihttpmodule-depends-on-the-pipeline.html 1)假定你有个简单的模块,在验证发生之前,触发一个用HttpContext 做参数的事件,在BeginRequest事件写如下代码: public void Init(HttpApplication context) { context.BeginRequest += new System.EventHandler(context_BeginRequest)......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (42):用IIS配置编辑器生成脚本来更新配置


原文地址:ConfigurationEditor allows you to generate C#, JavaScript or AppCmd script to update configuration 如果你想写段脚本来添加或更新已经存在的配置,无论配置文件属于那种类型的,比如 administration.config, applicationHost.config 或 网站 或 应用程序的 web.config),你都可以安装配置编辑器(Configuration Editor)来实现,它是IIS管理包的一部分,使用”生成脚本”的功能,用来更新配置,真的是非常有用的功能。 有关IIS配置编辑器模块的安装和下载见: http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html 32-bit 管理......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (41):用自颁发的证书连接到远程IIS服务器


原文地址:establishing a remote connection to a IIS server with self-issued certificate will require a certificate validation delegate 要么通过WMSvc 要么通过自己的脚本,当你尝试与远程服务器建立一个连接,没有提供受信任的证书,你需要提供证书验证的委托,用来检查不受信任的证书。 http://www.watch-life.net/visual-studio/establishing-a-remote-connection-to-a-iis-server-with-self-issued-certificate.html 这个委托的签名如下: Namespace: System.Net.Security Assembly: System (in System.dll) public delegate bool RemoteCertificateValidationCallback( Object sender, ......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (34):在IIS7.0使用网址重写防止盗链


原文地址:How to stop hot-linking from your site using URL Rewrite in IIS 7.0 一个热链直接链接到网站文件(图片,视频等),例如使用一个<img>标签显示一个任何人都可以在你网站发现的jpge图片,这也可以称之为盗链,当有人浏览这个网站的时候,将使用使用你的网站的带宽来显示JPEG图片。 如果在你的网站用下面这个具有版权的图片http://www.contoso.com/img1.jpg,将会被保护防止热链。 使用IIS7.0 的网址重写模块(URL Rewrite module )可以实现很简单的实现这个目的。让我告诉你如果通过IIS管理器来做到这一点。打开IIS管理器,选......[阅读全文]

分类: Visual Studio | 1 条评论 »