向 SharePoint 2007 提供 ASP.Net 3.5 功能的可支持選項有哪些? (What are the supportable options for delivering ASP.Net 3.5 capability to SharePoint 2007?)


問題描述

向 SharePoint 2007 提供 ASP.Net 3.5 功能的可支持選項有哪些? (What are the supportable options for delivering ASP.Net 3.5 capability to SharePoint 2007?)

I want to make use of some of the ASP.NET 3.5 capability within SharePoint 2007.  In particular, I want to do the following:

  • Provide REST and maybe JSON through HTTP so that another product can consume SharePoint content.
  • Provide AJAX web parts within SharePoint.  These will probably have little to no server side controls.  Most content will be loaded using Javascript and hitting an external system (primarily not SharePoint) over HTTP that provides REST or JSON.
  • Provide this capability as a product.  This is not a one‑off solution for a single implementation.

My main concern is push‑back from IT groups not wanting to change their SharePoint environment to allow for the product to work.  So, I'd prefer to be able to say that what I'm doing is "supported by Microsoft", but I'm not sure that will be the case.

I realize that I could create a separate (non‑SharePoint) web site on the SharePoint server(s) for WCF endpoints that provide SharePoint data to an external application.  I would rather not do this because that won't help my web parts (if they need help) and that makes deployment harder.  Proper SharePoint deployment will automatically have SharePoint update all necessary files (e.g., web.config) on any new web front end added to the farm and this wouldn't follow that pattern.  In addition, I'd lose the ability to use SPContext.Current.

I have read much of Daniel Larson's book on Developing Service‑Oriented AJAX Applications on the Microsoft Platform (good read, BTW), esp. Chapter 11 on extending SharePoint.  He outlines WCF, ASMX, and HTTP Handler options and for the most part recommends the HTTP Handler option.  It appears that the HTTP Handler option has minimal changes to web.config.

I have also seen a blogs on SharePoint as a WCF Host, SharePoint 2007 and the Thin .NET 3.5 Development Model, How to: Get up and running with .NET 3.5 in your SharePoint environment, and Enabling .NET 3.5 in SharePoint 2007 Sites, the Lazy Way.  As well as the "Silverlight (.NET 3.5) Config Feature" (and maybe even the "Ajax.Config Feature") in the SharePoint 2007 Features CodePlex Project.  It seems that all of these options do some fairly drastic changes to the web.config and may not be acceptable to potential customers.

What are the opinions out there on this?  What about if I want to use the AJAX Control Toolkit (I've used this before in SharePoint, but it has been a while)?

Note that we probably could require SharePoint SP2 if that helps, but I don't think it does.

Note also that Silverlight is not a requirement for the SharePoint web parts, but allowing for it might be nice.

‑‑‑‑‑

參考解法

方法 1:

Your first point could be solved by a custom wrapper to the SharePoint web services, presenting the API that you want to present, rather than the generic web service.

Your second point, AJAX enabled pages and web parts, is already possible ‑ how to enable AJAX in SharePoint.

方法 2:

.NET 3.5 Is supported in SharePoint (as of SP1 I believe), However you will not be able to get away from making web.config changes and installing .NET 3.5 on the servers ‑ it will likely only be there if there are already AJAX web parts in use.

Aside from that what you are looking at is largely independent of SharePoint ‑ If you can build something as an aspx page or asmx web service you should be able to deploy it to a SharePoint site.

If you want to avoid 3.5 installation issues altogether you should be able to build something totally separate ‑ jQuery for the web parts (no server side components needed) and for getting data out of sharepoint build something that translates calls to the standard web services into a friendlier interface.

(by Kirk Liemohnuser32826Tom Clarkson)

參考文件

  1. What are the supportable options for delivering ASP.Net 3.5 capability to SharePoint 2007? (CC BY‑SA 3.0/4.0)

#asp.net-3.5 #sharepoint #wcf






相關問題

將現有表中的數據行添加到新表 (Adding a datarow from an existing table to a new table)

ASP.NET - 加載具有重 OO 結構的網格數據 (ASP.NET - loading grid data with heavy OO structure)

使用動態數據時,為什麼我的視圖狀態在回發之間增長? (Why is my viewstate growing between postbacks when using dynamic data?)

瀏覽器緩存問題 (problem with browser cache)

如何在創建新線程的同時停止運行線程並恢復同一個線程? (how to stop running thread and resume the same thread beside create new thread?)

如何在sql server中創建一個計劃進程 (how to create a scheduled process in sql server)

向 SharePoint 2007 提供 ASP.Net 3.5 功能的可支持選項有哪些? (What are the supportable options for delivering ASP.Net 3.5 capability to SharePoint 2007?)

具有“插件”能力的 ASP.NET 內網應用程序 (ASP.NET intranet application with "plug-in" ability)

用於 ASP.NET Web 應用程序的 DevExpress 與 Telerik 網格 (DevExpress vs. Telerik grids for ASP.NET web applications)

如何在本地主機和服務器上獲取 URL 路徑? (how to get URL path on local host and on server?)

將 HttpModule 添加到 web.config 時未加載 ASP.NET CSS 文件 (ASP.NET CSS file not loaded when adding HttpModule to web.config)

如何在 Silverlight 2.0 中獲取當前用戶名 (how can i get current user name in Silverlight 2.0)







留言討論