顯示具有 Office 標籤的文章。 顯示所有文章
顯示具有 Office 標籤的文章。 顯示所有文章

2012年11月24日 星期六

FREE ebook for SharePoint 2013 (微軟免費 SharePoint 2013 電子書)

想了解SharePoint 2013的人有福了,目前微軟官方網站上提供了幾本免費的電子書,是針對SharePoint 2103 和Office 2013 等所涵蓋的內容,沒事K一K,增長見識,有事K一K,強化知識。

其中亞當斯比較喜歡的幾本分別是:

  • Explore SharePoint 2013
    主要介紹SharePoint 2013的新功能和一些操作方式
    下在網址:http://www.microsoft.com/en-us/download/details.aspx?id=35396
  • Deployment guide for SharePoint 2013
    This book provides deployment instructions for SharePoint 2013. The audiences for this book include application specialists, line-of-business application specialists, and IT administrators who are ready to deploy SharePoint 2013.
    下載網址:http://www.microsoft.com/en-us/download/details.aspx?id=30384
  • Deployment guide for Office 2013
    This book supports a preliminary release of Microsoft Office 2013 and provides deployment instructions for Office 2013. The audiences for this book include application specialists, line-of-business application specialists, and IT administrators who are ready to deploy Office 2013.
    下載網址:http://www.microsoft.com/en-us/download/details.aspx?id=30388
  • Deployment guide for Duet Enterprise 2.0 for Microsoft SharePoint and SAP Server 2.0
    This book provides deployment instructions for Duet Enterprise for Microsoft SharePoint and SAP Server 2.0. The audiences for this book include application specialists, line-of-business application specialists, and IT administrators who are ready to deploy Duet Enterprise 2.0.
    下載網址:http://www.microsoft.com/en-us/download/details.aspx?id=30381

以上提供給有興趣研究SharePoint 2013的朋友們一些參考資訊,希望對大家有所幫助!

2012年11月14日 星期三

The Solution of using ASP.NET Create Excel in Windows 2008 x64 with 80070005(在x64位元的系統上執行ASP.NET產生Excel遇到80070005 存取被拒解決方式)

環境:Windows 2008 R2 x64 + ASP.NET 4.0 + Excel 2010

問題:當在ASP.NET中使用Microsoft.Office.Interop.Excel之ApplicationClass來讀取Server上的Excel時,預設會出現以下的錯誤訊息:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 存取被拒.

我使用try…catch包起來所攔截的Exption如下所示:

image

造成以上問題主要是執行DCOM的權限部分,因為ASP.NET4.0以上版本在IIS上執行所使用ApplicationPool中的執行身分是ApplicationPoolIdentity,也就是IIS AppPool\ASP.NET v4.0

image

因此第一個要解決的就是在DCOM中給此帳號足夠的存取權限,作法如下:

  1. 在SERVER上先執行以下指令:mmc comexp.msc /32,此指令主要是開啟32位元的元件服務設定。
  2. 在元件服務—>電腦—>我的電腦—>DCOM設定中找到Microsoft Excel Application,按右鍵選擇內容
    image
  3. 點選安全性頁籤,啟動和啟用權限以及存取權限預設都沒有設定給ASP.NET v4.0
    image
  4. 所以我們要進行自訂設定
    image
  5. 在啟動和啟用權限以及存取權限中將IIS AppPool\ASP.NET v4.0加入
    image
  6. 當按下檢查名稱後,會自動尋找對應,按下確定
    image
  7. ASP.NET v4.0權限為允許本機啟動以及本機啟用
    另外假設往後也會使用到NETWORK SERVICE帳號的話,也可以順道加入,避免往後其他ApplicationPool設定NETWORK SERVICE時,還要近來在設定一次
    imageimage

到目前為主解決了DCOM權限的問題,但是EXCEL麻煩的問題不單單是這樣,當執行程式時,權限是通過了,但出現了另一個錯誤畫面,如下圖所示:

image

其實到這邊亞當斯已經很想砸桌子了,因為以上所列的幾種可能原因根本都不存在,當然我很確定我的程式是沒問題的,那麼到底怎麼辦呢? 問了一下Google大神,很多人都使用修改註冊機碼的方式,終於被我找到一種最快、最簡單的解決方式,那就是:

  1. 如果是Windows 2008 Server x64 的話,那麼就在下列路徑中C:\Windows\SysWOW64\config\systemprofile新增一個資料夾,名稱命名為:Desktop,即可。
    image
    資料建立完成之後,還要進行權限設定,如下圖所示:
    image
  2. 假設Windows 2008 Server x86的話,路徑為 C:\Windows\System32\config\systemprofile\Desktop

老實說,我也不知道第二個問題的發生主要原因所在,或許是跟產品的一些限制有關,總之,以上兩個大問題都解決之後,就可以順利在ASP.NET中執行存取EXCEL了,YES。

2011年6月14日 星期二

Office 365 Developer Resource (Office 365 開發參考資源)

