标签归档:iis

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

原文地址:about IIS Search Engine Optimization (SEO) Toolkit […]


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

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

原文地址:you can now manage Windows Server 2008 and Windows […]


原文地址: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版本...... [阅读全文]

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

原文地址:there are several new configuration settings avail […]


原文地址: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 进程回收。如果属性值是空的,监视功能将不可...... [阅读全文]

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

原文地址: how to install win7 RC IIS through command script […]


原文地址: 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-WebServerRol...... [阅读全文]

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

原文地址:that IIS7 application pool’s “Ping” settings may a […]


原文地址: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 ...... [阅读全文]

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

原文地址:that Web Deployment “migrate” operation is “sync” […]


原文地址: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),只是需要启用所有的迁移规则。c#...... [阅读全文]

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

原文地址:The way you register your IHttpModule depends on t […]


原文地址: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_...... [阅读全文]

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

原文地址:ConfigurationEditor allows you to generate C#, Jav […]


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

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

原文地址:establishing a remote connection to a IIS server w […]


原文地址: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:...... [阅读全文]

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

原文地址:How to stop hot-linking from your site using URL R […]


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

web developer tips (31):利用IIS 7.0的URL Rewrite 模块产生用户友好的URL

原文地址:How to have user friendly URL using IIS 7.0 URL Re […]


原文地址:How to have user friendly URL using IIS 7.0 URL Rewrite module 很友好的URL地址,使访问的人很容易记住。要求你的用户记住“ http://www.contoso.com/article.aspx?id=342&title=URL-Rewrite-Walkthrough” 这样的网址并不是件很美妙的事。如果给用户提供如下URL地址:http://www.contoso.com/article/342/URL-Rewrite-Walkthrough,就能更好引起共鸣和更容易被记住。 通过IIS URL Rewrite 模块( URL Rewrite module)你可...... [阅读全文]

web developer tips (20):使用IIS作为web服务器

原文地址:How to change WAP to use an IIS Web server 有时候,在开发 […]


原文地址:How to change WAP to use an IIS Web server 有时候,在开发web应用,想使用IIS来代替Visual Studio 开发服务器(Development Server) 作为web应用服务器,可以按如下操作进行: http://www.watch-life.net/visual-studio/change-wap-to-use-an-iis-web-server.html 1、在解决方案管理器中,单击“ Properties”页或在项目的上下文菜单中选择“属性” ...... [阅读全文]

web developer tips (17):远程调试使用IIS的web应用

原文地址:How to remote debug WAPs that are using IIS 如果你有个使 […]


原文地址:How to remote debug WAPs that are using IIS 如果你有个使用iisweb应用发布在另一台服务器,你可以使用 Visual Studio 2008 SP1来远程调试这个web应用。 http://www.watch-life.net/visual-studio/remote-debugging-waps-using-iis.html 首先通过菜单:文件+打开项目,打开(远程)服务器(比如 \\server\share)的web应用项目,右键单击“项目”选择“属性”,打开“web”标签页。在“服务器”选项里,选中“使用自定义web服务...... [阅读全文]

web developer tips (12):在Visual Web Developer里创建IIS虚拟目录

原文地址:How to create an IIS Virtual Directory from within […]


原文地址:How to create an IIS Virtual Directory from within Visual Web Developer 以下的步骤介绍如何在Visual Web Developer里创建IIS的虚拟目录(Virtual Directory)。当然,IIS已经被安装。 http://www.watch-life.net/visual-studio/create-an-iis-virtual-directory-from-within-visual-web-developer.html 1、创建一个“网站项目”:文件+新建+网站 2、在“新建网站”对话框里,单击“浏览”按钮,打开“选择位置”对话框 ...... [阅读全文]

创建控件时出错/lm/w3svc/… 不是一个有效的iis应用程序” 的解决办法

创建控件时出错/lm/w3svc/… 不是一个有效的iis应用程序” 的解决办法 环境:vs2005,as […]


创建控件时出错/lm/w3svc/... 不是一个有效的iis应用程序" 的解决办法 环境:vs2005,asp.net web 应用程序(项目),IIS作为发布服务器 导致原因:是项目的属性配置中,“服务器”的设置中与IIS中的虚拟目录不一致导致。 ...... [阅读全文]