星期二, 12月 30, 2014

Visual Studio Express + SpecFlow

  1. refer NuGet package: SpecFlow
  2. copy packages\specflow.1.9.0\tools to C:\SpecFlow190Tools
  3. If *.feature.cs can't be generated with "The element <ImportGroup> beneath element <Project> is unrecognized.  C:\Program Files\MSBuild\12.0\bin\Microsoft.CSharp.targets" error message, refer this to create the specflow.exe.config file. OR, modify the project file: <Project ToolVersion="12.0"... (Visual Studio 2013) -> <Project ToolVersion="4.0"... (Visual Studio 2010 / 2012).

Visual Studio Express + NUnit

星期一, 12月 29, 2014

MsDeploy ERROR_SITE_DOES_NOT_EXIST

這個錯誤訊息可能來自於「來源的辨識錯誤」或真正的「目的位置不存在」,要如何讓前者現出原形?修改一些參數:
當沒有指定部署目的時,仍出現原來的錯誤,就可以澄清這並不是真正的「目的位置不存在」。

nth-child / nth-of-type




星期一, 12月 22, 2014

How to make your IIS web application deployed remotely?

  1. Install IIS with extra "Management Service".
  2. Fully installed "Web Deploy" (reference).
  3. Web Management Service running, and related port opened.
  4. Execute this command:msdeploy.exe -verb:sync -allowUntrusted -source:iisApp=<SourceFolder> -dest:iisApp="Default Web Site\<vDir>",wmSvc=<MachineName>,username=...,password=...
  5. If <SourceFolder> is relative and Error "Site ... Doesn't Exist", try absolute path instead.

How to make your VirtualBox Windows Guest echo the IPv4 ping request?

  1. Bridged network on a wired connection.
  2. Control Panel -> Systems and Security -> Windows Firewall -> Advanced Settings -> Inbound Rules -> (Enable) File and Printer Sharing (Echo Request - ICMPv4-In)
  3. (only for my company) If the guest get a 172.16.100.xxx IP with 255.255.255.0 subnet mask and 172.16.100.1 gateway, release the IPAddress and visit 172.16.100.1 by IE, then register your account for a renewed IP.

星期五, 12月 19, 2014

Web Deploy Installation

為了解決遠端部署 IIS 網站的問題,嘗試在命令列使用 msdeploy.exe,一直不成功。原來透過 Web Platform Installer 預設安裝並不支援,又沒機會改變安裝的選項。所以一定要去網路上抓 WebDeployXxx.msi,並且選完整安裝,或至少多挑「IIS Deployment Handler」這一項。安裝後再檢查一下「Web Management Service」是否啟動了。
還有一件要緊事,如果在 WebDeploy 安裝前並沒有 IIS Management Service(在 Windows Features -> Internet Information Services -> Web Management Tools 底下),即使選完整安裝還是不完整,所以順序也很重要哦!