Các bài viết cũ

upload file lớn trong wss 3.0 và sharepoint 2007, sharepoint 2001


Lỗi “request timed out” khi bạn cố gắng để tải lên một tập tin lớn trong Document list trên  Windows SharePoint Services 3.0  và sharepoint 2007, sharepoint 2001 Read the rest of this entry

Visual Studio Extentsions 1.3 error “The content type text/html; charset=utf-8 of the response message…”


 

khi lập trình web Part với VS2008 và VSeWSSv13 trên WSS3.0 hoặc MOSS 2007. khi Package solution mà gặp lỗi như bên dưới.

Error 24 The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>IIS 7.0 Detailed Error - 500.0 - Internal Server Error</title> 
<style type="text/css"> 
<!-- 
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} 
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} 
.config_source code{font-size:.8em;color:#000000;} 
pre{margin:0;font-size:1.4em;word-wrap:break-word;} 
ul,ol{margin:10px 0 10px 40px;} 
ul.first,ol.first{margin-top:5px;} 
fieldset{padding:0 15px 10px 15px;} 
.summary-container fieldset{padding-bottom:5px;margin-top:4px;} 
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} 
legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px; 
 border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696; 
 border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;f'.  0 0

chúng ta xử lý như sau:

vào control panel / Programs and Features/ Turn Windows Features On and Off

ở mục .NET Framework 3.5.1 check vào Windows Communication Foundation HTTP Activation. rồi OK để cài đặt.

sau đó quay lại VS 2008 và Package solution sẽ hết lỗi

làm việc nhanh hơn với People Picker


People Picker là một điều khiển mà các bạn thấy khi gán dữ liệu cho columns có kiểu People and Group.

mặc định trong MOSS 2007WSS 3.0 không hỗ trợ auto complete khi add người dùng vào, nhưng có một các để bạn có thể add nhanh một người dùng mà không nhớ rõ tên. các bạn làm theo các bước sau:

1/ ví dụ mình cần add một user mà mình chỉ nhớ tên là Duy, mình gõ vào tên duy, sau đó gõ phím Enter

bạn sẽ thấy thông báo ko tìm thấy thông báo “No exact match was found.”

2/ bạn click chuột vào chữ duy thì nó sẽ hiện ra danh sách các user có chữ duy và bạn chọn người muốn add

A 32-bit version of SharePoint Server is not installed. Please install a 32-bit version of SharePoint Server – Workflow in VS


Microsoft đã biết điều này, nhưng họ vẫn chưa cập nhật lỗi này.

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b2c0b628-5cab-48c1-8cae-c34c1ccbdc0a&DisplayLang=en

và giải pháp cho vấn đề này là:

bạn cần cài WSPBuilder extension for Visual Studio installed (www.codeplex.com/wspbuilder)

sau khi cài xong mở visual studio 2008

1- File > New > Project chọn WSPBuilder và sau đó chọn WSPBuilder Project with Workflow
Click OK
2- trong Solution Explorer click phải lên project chọn> Add > Sequential Workflow

3- cửa sổ mới mở ra, chọn Workflow categorie và chọn Sequential Workflow.

lỗi Field type CustomTextFieldControlField is not installed properly. Go to the list settings page to delete this field.


khi bạn tạo một Custom Control Field. vài khi tạo một column bằng Custom Control Field vừa tạo thì báo lỗi “Field type CustomTextFieldControlField is not installed properly. Go to the list settings page to delete this field.”

trong quá trình lập trình cho WSS 3.0 mình đã phát hiện ra một cách để fix lỗi này.
sau khi bạn dã deloy projec của mình. bạn làm theo cách sau

B1. vào thư mục C:\Windows\assembly. thì DLL của Custom Control Field vừa tạo chú ý các thông số.
– Version
– Culture
– PublicKeyToken

B2. vào thư mục C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML
mở file có dạng fldtypes_*.xml, tìm đến dòng

<Field Name="FieldTypeClass">CustomTextFeild.CustomTextFieldControlField</Field>

sau đó thay thế dòng này bằng

 <Field Name="FieldTypeClass">CustomTextFeild.CustomTextFieldControlField,CustomTextFeild, Version=?, Culture=?, PublicKeyToken=? </Field>

?: là các giá trị có ở bước 1

[ DevExpress & sharepoint 2007/wss 3.0 ] thay thế Quick Launch menu mặc định của sharepoint bằng ASPxNavBar


 

trong bài này mình xin chia sẽ lại kinh việc kết hợp DevExpress và sharepoint, bắt đầu bằng việc thay thế Quick Launch menu của sharepoint bằng ASPxNavBar

– môi trường thực hiện: wss 3.0
– DevExpress v10.1

Giải pháp

kết quả sau khi thực hiện:

các bước thực hiện

1.
đăng ký các dll của DevExpress, thông thường sau khi cài xong thì đã được đăng ký vào GAC

2.

thêm các SafeControl vào file Web.Config

<SafeControl Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxNavBar" TypeName="*" Safe="True" />
      <SafeControl Assembly="DevExpress.Data.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Data" TypeName="*" Safe="True" />

3.

