Welcome to MSDN Blogs Sign in | Join | Help

新年到! 新的部落格!

新的一年來到了,祝大家:

身體健康

事事如意

天天開心

牛轉$ 坤

 

新年新氣象,

筆者申請了一個新的部落格,往後都會在新的部落格發佈文章。

Posted by jchiou | 0 Comments

在 Azure 中使用 AJAX 呼叫 WCF 的服務

上一篇文章中,可以知道如何將開發好的應用程式上傳到 Azure Services Portal 中。

接著一定要來測試一下一些重要的技術是否也可以相容?

俗話說:『眼見為憑』。

所以我們就來使用一個簡易的範例來證明在 Azure 中是否可以使用 AJAX 來呼叫 WCF 服務。

 

範例很簡單,輸入兩個數字,由 WCF 的服務提供  加、減、乘、除   的服務。

image

 

網址為止:http://taiwan.cloudapp.net/ 

大家可以自行測試這個程式。(筆者會陸續測試不同的程式,所以您連到這個網址,可能會看到不同的程式)

 

如何證明這是真的呼叫 WCF 的服務,不是個晃子呢?

我們可以直接在網址列輸入 http://taiwan.cloudapp.net/service.svc/Add?n1=10&n2=20

其回傳為 30 (JSON 格式),因為筆者在 WCF 的 Add 方法有加入 [WebGet] 屬性,您也可以透過這個方式叫用。

 

由上述可知,筆者的這個 WCF 的服務係金的。

 

當然也證明 Azure Services Platform 可以支援 AJAX 及 WCF。

 

筆者使用的環境界:Windows 7 Beta + VS 2008 SP1 + Azure SDK(Jan 2009) + Azure Tool for VS(Jan 2009)

Enjoy.

Posted by jchiou | 0 Comments
Filed under:

建立一個 Web Cloud Service 應用程式並部署到 Azure Service Developer Portal

本篇文章將示範如何建立一個 Web Cloud Service 應用程式並部署到 Azure Service Developer Portal 上。

 

1. 開啟 Visual Studio,新增專案,選擇 Web Cloud Service 的範本。(這些範本需安裝 Azure Tool for VS 才會出現)

image

 

2. 在方案總管中即可看到自動建立的兩個專案。

    下方的專案(HelloCloud_WebRole)為一個 ASP.NET 的應用程式,

    上方的專案(HelloCloud)為其設定檔,如何:動態設定使用幾台 Web Server 跑這個應用程式

image

 

3. 簡單加入『台灣您好』及網頁的 Title

image

 

4. 在專案按下右鍵,選擇『Publish』,即會開啟 Azure Service Portal 及部署檔案的位置

image

 

image

5. 依照步驟建立新的 Project,指定部署的位置,再啟動這個應用程式。

image

 

6. 執行結果

image

 

使用心得:

1. 開發人員原有的技術仍可使用:就像開發一般 ASP.NET 的應用程式一樣。

2. 部署簡單:與 Visual Studio 整合,讓部署上很方便且直覺。

3. 在不透過伺服器管理員下,動態變更這個服務(Service)的相關設定。

 

 

筆者使用的環境界:Windows 7 Beta + VS 2008 SP1 + Azure SDK(Jan 2009) + Azure Tool for VS(Jan 2009)

Enjoy.

Posted by jchiou | 0 Comments
Filed under:

Windows Azure Tools for Microsoft Visual Studio January 2009 CTP

2009 年1 月份的新版工具已經可以下載囉,網址如下:

http://www.microsoft.com/downloads/details.aspx?FamilyID=8e90b639-1ef0-4e21-bb73-fc22662911bc&displaylang=en

 

New for the January 2009 CTP:

  • Addressed top customer bugs.
  • Resolved hang and performance issues on run and debug.
  • Fixed issue with "Publish" of large projects.
  • Added support to debug Silverlight in a Web Role.
  • Better storage services integration
  • Error messages when there are Service Configuration or Service Definition errors

Windows Azure Tools for Microsoft Visual Studio includes:
  • C# and VB Project templates for building Cloud Services
  • Integration with the Development Fabric and Development Storage services
  • Debugging Cloud Service Roles running in the Development Fabric
  • Building and packaging of Cloud Service Packages
  • Browsing to the Azure Services Developer Portal
  • Role configuration
  • SSL Certificate selection

Enjoy.

Posted by jchiou | 2 Comments
Filed under:

Azure Services Platform 註冊及使用

今天早上收到新版的 Azure Service Platform 的 Token。想與大家分享一下如何註冊及使用。

