Diễn đàn    ASP.NET & Sharepoint MOSS, WSS 2007    Một số lỗi thường gặp trong lập trình với Sharepoint 2010

Thành viênTrả lời
admin

Thích gái đẹp ...
54  bài
27-2-2017 23:9:29
Sandboxed Solution giới hạn quyền truy cập của toàn bộ solution, lập trình trong solution dạng sandboxed sẽ không đọc được file ở dạng vật lý, mà phải đọc file trong các folder ảo của sharepoint ( gọi là các virtual folder ).

Tùy vào nhu cầu mà người code sẽ chọn Sanboxed Solution hay Farm Solution, với Farm solution thì đó là giải pháp của hệ thống cũ (chạy trên MOSS hoặc WSS 2007) truy cập file vật lý thoải mái.

Chi tiết xem tại đây
https://msdn.microsoft.com/en-us/library/ff872402(v=office.14).aspx
---
http://coder.awas.vn
http://awas.vn
 
aspnet

Lập trình không biên giới
608  bài
1-3-2017 13:4:44
Lỗi tiếp theo :
value does not fall within the expected range.
Khi gọi hàm :
SPListItem.Update();


Nguyên nhân là do
query.ViewFieldsOnly = true;

Đầy đủ code :

SPQuery query = new SPQuery();

query.Query = "<Where><Eq><FieldRef Name='boxId'/>" +
"<Value Type='Text'>" + box_id + "</Value></Eq></Where>";
query.ViewFields = string.Concat(
"<FieldRef Name='boxId' />",
"<FieldRef Name='configXml' />");
query.ViewFieldsOnly = true;
SPListItemCollection collListItems = list.GetItems(query);

Rồi gọi collListItems[0].Update();

là lỗi lòi
---
Cây sẽ cho lộc và cây sẽ cho hoa ...
 
aspnet

Lập trình không biên giới
608  bài
17-3-2017 22:49:45
Hướng dẫn cài Sharepoint 2013 trên Windows server 2012 R2 DataCenter.

1. Cài Windows server 2012 R2 Data Center (cái này thì dễ rồi)
2. Cài sharepoint Pre-requisite

thường thì chỉ cần cài prerequisiteinstaller.exe là xong. Nhưng một số trường hợp phát sinh lỗi.



Ta phải làm bằng tay thôi.

https://gallery.technet.microsoft.com/office/DownloadInstall-SharePoint-e6df9eb8

Link này cho ta 3 file powershell giúp ta tự cài bằng tay :

1. Install-SP2013RolesFeatures.ps1
2. Download-SP2013PreReqFiles.ps1
3. Install-SP2013PreReqFiles.ps1

Nhớ cài two đúng tuần tự. Cái thứ 3 "Install-SP2013PreReqFiles.ps1" có thể sinh ra lỗi sau :




Nhiều người điên đầu với ông AppFabric này. Để giải quyết thì ta không nên bấm Instal cái file

WindowsServerAppFabricSetup_x64.exe trong pre-requisites
mà nên dùng câu lệnh sau trong CMD (nhớ run as administrator)

WindowsServerAppFabricSetup_x64.exe /i CacheClient,CachingService,CacheAdmin /gac

Xem tại đây :
https://social.technet.microsoft.com/Forums/office/en-US/d29e3a79-182d-4de7-8201-e459a2aba6f5/prerequisite-installation-problem-with-appfabric?forum=sharepointadmin

Xong, giờ ta có thể cài Sharepoint 2013 bình thường.
---
Cây sẽ cho lộc và cây sẽ cho hoa ...
 
aspnet

Lập trình không biên giới
608  bài
19-3-2017 16:24:51
Cài Web Server IIS và Application server thì nhớ các hình này.










Chi tiet day
http://sharepoint-tutorial.net/post/2012/07/16/install-sharepoint-2013-windows-server.aspx
 

Chủ đề gần đây :

Cùng loại :

Tên file Mô tả chi tiết Ngày
NWeb.zip (1) Module đơn giản Newsweb trên Dotnetnuke v10.x.x.x10/18/2025 8:08:11 AM
vspforum.zip (11) Ma nguon vspforum ngay xua4/18/2023 6:38:37 AM
pdfjs.rar (2) pdfjs 2017 : hiển thị tốt trên iphone 11, 12, 13 không lỗi, bản 2012 sẽ lỗi trên iphone6/21/2022 11:52:48 AM
pdfjs2.rar (2) Xem file pdf bằng viewer.hml cua pdfjs (thư viện chuẩn mozilla) 2012. https://mozilla.github.io/pdf.js/getting_started/#download có thể download bản prebuild tại đây6/21/2022 11:52:04 AM
runner.zip (0) using three.js, orbitcontrol to view an object move random on map. Di chuyển 1 đồ vật ngẫu nhiên trên bản đồ, sử dụng với demo nhân viên di chuyển trong văn phòng. Toàn js download về là chạy12/5/2019 5:55:14 PM
gmap.zip (1) google map + marker7/17/2019 2:25:05 PM
vinsmarthomeservice.zip (1) java post json to api, use AsyncTask, event listener7/9/2019 5:00:10 PM
fblogin.zip (0) Login facebook bang javascript SDK7/9/2019 9:16:37 AM
autocomplete-location.zip (2) autocomplete location geo from google place, html + js7/4/2019 4:37:55 PM
WebAPI.zip (8) api for android access db (v1.0.0)7/4/2019 9:14:17 AM