mở sharepoint designer và vào trang masterpage và thêm dòng sau vào trên cùng

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxNavBar" TagPrefix="dxnb" %>

4. đăng ký 1 HttpHandler Module

mở lại file Web.Config

và thêm các dòng sau vào. chú ý các dấu (…) nghĩa là chỗ đã có các đoạn code khác. sau khi làm xong save file lại

<system.web>
...
    <httpHandlers>
...
        <add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.1,
        Version=10.1.0.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET"
        path="DX.ashx" validate="false" />
...
    </httpHandlers>
    <httpModules>
...
        <add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.1, Version=10.1.0.0,
        Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule"/>
 ...
 </httpModules>
....
</system.web>

thay đổi Quick Launch của masterpage

1. ở trang default.master đang mở, tìm ContentPlaceHolder l với ID là PlaceHolderLeftNavBar.

2. trong PlaceHolderLeftNavBar , tìm AspMenu control với ID là QuickLaunchMenu.

3. xóa đoạn code đó đi hoặc phủ nó lại

<!--
					<SharePoint:AspMenu
					id="QuickLaunchMenu"
					DataSourceId="QuickLaunchSiteMap"
					runat="server"
					Orientation="Vertical"
					StaticDisplayLevels="2"
					ItemWrap="true"
					MaximumDynamicDisplayLevels="0"
					StaticSubMenuIndent="0"
					SkipLinkText=""
					>
					<LevelMenuItemStyles>
						<asp:MenuItemStyle CssClass="ms-navheader"/>
						<asp:MenuItemStyle CssClass="ms-navitem"/>
					</LevelMenuItemStyles>
					<LevelSubMenuStyles>
						<asp:SubMenuStyle CssClass="ms-navSubMenu1"/>
						<asp:SubMenuStyle CssClass="ms-navSubMenu2"/>
					</LevelSubMenuStyles>
					<LevelSelectedStyles>
						<asp:MenuItemStyle CssClass="ms-selectednavheader"/>
						<asp:MenuItemStyle CssClass="ms-selectednav"/>
					</LevelSelectedStyles>
				</SharePoint:AspMenu>
				-->

và thay thết bằng

<dxnb:ASPxNavBar id="QuickLaunchNavBar" runat="server" DataSourceID="QuickLaunchSiteMap">
</dxnb:ASPxNavBar>

4. tìm SPNavigationManager control với ID là QuickLaunchNavigationManager, và sửa thuộc tính QuickLaunchControlId là ID của ASPxNavBar control.

<Sharepoint:SPNavigationManager
id=”QuickLaunchNavigationManager”
runat=”server”
QuickLaunchControlId=”QuickLaunchNavBar”
ContainedControl=”QuickLaunch”
EnableViewState=”false”>

dịch từ: [url]http://www.devexpress.com/Support/Center/KB/p/K18112.aspx

—–
bài kế tiếp: chỉnh sửa lại giao diện theo skin của DevExpres

Cách hiểu Sharepoint CAML query – Understanding Sharepoint CAML query


Sharepoint CAML query khó để hiểu và học. bài viết này sẽ cung cấp cho các bạn một cách để hiểu về Sharepoint CAML query Read the rest of this entry

Gói Ngôn ngữ Tiếng Việt cho SharePoint Server 2007, Windows SharePoint Services 3.0 ( wss 3.0 )


Tổng quan
Các gói ngôn ngữ cho phép tạo các trang và bộ sưu tập trang SharePoint bằng nhiều ngôn ngữ mà không yêu cầu các cài đặt riêng của SharePoint Server 2007. Bạn có thể cài đặt nhiều gói ngôn ngữ trên cùng một máy chủ. Ứng dụng của Gói Ngôn ngữ sẽ không thay đổi ngôn ngữ của SKU sản phẩm máy chủ Office đã cài đặt hoặc ngôn ngữ của các tính năng quản trị. Ghi chú:
* Bạn không cần tải xuống gói ngôn ngữ cho ngôn ngữ bạn đã cài đặt. Những gói ngôn ngữ này dùng để hỗ trợ tạo các ngôn ngữ bổ sung.
* Các Gói ngôn ngữ cho SharePoint Server 2007 sẵn có tại Trung tâm Tải xuống để dùng thử. Nếu bạn sử dụng các gói ngôn ngữ với bản sao được cấp phép đầy đủ của SharePoint Server 2007, hãy đảm bảo rằng bạn sử dụng trong phạm vi các điều khoản của Thoả thuận Cấp phép Số lượng lớn của bạn do các hạn chế có thể được áp dụng — Tìm hiểu thêm về các chương trình Cấp phép Số lượng lớn của Microsoft.
# Bạn cần cài đặt Bản cập nhật Tích luỹ Tháng 6 năm 2009 trước khi cài đặt Gói Ngôn ngữnày. Hãy cài đặt các bản cập nhật sauchi tiết xem tại đây
http://www.microsoft.com/downloads/details.aspx?FamilyID=430dabac-146e-4c8b-9338-37569ad373d2&displaylang=vi

http://www.microsoft.com/downloads/details.aspx?FamilyID=36ee1bf0-652c-4e38-b247-f29b3eefa048&displaylang=vi