Ricardo Costa
Windows Live ID and MIIS Service Account
To the management agent work correctly with Windows Live the MIIS Service Account must be a member of the local administrators group. If...
Custom Action for Sharepoint Designer
I'm going to create a custom action for Sharepoint Designer that creates a discussion thread in a discussion list based on the current list...
Add a custom section to web.config
If you have created a custom section like this, and if you want to add it programmatically to web.config then you have to:
Use the...
How to upload a list template
public static SPFile UploadListTemplate(string siteUrl, string templatePath)
{
using (SPSite site = new SPSite(siteUrl))
{
SPDocumentLibrary templates = (SPDocumentLibrary)site.GetCatalog(SPListTemplateType.
ListTemplateCatalog);
System.IO.FileInfo fileInfo = new System.IO.FileInfo(templatePath);
byte bytes = System.IO.File.ReadAllBytes(fileInfo.FullName);
return templates.RootFolder.Files.Add(fileInfo.Name,...
How to upload a site template
public static SPFile UploadWebTemplate(string siteUrl, string templatePath)
{
using (SPSite site = new SPSite(siteUrl))
{
SPDocumentLibrary templates = (SPDocumentLibrary)site.GetCatalog(SPListTemplateType.WebTemplateCatalog);
System.IO.FileInfo fileInfo = new System.IO.FileInfo(templatePath);
byte bytes = System.IO.File.ReadAllBytes(fileInfo.FullName);
return templates.RootFolder.Files.Add(fileInfo.Name,...
How to create a custom section for an application config file
First we need to create a custom ConfigurationElement. This configuration element only has a value attribute.
public class MyConfigurationElement : ConfigurationElement
{
///...
How to create an item in a discussion list
Creating a discussion in discussion list is different from creating a simple list item. The code for creating a discussion item is:
using (SPSite site...
Built-In ContentType and Field Ids
Only today that I've found that the WSS object model has 2 classes that hold all the IDs of the built-in ContentTypes and Fields.
Instead...
ItemUpdating, AfterProperties and field names
I was checking for a field value change in a WSS V3 list with the help of event handlers with no success.
In the ItemUpdating...
How to add a group to a WSS v3 site
Get the group
SPGroup group = web.SiteGroups;
Create a role assignment
SPRoleAssignment newRoleAssignment = new SPRoleAssignment(group);
Add the role definition (Full Control, Read, Contribute, …) to the role...
![[FIX] BizTalk Server 2010, 2013, 2013 R2 & 2016 errors “Class not registered (WinMgmt)” or “Access denied”](https://i1.wp.com/blogit.create.pt/wp-content/uploads/2018/07/access-black-and-white-blur-270514.jpg?resize=218%2C150&ssl=1)