1. 要先有一組 Windows Live ID。

2. 透過 Microsoft Connect 來 註冊服務

3. 隔一段時間後,收到來自 Azure Services Platform Team 的回信,如下:

image

4. 到 http://lx.azure.microsoft.com/fs,將 Token 輸入,接著即會立即啟用相關的服務

image

5. 可以從 Summary 的頁面,按『New Project』,即可看到可以使用的服務了。

image 

若對該服務沒有使用權限,它即會呈現灰色,並無法點選。

原本筆者也是全部都可以使用的,但自己手XD,亂按,讓 Live Framework 又灰掉了。XD

Enjoy.

Posted by jchiou | 0 Comments
Filed under: ,

Microsoft Windows 7 SDK: BETA

下載位置如下:

Microsoft Windows 7 SDK: BETA

 

@Windows 7 Beta + Windows Live Writer

Posted by jchiou | 0 Comments
Filed under:

關發 Windows Ribbon 的範例程式

在 Windows 7 中,應用程式上方的功能列,都已使用像 Office 2007 的樣子,我們叫它做『Ribbon』

如 Windows 7 的筆記本 :

image

Windows 7 的 WordPad

image

 

如何開發 Windows Ribbon,目前有範例程式可以參考,下載位置放:

http://www.microsoft.com/downloads/details.aspx?FamilyID=141e13e8-b10b-4356-aaa5-609b2981574a&DisplayLang=en

 

圖片取自 Windows 7 Beta 版。Enjoy.

Posted by jchiou | 0 Comments

什麼是 Windows Azure?

Windows® Azure 是一套雲端服務作業系統。作為 Azure 服務平台的開發、服務代管及服務管理環境。

Windows Azure 降低打造可靠及彈性的 web 應用程式門檻,基於它是架構及運作在大家所熟悉的微軟技術上。Windows Azure 完全支援微軟的 web 技術,如 ASP.NET、IIS 及 Visual Studio® 2008,這使開發人員能夠立即使用現有技能,有效率地建立、測試、部署、管理及 web 服務,藉此來創造商機。Windows Azure 支援主流的標準與通訊協定,包括 SOAP、REST 及 XML。微軟歡迎 Eclipse、Ruby、PHP 與 Python 第三方工具及語言能夠加入 Windows Azure 行列。讓您可以專注於應用程式商業邏輯,而不必擔心運作上的限制或是技術綁定。

藉由 Windows Azure 內 Fabric Controller 控制管理技術,可視需求來即時動態增加及減少應用程式所需的運算量。內建的管理服務提供監視及追蹤能力,使您能夠專注線上打造及派送服務及應用程式。

image

使用 Windows Azure 來:

  • 將雲端 Web 服務能力加入到既有的套裝應用程式
  • 只需極少的公司內部資源,便可建置、修改及散佈應用程式至 Web
  • 在非公司內部執行服務 (大量儲存、批次處理、大量運算等)
  • 快速又經濟地建立、測試、除錯及散佈 Web 服務
  • 降低建置及擴充公司內部資源的費用
  • 減少 IT 管理的投入與成本

 

所有資料皆取自 Azure 服務平台 中文版網站正式上線

Hope this helps.

Posted by jchiou | 0 Comments
Filed under:

Windows 7 Beta 版已可以由 MSDN 訂閱下載囉

Windows 7 Beta 英文版已可以由 MSDN 訂閱下載囉!

image

 

筆者使用 Dell D630 (CPU: T9300, RAM: 4GB),約 12 分鐘即安裝完成,進入到桌面。

整體來說,效能及穏定性都相當的不錯。

Enjoy.

Posted by jchiou | 1 Comments
Filed under:

有關 Windows Azure (雲端) 的中文資訊可以由那裡取得?

 

中文資訊的部份,可以由 MSDN 中文的首頁,網址如下:

http://msdn.microsoft.com/zh-tw/default.aspx

 

在左方的選單中,點選『Windows Azure(雲端運算)』

image

 

即會看到 Azure 服務平台的首頁,如下:

image

 

資訊相當豐富,很多的資訊已翻譯為中文的。

 

Enjoy.

Posted by jchiou | 1 Comments
Filed under:

全新打造符合一般使用者可以輕鬆閱讀的一點通中文知識庫文章

微軟知識庫文章一直是專業資訊人員或開發人員學習微軟產品技術和疑難排解技術問題的好夥伴。

然而,對初學者來說,很難按照文章所列的步驟來解決所遭遇的問題。