最近微軟推出Office 365可以讓企業花費少許的費用,就可以將企業內部組織以及相關資料整合到雲端上,不過光是設定完成之後,基本的功能,對於那些可能需要客製化相關功能的客戶,還少了那麼一點點東西。

因此假設需要開發Office 365上的一些功能的話,以下亞當斯整理一些開發相關的資源以及參考:

  • Office 365 Developer Training Kit
    Guidance that provides developers with advanced guidance on how to develop for Office 365 including SharePoint Online, Exchange Online and Lync Online
  • Visual Studio 2010 SharePoint Power Tools
    The Visual Studio 2010 SharePoint Power Tools is a set of templates and extensions that provides additional functionality to SharePoint developers who use the SharePoint developer tools in Visual Studio 2010.  Below is the list of features included in the current release of the power tools
  • SharePoint Online Developer Resource Center
    Find articles, videos, and training for the developer features available in SharePoint Online
  • SharePoint Online for Office 365: Developer Guide
    Use the SharePoint Online for Office 365 Developer Guide to gain knowledge and understanding of SharePoint Online within Microsoft Office 365, and the rich features available to developers and designers

另外關於SharePoint Online的開發相關參考資源比較常用到的還有以下這些資訊:

SharePoint Online: An Overview for Developers

Learn about the developer features that are coming to SharePoint Online, strategies and patterns for successfully developing on SharePoint Online, and links to additional resources for developers to deepen their knowledge of these extensibility features.

Cloud-Based Collaboration with SharePoint Online

Learn how SharePoint Online development is similar to and different from SharePoint 2010 development by following along with Chris Mayo as he builds solutions that run in the cloud.

Remote Authentication in SharePoint Online Using Claims Based Authentication

Use this article and code sample to learn how to authenticate against SharePoint Online in client applications using the SharePoint client-side object models.

SharePoint Online Developer Guide

Download this white paper to gain knowledge and understanding of SharePoint Online within Microsoft Office 365, and the rich features available to developers and designers. Or read the online version.

Office 365 Developer Training Kit

Use this online or downloadable training course to help you get started building cloud-based communication and collaboration solutions for Office 365, including SharePoint Online. Includes 7 modules, with over 10 hours of video and 17 hands-on-labs.

SharePoint 2010 SDK

Read the SharePoint 2010 SDK online or download the SDK documentation and code samples.

2011年5月24日 星期二

Easy Office 365 Starter–超 Easy Microsoft Office 365 快速建立導入

適用於專業人員和小型企業的 Microsoft Office 365 訂閱服務結合熟悉的 Microsoft Office Web Apps 與易於學習使用的 Web 工具集,可與現有硬體搭配運作,而且針對企業營運需求提供穩固的安全性、可靠性和控制。

  • 透過 Microsoft Exchange Online 提供:Office 365 可讓您幾乎隨時隨地使用桌上型電腦、膝上型電腦和行動裝置*,存取電子郵件、行事曆和連絡人—同時協助保護免於病毒和垃圾郵件威脅。
  • 透過 Microsoft SharePoint Online 提供:Office 365 可讓您在單一位置,從共用電腦或智慧電話存取及共用文件和見解、聯絡人、行事曆和工作。
  • 透過 Microsoft Lync Online 提供:透過您每日使用的 Office 應用程式中的立即訊息 (IM)、Lync 視訊通話或線上會議,Microsoft Lync Online 協助您尋找並快速連接連絡人。

首先感謝 John 的安裝導入介紹,各位有興趣請先參考以下這篇文章:Office 365 Beta 初窺(1) -- 啟用,不得不說John真的是超威的,已經把我想要註冊的網域搞到手,哈哈~好啦廢話不多說,我記錄一下亞當斯的申請過程!

  1. 首先到http://www.microsoft.com/zh-hk/office365/small-business/beta.aspx註冊一個Office 365 P1的帳戶,亞當斯原本要註冊香港地區的繁體中文版,但是沒想到HK的Office 365 P1居然在註冊的時候掛了,我咧~好吧!那只好先註冊英文版的來玩玩…image
  2. 所以就先到US註冊,反正英文版的大家也比較習慣相關的設定吧!image
  3. 填好完整資料之後,送出完成之後,當登入後,進入管理介面中,會出現以下視窗畫面,接著就可以設定相關的功能,諸如:Outlook Online、SharePoint Online、Lync整合…等等image
  4. 其實亞當斯比較感興趣的是其SharePoint Online所可以支援的功能到底有哪些,所以就先來建立SharePoint Online,按下 Team sites and document 下的Manage team site。image
  5. 使用帳戶登入之後,我只能說:太酷了! 一個線上快速的SharePoint網站不到一分鐘馬上建立完成,image
  6. 而且語系隨時可以調整,就算你想要將你的SharePoint Online呈現為中文版也行,甚至在進行內容設定時,也可動態調整清單的語系,如下圖所示:image

感覺Office 365對小企業來說真的很好用,只要花一點點小小的費用,就可擁有企業的整體服務,亞當斯此次申請的Beta版,還有184天才到期,算一算有大概半年的試用期,可以讓亞當斯測很多東西了,改天有測到更多功能載來跟各位分享。

image