While I was installing SharePoint 2010, I found the next link which helped me out :
http://www.codeproject.com/KB/sharepoint/SharePoint_Server_2010.aspx
Have fun!
9bb67312-1718-4fd4-bd2a-a3278c508394|0|.0
In my new update for the WSP Listener I need to save a file from a document library to disk. This can be done by the following code:
// item is an SPListItem
SPFile myFile = item.File;
DestinationFile = Path.Combine(@"c:\temp", myFile.Name);
if (File.Exists(DestinationFile))
{
// Remove the old file
File.Delete(DestinationFile);
}
// Open the binary data
byte[] data = myFile.OpenBinary();
using (FileStream stream = new FileStream(DestinationFile, FileMode.CreateNew))
{
// Save the file
BinaryWriter writer = new BinaryWriter(stream);
writer.Write(data, 0, (int)myFile.Length);
writer.Close();
stream.Close();
}
Have fun!
821426db-4ac8-40d1-95c6-2c6d24daf1a7|0|.0
Finally my first codeplex project is finished: http://wsplistener.codeplex.com/
Super easy copy paste installation of WSP files on different servers in your OTAP environments.
The WSP listener is a windows service application which waits for new config and WSP files in a specific folder. If a new config and WSP file are added, the WSP Listener will install the new SharePoint solution on the server based on values in de config file. The config file is a configuration file (for example MySharePointSolution.wsp.config) which defines the settings for the installation of the WSP solution file.
All feedback is welcome, hope this tool helps improvethe efficiency of your deployment
a0a72e7f-586a-42b4-a31e-2bfe5d10d123|1|5.0
So I had this problem with updating site columns in existing site collections. I use a feature with element XML to install my custom site columns in the site collections. The problem is when I try to update some property of an existing site column, for example set required to TRUE, the update cannot be done by reinstalling the changed site column feature. After I reinstalled my updated site columns feature, no changes are comitted in the site columns of my site collection.
I tried ststadm -o deactivatefeature, then stsadm-o installfeature -force, ststadm -o activatefeature with some IISRESET's in between
So what is this hidden solution for this problem? Well the Field nodes in the element file has this strange property DisplaceOnUpgrade, set this to TRUE and the columns will be updated. The explanation from Microsoft:
DisplaceOnUpgrade: Optional Boolean. If a field definition already exists for the field, TRUE to force updates to field properties with the values that are specified in this field definition. Check the link for more info.
Hope this helps you!
0a791749-b42a-4da9-95f1-492d98638944|0|.0