您的聲音我們聽到了,我們針對目前知識庫文章介面進行全面的改造,讓整個閱讀的介面更加精簡,提供使用者可以自己選擇想要的部分來閱讀。

除此之外,我們針對技術支援工程師每天服務客戶的案件篩選出最熱門的問題,製作成符合一般使用的可以輕鬆閱讀的一點通中文知識庫文章。內容部分使用比較口語的方式撰寫,解答步驟提供詳細的圖片說明,對於過於複雜的解決方法我們進一步提供完整的影片操作示範

您可以參考以下最新發行的一點通中文知識庫文章,我們會持續提供更多簡單好用的文章,公佈在微軟技術支援首頁,造福廣大愛好微軟技術的使用者。

clip_image001一點通中文知識庫文章

安裝 Windows XP Service Pack 3 後,無法啟動 Outlook Express

更新 Windows XP SP3 後,可能收到 AirGCFG.EXE 或 WZCSLDR2.EXE 無法找到輸入點的錯誤訊息

遇到 Windows Update 或 Microsoft Update 無法更新時該怎麼辦 ?

戰爭機器 (Gears of War) PC 版 - 安裝後無法執行遊戲或無法儲存遊戲進度

clip_image002

Enjoy.

Posted by jchiou | 2 Comments

技術改版,對技術人員到底是利多還是利空呢?

王森於MSDN Flash 復活之卷二 的編者的話,原文如下:

image

科技始終來自人性(惰性)。

 

回想五年前在 .NET 1.0、1.1 的時代,Visual Studio 開發工具並沒有直接支援 Master Page、MVC 等等功能,一切都是一行行程式碼寫出來的。

那時心裡就 XD,為什麼微軟不把這些功能都做好,那我們就不用自己來開發維護這些基本的功能。這樣也可以節省我們的時間。

 

經過了這幾年,.NET Framework 4 及 Visual Studio 10 也都快要推出了。

到了現在有一堆新的技術及名詞,確實讓人消化不良,總覺得一直在追趕新出的技術。

筆者也是花了許多時間去了解每一個新的東東為何要這樣設計,它要解決什麼樣的問題。

在遇到不同的問題時,要用最適合的技術來解決這個問題(不一定是最新的,有許多不同的因素要考量)。

就像在某些時候,直接用 WebPage 開發會比使用 MVC 的開發方式來的更適合;

或是 LINQ To SQL 及 Entity Framework 看起來都是存取資料庫,但它們在設計上是有些不同的,也有各自適合的使用時機。

 

筆者也是以正面的態度來看待這些新的技術。善加利用這些新的技術,定可以讓我們事半功倍。

Team System 2008 SP1 Virtual PC/Virtual Server and Hyper-V images

此版本的 VSTS 有更新最新的 Service Pack 1,及 Hyper-V 的版本供大家選擇。

下載資訊:

Visual Studio® Team System 2008 VSTS Hyper-V Image (Trial)

Microsoft Visual Studio 2008 is the next-generation development tool for Windows Vista, the 2007 Office System, and the Web.

 

Visual Studio® Team System 2008 VSTS VPC Image (Trial)

Microsoft Visual Studio 2008 is the next-generation development tool for Windows Vista, the 2007 Office System, and the Web.

 

Visual Studio® Team System 2008 TFS Hyper-V Image (Trial)

Visual Studio Team System 2008 Team Foundation Server is an integrated collaboration server for Visual Studio Team System.

 

Visual Studio® Team System 2008 TFS SP1 VPC Image (Trial)

Visual Studio Team System 2008 Team Foundation Server SP1 is an integrated collaboration server for Visual Studio Team System.

 

Enjoy.

Posted by jchiou | 1 Comments
Filed under: , ,

供 Internet Explorer 應用程式測試的虛擬機器(12/26 更新)

此次包含下列 IE 及 Windows 版本組合供使用:

  • IE6-XPSP3_VPC.exe contains a Windows XP SP3 with IE6 VHD file
  • IE7-XPSP2_VPC.exe contains a Windows XP SP2 with IE7 VHD file
  • IE8B2-XPSP3_VPC.exe contains a Windows XP SP3 with IE8 Beta 2 VHD file
  • IE7-VIS1.exe+IE7-VIS2.rar+IE7-VIS3.rar contain a Vista Image with IE7 VHD file.
  •  

    下載位置:

    http://www.microsoft.com/downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&DisplayLang=en

     

    Enjoy.

    Posted by jchiou | 1 Comments
    Filed under: , ,
    More Posts Next page »
     
    Page view tracker