- SharePoint 2019 Public Preview trial Enterprise product key: M692G-8N2JP-GG8B2-2W2P7-YY7J6
- SharePoint 2019 Public Preview Project Server trial license key: R9946-QXNHR-62JPQ-3H3QC-TMWJT
- SharePoint 2016 RTM: NQGJR-63HC8-XCRQH-MYVCH-3J3QR
- SharePoint 2013: NQTMW-K63MQ-39G6H-B2CH9-FRDWJ
- SharePoint 2013 Foundation: это бесплатная редакция SharePoint, для неё ключи не нужны
- SharePoint 2010 Standard: PTTCF-PCY26-D9V8F-8JF8B-XH8JP
- SharePoint 2010 Enterprise: VK7BD-VBKWR-6FHD9-Q3HM9-6PKMX
keep track and sharing on my sharepoint knowledge :) nice to meet you all
which country user step here?
Tag Cloud
Thursday, November 22, 2018
Trial Product keys for Microsoft SharePoint
Wednesday, March 23, 2016
Why Normally HNSC is using the port 80 with blank host header setting for web application ?
Tuesday, March 22, 2016
Why cannot user SharePoint Farm Account for application pool ?
with the following script then we can get the password then just understand using the SharePoint Farm Service Account for application is very risky for the security leaking.
Monday, December 21, 2015
SharePoint Incoming email basic checking
- To confirm is the SharePoint timer service problem or other issues, i have tested to send the email to other document library with email incoming enable. Is working , so we narrow down is not the SharePoint timer service issues.
- secondly need to check and see the email have send out from email server to our server or not , this can go to each web front end sever drive D:\inetpub\mailroot\Drop , you will see some item there. You can use notepad to open the xxx.eml item then you will see the sender from and to also other email detail . then this is confirm not email server issues.
- disable the incoming email and the document library then wait for few minute and enable it back.
Wednesday, December 16, 2015
Host Named Site Collections (HNSC)
Example path-based site collections :
Team A has a site collection http://contoso.com/sites/teamA
Team B has a site collection http://contoso.com/sites/teamB
Host named site collections :
http://TeamA.contoso.com
http://TeamB.contoso.com
Use host headers and host-named site collections
Important: |
|---|
| If an existing web application has a host header binding set, IIS will not return pages from the host-named site collection until you remove the binding from IIS. For more information, see Update a Web application URL and IIS bindings (Office SharePoint Server 2007). |
Mix host-named site collections and path-based site collections in the same web application
Sunday, December 6, 2015
Excel 2013 - Getting challenged for username and password
Background story :
We are using SharePoint 2010 and have several Excel spreadsheets that have data connections in them that use a SharePoint list to refresh data (not using excel services). The Excel spreadsheets are stored in a SharePoint document library and the site is a trusted location. All of our users have at least read access to the library as well as the SharePoint lists where the data is stored. Some of the lists are coming from a site that is in a different site collection than where the Excel spreadsheet is stored.
Our problem is this: Our users that are running Excel 2010 can open and refresh the data just fine. Our users running Excel 2013 are constantly challenged for user name and password (it does not accept it when it is entered) and the data does not refresh. The error message is "A connection to the SharePoint site cannot be established. To synchronize or refresh your table, you must be able to connect to the SharePoint site". Then it tells you which data range failed to refresh. When you click OK, it goes on to the next connection that it cannot connect to and repeats the process until you have gone through all of the connections.
No permissions have been changed and these users could access the spreadsheet before being upgraded to Office 2013. They are using Windows 7, Service Pack 1. I am the farm administrator and am able to open the spreadsheet in Excel 2013. I've tried increasing the user's permissions but it still won't open for them.
Solution :
Grant the permission to user/group to the SitePages Document Library
URL Discussion :
https://social.technet.microsoft.com/Forums/en-US/23c7f5ed-0041-451e-834f-0652c87af67d/sharepoint-2010-and-excel-2013-getting-challenged-for-username-and-password?forum=sharepointgeneralprevious&prof=required
Thursday, September 24, 2015
Better explanation than Technet about Export-SPWeb
this site look like not so helpful for me to export the list ...
i prefer this more detail site explanation :
http://blog.blksthl.com/2013/09/05/export-a-document-library-using-export-spweb-and-itemurl/
===========================================================================================
SharePoint 2010 | SharePoint 2013
Export-SPWeb [-Identity]
Export-SPWeb http://site –Path "c:\temp\site export.cmp" -ItemURL "/subsite/documents"
site export.cmp' in the ‘C:\temp’ directory.Friday, August 14, 2015
PowerShell script to list down all the site collection owner at web app level
=======================================================================
$siteUrl = Read-Host "Enter Site URL"
$rootSite = New-Object Microsoft.SharePoint.SPSite($siteUrl)
$spWebApp = $rootSite.WebApplication
foreach($site in $spWebApp.Sites)
{
foreach($siteAdmin in $site.RootWeb.SiteAdministrators)
{
Write-Host "$($siteAdmin.ParentWeb.Url) - $($siteAdmin.DisplayName)"
}
$site.Dispose()
}
========================================================================
Monday, August 3, 2015
Can't activate feature because of an existing column in a child site
- Manage Content and Structure shortcut not show at Site Actions
- Need activate feature
- SharePoint Server Publishing Infrastructure
- SharePoint Server Publishing
- Activate publishing feature but fail
Error message :
When activating the publishing feature :
Enable-SPFeature : The field with Id {51d39414-03dc-4bd0-b777-d3e20cb350f7} defined in feature {aebc918d-b20f-4a11-a1db-9ed84d79c87e} was found in the current site collection or in a subsite.
Resolution : From different source
http://sharepoint.stackexchange.com/questions/31597/cant-activate-feature-because-of-an-existing-column-in-a-child-site
http://sharepoint.stackexchange.com/questions/27196/activating-ootb-features-fails
Summary of resolution :
Run the script to found out which sub site to delete :
It seems like your problem is that a site column with ID is already exist at root or sub sites. This site is created typically by SharePoint publishing infrastructure and it corresponds to PublishingStartDate site column. This is (typically) installed by a hidden FEATURE when publishing feature is activated.
Use following script to find the webs in which it exists:
$url = Read-Host -Prompt "Provide Url for the web";
$fieldID = "51d39414-03dc-4bd0-b777-d3e20cb350f7"
$site = Get-SPSite $url
foreach ($web in $site.AllWebs)
{
foreach ($field in $web.Fields)
{
if ($field.Id -eq $fieldID)
{
$msg = [String]::Format("{0} contains the field.", $web.Url);
Write-Host $msg
}
}
}
2. Run the Poweshell script :
$urlSite = "http://server/sitecollection"
$urlSubWeb = "http://server/sitecollection/subweb" #sub web identify by above step
$tempPath = "d:\temp"
$featId = "f6924d36-2fa8-4f0b-b16d-06b7250180fa" # Publishing feature
# Backup the site collection in case something goes wrong
Backup-SPSite -Identity $urlSite -Path "$tempPath\sitecoll.bak"
Export-SPWeb -Identity $urlSubWeb -Path "$tempPath\subweb.cmp" -IncludeUserSecurity -IncludeVersions All
Remove-SPWeb -$url SubWeb
Enable-SPFeature -Identity $featId -Url $urlSite
after enable the Feature still unable to resolve the issues: Run below command
Manually deactivate the both feature
Run Below command :
stsadm -o activatefeature -name PublishingSite -url $url -force
stsadm -o activatefeature -name PublishingWeb -url $url -force
stsadm -o activatefeature -name PublishingResources -url $url -force
Lastly manually activate the feature and test on it.
#final step restore the sub site
New-SPWeb -Url $urlSubWeb -Language 1033
Import-SPWeb -Identity $urlSubWeb -Path "$tempPath\subweb.cmp" -IncludeUserSecurity
Tuesday, July 28, 2015
Migration non standard workflow at SharePoint2010
Backup Restore : For Site Collection
Export Import : For Site collection or sub site or list or document library
Backup Restore : Workflow is migrated , in progress workflow is continue working :D
Export Import : Workflow not migrated
here you go for more detail:
Friday, November 18, 2011
Client Object Model - retrieve document library permission
public void CheckPermission(string siteUrl, string ListName)
{
ClientContext clientContext = new ClientContext(siteUrl);
List curList = clientContext.Web.Lists.GetByTitle(ListName);
clientContext.Load(curList.RoleAssignments);
clientContext.ExecuteQuery();
foreach(RoleAssignment ra in curList.RoleAssignments)
{
var p = ra.Member;
clientContext.Load(p);
var q = ra.RoleDefinitionBindings;
clientContext.Load(q);
clientContext.ExecuteQuery();
foreach (RoleDefinition subq in q)
{
Console.WriteLine(p.Title+"=="+subq.Name);
}
}
}
Wednesday, October 12, 2011
client code : check all the Sharepoint 2010 group Owner
static void Main(string[] args)
{
String sURL = "http://xxxxx/sites/yyyyy";
ClientContext clientContext = new ClientContext( sURL);
GroupCollection collGroup = clientContext.Web.SiteGroups;
clientContext.Load(collGroup);
clientContext.Load(collGroup);
//groups => groups.Include(
// group => group.Owner));
clientContext.ExecuteQuery();
foreach (Group oGroup in collGroup)
{
Console.WriteLine(oGroup.Title +"== "+ oGroup.OwnerTitle);
}
Console.ReadLine();
}
Thursday, October 6, 2011
Retrieve all document library View method with console c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Client;
using SP = Microsoft.SharePoint.Client;
namespace ExtractView
{
class SPView
{
public void allview(string siteUrl , string doclib )
{
ClientContext clientContext = new ClientContext(siteUrl);
Web site = clientContext.Web;
List targetList = site.Lists.GetByTitle(doclib);
ViewCollection collView = targetList.Views;
ViewCreationInformation viewInfo = new ViewCreationInformation();
clientContext.Load(collView);
clientContext.ExecuteQuery();
Console.WriteLine("this is for document lib" + doclib);
foreach (View oneView in collView)
Console.WriteLine(oneView.Title);
}
public void alldoc(string siteUrl)
{
ClientContext clientContext = new ClientContext(siteUrl);
ListCollection collList = clientContext.Web.Lists;
clientContext.Load(collList);
clientContext.ExecuteQuery();
foreach (SP.List olist in clientContext.Web.Lists)
{
allview(siteUrl, olist.Title);
}
}
}
}
=============================================================================================================
to call this method please create static void main to call it.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Client;
namespace ExtractView
{
class Program
{
static void Main(string[] args)
{
SPView listview = new SPView();
listview.alldoc(args[0]);
}
}
}
=================================================================================================================
run the xxx.exe parameter(URL)
Wednesday, September 14, 2011
Code to retrieve all the list item detail
using System;
using System.Linq;
using Microsoft.SharePoint.Client;
using SP = Microsoft.SharePoint.Client;
namespace Microsoft.SDK.SharePointServices.Samples
{
class RetrieveListItemsInclude
{
static void Main()
{
string siteUrl = "http://MyServer/sites/MySiteCollection";
ClientContext clientContext = new ClientContext(siteUrl);
SP.List oList = clientContext.Web.Lists.GetByTitle("Announcements");
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<View><RowLimit>100</RowLimit></View>";
ListItemCollection collListItem = oList.GetItems(camlQuery);
clientContext.Load(collListItem,
items => items.Include(
item => item.Id,
item => item.DisplayName,
item => item.HasUniqueRoleAssignments));
clientContext.ExecuteQuery();
foreach (ListItem oListItem in collListItem)
{
Console.WriteLine("ID: {0} \nDisplay name: {1} \nUnique role assignments: {2}",
oListItem.Id, oListItem.DisplayName, oListItem.HasUniqueRoleAssignments);
}Console.ReadLine();
}
}
}
source code from here
Monday, September 5, 2011
my first client object testing with the windows form :)
please remember to add the Microsoft.Sharepoint.Client and Microsoft.Sharepoint.Client.Runtime to References.
*my small step over the cilent object model over sp2010
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.SharePoint.Client;
namespace SP2010
{
public partial class Form1 : System.Windows.Forms.Form
{
public Form1()
{
InitializeComponent(); //not sure this is for what
}
public void LoadData()
{
string webUrl = "http://xxxxx/sites/content/support"; //replace this with your site URL
ClientContext context = new ClientContext(webUrl);
Web web = context.Web;
context.Load(web);
context.ExecuteQuery();
this.label1.Text = web.Title + " " + web.Description;
this.label2.Text = webUrl;
}
private void button1_Click(object sender, EventArgs e)
{
LoadData();
}
}
}
Thursday, August 25, 2011
Metadata navigation > new SharePoint Server 2010 feature that enables users to dynamically filter lists
Metadata navigation is a new SharePoint Server 2010 feature that enables users to dynamically filter lists so they can find what they need. Metadata navigation enables users to select filter options, and it handles performing the query in the most efficient manner possible. Metadata navigation consists of two parts. One part is a set of navigation controls that let a user filter a list that has navigation hierarchies and key filters. The second part is a mechanism for rearranging and retrying queries.
Metadata navigation has retry and fallback logic that attempts to perform queries efficiently by using indexes. If a query will return too many results, the query falls back and returns a subset of the results for better performance. If no appropriate query can be made, fallback occurs and the filters are performed on a limited set of results. Metadata navigation automatically creates indexes. Together retry, fallback, and index management make metadata navigation a very important part of working effectively with large lists. There are two kinds of filtering mechanisms: navigation hierarchies and key filters.
Navigation hierarchies use a tree control to navigate hierarchies of folders, content types, choice fields, or managed metadata term sets. This enables users to use a tree control to pivot on a metadata hierarchy, much as how they navigate folders. When users select an item in a hierarchy for a managed metadata column, all items that match the specified term or any of its descendant child terms are displayed. This is called descendant inclusion, and it can be used on fields that are tied to a managed metadata term set. Users can select the item again to filter on only that particular term and not include the descendant child terms. All metadata navigation queries are recursive and display results from all the folders in the list.
Key filters can be configured to perform additional filtering of results within the hierarchy. For example, you can add the Modified By column as a key filter and then type a user name to obtain results where Modified By matches the entered user. For more information, see Metadata navigation and filtering (http://go.microsoft.com/fwlink/?LinkId=219154). The following figure shows an example of metadata navigation hierarchies and key filters.
from : http://technet.microsoft.com/en-us/library/cc262813.aspx
Friday, August 5, 2011
First step at sharepoint2010 Client object model
information from : http://msdn.microsoft.com/en-us/library/ee857094(office.14).aspx#Y4347
my first small step
To build the application
-
Start Microsoft Visual Studio 2010.
-
On the File menu, point to New, and then click Project.
-
In the New Project dialog box, in the Recent Template pane, expand Visual C#, and then click Windows.
-
To the right of the Recent Template pane, click Console Application.
-
By default, Visual Studio creates a project that targets .NET Framework 4, but you must target .NET Framework 3.5. From the list at the upper part of the File Open dialog box, select .NET Framework 3.5.
-
In the Name box, type the name that you want to use for your project, such as FirstClientApiApplication.
-
In the Location box, type the location where you want to place the project.
Figure 2. Creating a solution in the New Project dialog box
-
Click OK to create the solution.
To add references to the Microsoft.SharePoint.Client assembly and Microsoft.SharePoint.Client.Runtime assembly
-
The classes that you use in a client object model application are located in Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll. As I mentioned, before you add the references, you must copy those assemblies from the server that runs SharePoint Foundation to the client development computer.
-
On the Project menu, click Add Reference to open the Add Reference dialog box.
-
Select the Browse tab, navigate to the location where you put the Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll. Select both DLLs, and then click OK as shown in Figure 3.
Figure 3. Adding references to the assemblies
To add the sample code to the solution
-
In Visual Studio, replace the contents of the Program.cs source file with the following code.
using System;
using Microsoft.SharePoint.Client;
class DisplayWebTitle
{
static void Main()
{
ClientContext clientContext = new ClientContext("http://intranet.contoso.com");
Web site = clientContext.Web;
clientContext.Load(site);
clientContext.ExecuteQuery();
Console.WriteLine("Title: {0}", site.Title);
}
} -
Replace the URL in the ClientContext constructor with the URL to the SharePoint site. Build and run the solution. The example prints the title of the site.
Just as with the SharePoint Foundation server object model, you create a context for the SharePoint site that you want to access. You can then retrieve a reference to the site from the context.
The call to the ExecuteQuery method causes the SharePoint Foundation 2010 managed client object model to send the request to the server. There is no network traffic until the application calls the ExecuteQuerymethod.
An important point to make about this example is that the call to the Load method does not actually load anything. Instead, it informs the client object model that when the application calls the ExecuteQuery method, you want to load the property values of the siteCollection object.
This is the model that all interactions with the server take:
- You inform the SharePoint Foundation 2010 managed client object model about the operations that you want to take. This includes accessing the values of properties of objects (for example, objects of the Listclass, ListItem class, and Web class), CAML queries that you want to run, and objects such as ListItem objects that you want to insert, update or delete.
- Then you call the ExecuteQuery method. No network traffic occurs until you call the ExecuteQuery method. Until that point, your application is only registering its requests.
As you can see from this example, at its simplest, you first set up a query, and then you execute the queries. This causes the client object model to send traffic to the server and receive a response from it. This next section reviews the model in detail and shows why it is designed the way it is, and finally, how you can build applications by using the model.
Wednesday, August 3, 2011
The days don't have access to SharePoint server
After change the Role from System Engineer to Web design advisor (Content Management ) , no more privilege to log in server to run STSADM and so on ... :(
ha ha, sometime even site collection admin privilege also don't have ....ask me how to do make mine work automated? Look like is the time to start on Using the SharePoint 2010 Managed Client Object Model
Blog about this area:
http://msdn.microsoft.com/en-us/library/ee857094(office.14).aspx
is time to start learn how to edit coding!! ha ha :P this is good start from me to start involve in sharepoint developer area.
Dream target : create migration tools...ha ha..
Monday, January 3, 2011
Installing Microsoft SQL Server 2008 Reporting Services Add-On On a MOSS 2007 server
How to publish the SSRS to MOSS 2007 ? will it impact the MOSS 2007 Database? So we get the advice from some expert as below :
By default, it will be pretty safe for us to integrate reporting service with MOSS. It will add some application pages to MOSS instance, kind of like add a feature to the farm. As I said in the phone, the impact it involve is it will install some application pages to the SharePoint site and report file (.RDL) will be saved in ContentDBs (The version of the backend database is not a matter). However, we only support part of combination of the version of reporting service, reporting service add-in and SharePoint.
| Report Server | Add-in | SharePoint | Supported |
| SQL Server 2008 R2 | SQL Server 2008 R2 | SharePoint 2010 Products | Y |
| SQL Server 2008 R2 | SQL Server 2008 SP2 (*) | SharePoint 2007 Products | Y |
| SQL Server 2008 SP1 Cumulative Update #8 | SQL Server 2008 R2 | SharePoint 2010 Products | Y |
| SQL Server 2008 | SQL Server 2008 | SharePoint 2010 Products | N |
| SQL Server 2008 | SQL Server 2008 | SharePoint 2007 Products | Y |
| SQL Server 2005 SP2 | SQL Server 2005 | SharePoint 2007 Products | Y |
(*) It actually has been released and you could download it through http://www.microsoft.com/downloads/en/details.aspx?FamilyID=35c3a13f-4b5e-4d4a-86e4-07ee307b9638
As you could see, if your reporting service is SQL Server 2008 R2 and your SharePoint is 2007, there is no combination supported by us. More information about reporting service integration overview, you could refer to the following document.
Overview of Reporting Services and SharePoint Technology Integration
http://msdn.microsoft.com/en-us/library/bb326358(SQL.105).aspx
After installing Reporting Services Add-in, you could see the following feature in Central Admin in ‘Application Management’ page.
With these links you could configure where the report server is, what kind of authentication mode you want to use, etc.
You could also see the reporting in Site collection features page.
Thursday, September 23, 2010
Tech insight 2010 Penang
22-23 Sept 2010 at USM penang, so far for the SharePoint related session only have 3 but this also help to increase some sharepoint 2010 knowledge.Today have one session is sharing on the SharePoint list Improvement , is look great a lot limitation user cannot get now already available.
Example,
- unique column ( something like primary key for the list , cannot duplicate)
- validate the columns ( using excel formula)
- Lookup Field Relationship Behavior – behavior that can be enforced includes; Project multiple fields into a child list; Joins between lists, Relational integrity between child and parent lists – this brings up new possible security issues & considerations
- List Relationships & Data Integrity – one-to-many allows you to trigger cascade delete and restrict delete
- more detail you can get from here
ok let me finish the tomorrow session then will share more :)
Important: