<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Jojo Koshy</title><subtitle type="html" /><id>http://blogs.msdn.com/b/jojok/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/b/jojok/atom.aspx" /><generator uri="http://telligent.com" version="5.6.50428.7875">Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><updated>2008-04-13T03:06:43Z</updated><entry><title>Object Reference exception on running Add-SPSiteSubscriptionProfileConfig </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2012/04/23/object-reference-exception-on-running-add-spsitesubscriptionprofileconfig.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2012/04/23/object-reference-exception-on-running-add-spsitesubscriptionprofileconfig.aspx</id><published>2012-04-23T09:13:00Z</published><updated>2012-04-23T09:13:00Z</updated><content type="html">&lt;p&gt;In case you see an "Object reference" exception on running Add-SPSiteSubscriptionProfileConfig&amp;nbsp;to configure UPA in a multi-tenant mode, there is a possibility that that the user context against which Add-SPSiteSubscriptionProfileConfig&amp;nbsp;is run does not have access over UPA Service Application. Make sure you give the account access on Profile Service Application by clicking on "Permissions" in the ribbon and grant access to the current user account running the PS script.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296430" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Error while running New-SPSite in Multi-tenancy mode </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2012/04/23/error-while-running-new-spsite-in-multi-tenancy-mode.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2012/04/23/error-while-running-new-spsite-in-multi-tenancy-mode.aspx</id><published>2012-04-23T09:09:00Z</published><updated>2012-04-23T09:09:00Z</updated><content type="html">&lt;p&gt;Ensure that the Subscription service is started on atleast one of the machines in the farm before you run New-SPSite in a multi-tenancy mode. In case its not started you might see the exception of Microsoft.SharePoint.SPEndpointAddressNotFoundException.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296429" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Exporting Variations</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2011/09/10/exporting-variations.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2011/09/10/exporting-variations.aspx</id><published>2011-09-10T01:41:40Z</published><updated>2011-09-10T01:41:40Z</updated><content type="html">&lt;p&gt;MOSS 2007 had an OOB capability of exporting a publishing page to a .cmp file to enable offline translations scenarios. In case your translation team does an offline translation of the WCM site, the exported .cmp contained the required xmls for translation and you could import the translated xmls back to the destination variation. This was done through the “Export Variation” – “Import Variation” option under Site content and Structure. &lt;/p&gt;  &lt;p&gt;From my initial analysis I did not find the same UI in SharePoint Server 2010 to export variations, however this can be achieved by using the following web service. &lt;/p&gt;  &lt;p&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webservices.publishingservice.exportobjects%28v=office.14%29.aspx" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webservices.publishingservice.exportobjects%28v=office.14%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webservices.publishingservice.exportobjects%28v=office.14%29.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Code extract from MSDN.&lt;/p&gt;  &lt;div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 143.98%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; height: 227px; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper"&gt;   &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;     &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #0000ff"&gt;using&lt;/span&gt; System;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #0000ff"&gt;using&lt;/span&gt; System.IO;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #0000ff"&gt;using&lt;/span&gt; System.Collections.Generic;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #0000ff"&gt;using&lt;/span&gt; System.Text;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #0000ff"&gt;using&lt;/span&gt; System.Net;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #008000"&gt;//Replace macro with &amp;quot;(your assembly name).(name of your Web reference)&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #0000ff"&gt;using&lt;/span&gt; PublishingServiceClient = Microsoft.SDK.SharePoint.Server.Samples.PublishingServiceClient;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&amp;#160;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #0000ff"&gt;namespace&lt;/span&gt; Microsoft.SDK.SharePoint.Server.Samples&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;{&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;    &lt;span style="color: #0000ff"&gt;class&lt;/span&gt; Program&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;    {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;        &lt;span style="color: #0000ff"&gt;static&lt;/span&gt; &lt;span style="color: #0000ff"&gt;void&lt;/span&gt; Main(&lt;span style="color: #0000ff"&gt;string&lt;/span&gt;[] args)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;        {        &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #008000"&gt;// Create a Web reference (named &amp;quot;PublishingServiceClient&amp;quot; here)which generates a SOAP Client class of the same name.&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #008000"&gt;// URL to the Web service is given by &amp;quot;http://servername/site/_vti_bin/PublishingService.asmx&amp;quot; &lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #008000"&gt;// Access the Web service methods using objects of this class.&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            PublishingServiceClient.PublishingService publishingServiceClient = &lt;span style="color: #0000ff"&gt;new&lt;/span&gt; PublishingServiceClient.PublishingService();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&amp;#160;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #008000"&gt;//Create credentials for the user accessing the Web service. The export requires site administrator privileges.&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #008000"&gt;//Use default credentials if the user running client has required rights at the server.&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #008000"&gt;//Otherwise, explicitly create Credentials using new System.Net.Credentials(&amp;quot;username&amp;quot;,&amp;quot;passwd&amp;quot;, &amp;quot;domain&amp;quot;).&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            publishingServiceClient.Credentials = System.Net.CredentialCache.DefaultCredentials;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&amp;#160;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #008000"&gt;//Replace webUrl with the url of the site you want to export.&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #0000ff"&gt;string&lt;/span&gt; webUrl = &lt;span style="color: #006080"&gt;&amp;quot;http://servername/Variation Home/Variation Site&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;&amp;#160;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; (!&lt;span style="color: #0000ff"&gt;string&lt;/span&gt;.IsNullOrEmpty(webUrl))&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;                &lt;span style="color: #008000"&gt;//Invoke the SOAP Client Method.&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;                &lt;span style="color: #0000ff"&gt;byte&lt;/span&gt;[] compressedFileContent = publishingServiceClient.ExportObjects(webUrl);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;                File.WriteAllBytes(Path.GetTempFileName(), compressedFileContent);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;                &lt;span style="color: #008000"&gt;//Uncompress the file for translation.&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;            }            &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"&gt;        ...&lt;/pre&gt;
&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10208824" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>SharePoint Server 2010 wsp deployment stuck on deploying</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2011/04/14/sharepoint-2010-wsp-deployment-stuck-on-deploying.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2011/04/14/sharepoint-2010-wsp-deployment-stuck-on-deploying.aspx</id><published>2011-04-14T02:03:34Z</published><updated>2011-04-14T02:03:34Z</updated><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Ever faced with a situation where the wsp job gets stuck on deploying. If yes, please check if all the servers in farm are on the same timezone. I faced a scenario where one of the servers was accidently changed by the developers to a &lt;strong&gt;different&lt;/strong&gt; time zone and it cause the wsp deployment to be stuck on deploying for a long time. After checking various options including disabling Anti-virus, I found that the time zone on one of the machines was set to different zone, almost (5 hours behind ). After setting the time zone correctly and restarting the timer job the wsps got deployed without any issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10153662" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint Server 2010" scheme="http://blogs.msdn.com/b/jojok/archive/tags/SharePoint+Server+2010/" /></entry><entry><title>Word 2010 error on opening</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2011/03/11/word-2010-error-on-opening.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2011/03/11/word-2010-error-on-opening.aspx</id><published>2011-03-11T10:58:00Z</published><updated>2011-03-11T10:58:00Z</updated><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;If you encounter error while opening a word file from SharePoint 2010 Document library, you need to try and uncheck the Protected View setting under word option.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/1007.image_5F00_333FB461.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/6886.image_5F00_thumb_5F00_668B51F0.png" width="644" height="404" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10139685" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint Server 2010" scheme="http://blogs.msdn.com/b/jojok/archive/tags/SharePoint+Server+2010/" /><category term="Word 2010" scheme="http://blogs.msdn.com/b/jojok/archive/tags/Word+2010/" /></entry><entry><title>MySite Host Template on SharePoint 2010</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2011/02/10/mysite-host-template-on-sharepoint-2010.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2011/02/10/mysite-host-template-on-sharepoint-2010.aspx</id><published>2011-02-10T08:05:07Z</published><updated>2011-02-10T08:05:07Z</updated><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;If you have encountered “Error in PortalCrawl Web Service” when the MySite url (e.g sps3://mysite:567/ ) is being crawled then the most likely cause of the error is due to &lt;/p&gt;  &lt;p&gt;a) Permission error . Permission needs to be given to the crawl account to the UPA. The permission is “Retrieve People Data for Search Crawlers”&lt;/p&gt;  &lt;p&gt;b) The other issue could be MySite Host template is not installed on Root URL. In my scenario it was working for SharePoint 2007 farm, but fails it is not installed on root url for SharePoint Server 2010. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10127195" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint Server 2010" scheme="http://blogs.msdn.com/b/jojok/archive/tags/SharePoint+Server+2010/" /></entry><entry><title>Missing “I like it” and Tags on SharePoint 2010</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2011/01/26/missing-i-like-it-and-tags-on-sharepoint-2010.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2011/01/26/missing-i-like-it-and-tags-on-sharepoint-2010.aspx</id><published>2011-01-26T14:49:41Z</published><updated>2011-01-26T14:49:41Z</updated><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;While working on Profiles and Metadata Service Federation between 2 farms I noticed that the “I like IT” button was missing in the child farm. After spending significant amount of time troubleshooting the Linking I found that I had missed to select the below checkboxes after creating the connection to “Service Application” in the destination farm. &lt;/p&gt;  &lt;p&gt;The selection of checkboxes is necessary on the “Child Farm” proxy connection. This can be evoked by clicking on the “Properties” button with the focus enabled on the Proxy Connection.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/1234.ProxySettings_5F00_156B8753.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ProxySettings" border="0" alt="ProxySettings" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/6102.ProxySettings_5F00_thumb_5F00_732355FF.jpg" width="232" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/1715.ManagedMetadata_5F00_25A6B372.jpg"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="ManagedMetadata" border="0" alt="ManagedMetadata" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/3480.ManagedMetadata_5F00_thumb_5F00_620F024F.jpg" width="397" height="151" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/3806.IlikeIT_5F00_6638DA14.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IlikeIT" border="0" alt="IlikeIT" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-00-84-metablogapi/4786.IlikeIT_5F00_thumb_5F00_55DD625B.jpg" width="244" height="141" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10120509" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint Server 2010" scheme="http://blogs.msdn.com/b/jojok/archive/tags/SharePoint+Server+2010/" /></entry><entry><title>Admin Approved InfoPath forms migrating from MOSS 2007 to SharePoint Server 2010</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2011/01/24/admin-approved-infopath-forms-migrating-from-moss-2007-to-sharepoint-server-2010.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2011/01/24/admin-approved-infopath-forms-migrating-from-moss-2007-to-sharepoint-server-2010.aspx</id><published>2011-01-24T04:48:37Z</published><updated>2011-01-24T04:48:37Z</updated><content type="html">&lt;blockquote&gt;   &lt;p&gt;Admin approved form from MOSS 2007 get deployed as features within the 12 features hive under folders named with GUIDs. These need special handling to be moved to SharePoint 2010. The following steps need to be performed.&lt;/p&gt;    &lt;p&gt;a) Export the Admin approved IP templates using stsadm command.&lt;/p&gt;    &lt;p&gt;using stsadm &lt;strong&gt;-o exportipfsadminobjects &lt;/strong&gt;command export the IP forms to a CAB file.&lt;/p&gt;    &lt;p&gt;b) Import this into the SharePoint 2010 environment using the Windows PowerShell 2.0 &lt;a href="http://technet.microsoft.com/en-us/library/ff607951.aspx"&gt;Import-SPInfoPathAdministrationFiles&lt;/a&gt; cmdlet.&lt;/p&gt;    &lt;p&gt;c) Check if the files are imported correctly by browsing to the Central Admin –&amp;gt; Manage Infopath Form Templates. &lt;/p&gt;&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10119268" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint Server 2010" scheme="http://blogs.msdn.com/b/jojok/archive/tags/SharePoint+Server+2010/" /><category term="Migration" scheme="http://blogs.msdn.com/b/jojok/archive/tags/Migration/" /></entry><entry><title>SQL Server 2008 SSRS integration with SharePoint 2010 RTM</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2010/05/04/sql-server-2008-ssrs-integration-with-moss-2010-rtm.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2010/05/04/sql-server-2008-ssrs-integration-with-moss-2010-rtm.aspx</id><published>2010-05-04T14:20:00Z</published><updated>2010-05-04T14:20:00Z</updated><content type="html">&lt;P&gt;For the integration of SQL Server 2008 Reporting Services with SharePoint 2010 you require the SQL Server 2008 R2 Addin for SharePoint 2010. However it only supported with CU8 update / patch of SQL 2008 SP1 planned for release in May 2010. Please refer to &lt;A href="http://blogs.msdn.com/prash" mce_href="http://blogs.msdn.com/prash"&gt;http://blogs.msdn.com/prash&lt;/A&gt; for further details&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10007082" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="SSRS MOSS 2010 Integration" scheme="http://blogs.msdn.com/b/jojok/archive/tags/SSRS+MOSS+2010+Integration/" /></entry><entry><title>SharePoint 2010 silverlight media player webpart</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2010/02/22/sharepoint-2010-silverlight-media-player-webpart.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2010/02/22/sharepoint-2010-silverlight-media-player-webpart.aspx</id><published>2010-02-22T02:33:00Z</published><updated>2010-02-22T02:33:00Z</updated><content type="html">&lt;P&gt;I was trying to get a silverlight media player webpart&amp;nbsp;working&amp;nbsp; and struggled to find the correct properties to get the video started. So I thought I would share the same with others who are facing same issue.&lt;/P&gt;
&lt;P&gt;a) Add a silverlight webpart on your page.&lt;/P&gt;
&lt;P&gt;b) Point the silverlight webpart to load mediaplayer.xap file from 14 hive under \layouts\ClientBin.&lt;/P&gt;
&lt;P&gt;c) Set the custom initialization string property in the webpart to the the following in case you want the video to start automatically after loading. I placed the .wmv file in the same folder called ClientBIn. Hope it helps.&lt;/P&gt;
&lt;P&gt;autoPlay=true,mediaSource=wildlife.wmv,mediaTitle=SharePoint&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9967167" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>INSTALLING REPORTING SERVICES MOSS ADDIN ISSUES</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2008/10/21/installing-reporting-services-in-sql-server-integration-mode-issue.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2008/10/21/installing-reporting-services-in-sql-server-integration-mode-issue.aspx</id><published>2008-10-21T19:22:02Z</published><updated>2008-10-21T19:22:02Z</updated><content type="html">&lt;p&gt;The reporting services addin to that needs to be installed on the webfront end servers gave me some grief last week during installation. My customers installation environment was a x64 bit MOSS box, with SQL Server 2008 Entterprise edition on a seperate box. After sucessfully configuring the SSRS in SharePoint Integration Mode on the SSRS server, MOSS bits also need to be installed on the database server. Remember to use the same bits of MOSS (including Service Packs and patches) as used on other servers on the farm. Please do not install IIS on SQL Server 2008 (SSRS)&amp;nbsp; as SQL Server 2008 does not require IIS, you only need to install MOSS without IIS. &lt;/p&gt; &lt;p&gt;The real issue I faced during installation was that of the SSRS add-in for SQL Server 2008 x64 ( different from one for SQL Server 2005 SP2) , was that the msi used to fail repeatedly and&amp;nbsp; the following steps (From SQL Server&amp;nbsp; BOL)helped fix&amp;nbsp; the issue.&lt;/p&gt; &lt;li&gt;Run &lt;b&gt;SharePointRS.msi / r&lt;/b&gt;sSharePoint_x64.msi &lt;b&gt;SKIPCA=1.&lt;/b&gt;  &lt;li&gt;Find the rsCustomAction.exe file on the file system. This file is copied to your computer by the Setup program. The file will be located in the %Temp% directory. &lt;br&gt;To get the path information for this file, click &lt;b&gt;Start&lt;/b&gt;, click &lt;b&gt;Run&lt;/b&gt;, and then type &lt;b&gt;%temp%&lt;/b&gt;. The file should be located in \Documents and Settings\&amp;lt;&lt;i&gt;your name&lt;/i&gt;&amp;gt;\LOCALS~1\Temp.  &lt;li&gt;Open a command prompt window. To do this, click &lt;b&gt;Start&lt;/b&gt;, click &lt;b&gt;Run&lt;/b&gt;, and type &lt;b&gt;cmd&lt;/b&gt;.  &lt;li&gt;Navigate to the folder that contains the rsCustomAction executable.  &lt;li&gt;Enter the following command:  &lt;p&gt;rsCustomAction.exe /i  &lt;p&gt;This configuration step will take several minutes to complete. The W3SVC service will be restarted during this process.&lt;/p&gt; &lt;li&gt;After Setup is finished, go to Administrator Tools and click &lt;b&gt;SharePoint 3.0 Central Administration&lt;/b&gt;.  &lt;li&gt;Click &lt;b&gt;Application Management&lt;/b&gt;. You should see a new section named &lt;b&gt;Reporting Services&lt;/b&gt;. This section has links to pages used to specify integration settings.  &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9009935" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Activating a feature for all SiteCollections within a WebApplication - MySites</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2008/10/06/activating-feature-for-each-mysite-site-collection.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2008/10/06/activating-feature-for-each-mysite-site-collection.aspx</id><published>2008-10-06T07:16:03Z</published><updated>2008-10-06T07:16:03Z</updated><content type="html">&lt;p&gt;Recently I had to get a feature activated over all 800 MySite of a Farm. The approach I choose was to generate an xml list of all the MySIte URL's in my farm and use a Windows application to read the XML file and generate the appropriate activation script. &lt;/p&gt; &lt;p&gt;a) The step to get all the site collections within the WebApplication hosting MySite is to run the command of stsadm -o enumsites -url &lt;a href="http://moss:34078/personal/"&gt;http://moss:34078/&lt;/a&gt; &amp;gt;C:\MySiteList.XML . This xml file would include the URL of all mysites in an XML Node. &lt;/p&gt; &lt;p&gt;b) Assuming all your mysites are under &lt;a href="http://moss:portnumber/sites/personal/"&gt;http://moss:portnumber/sites/personal/&lt;/a&gt;, the next thing you need to do is simply load the XML File in an XML domdocument and generate the appropriate activation script as stsadm -o activateFeature -url &amp;lt;&amp;lt;URLfromtheXMLNode Element&amp;gt;&amp;gt;. Remember to filter out the urls which do not begin with &lt;a href="http://moss:portnumber/sites/personal/"&gt;http://moss:portnumber/sites/personal/&lt;/a&gt;. And you are done. The script can be outputted to a .bat file which you could run later to activate the feature.&lt;/p&gt; &lt;p&gt;You also could do the same using API of SharePoint by looping through the site collection list of a particular webapp. My personal choice would be to go with the above for its simplicity. &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8977440" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>How to add a .rsds file as datasource for Reporting Service integration in MOSS</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2008/08/25/how-to-add-a-rsds-file-as-datasource-for-reporting-service-integration-in-moss.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2008/08/25/how-to-add-a-rsds-file-as-datasource-for-reporting-service-integration-in-moss.aspx</id><published>2008-08-25T20:09:05Z</published><updated>2008-08-25T20:09:05Z</updated><content type="html">&lt;p&gt;SQL Server 2005 SP2 contains Reporting Services -MOSS integration feature. Reporting Services can be configured to run in Sharepoint Integration Modew where in reports can be managed from MOSS and not from Report Manager. &lt;/p&gt;  &lt;p&gt;After your Reporting Service Report is deployed to SharePoint Report Library you could configure the report to use the common datasource from Data Connection library. The Data Connection library is used to store the datasource files that stores connection info to connect to RS application database (SSAS db / Custom SQL DB etc..) in a central and common location. &lt;/p&gt;  &lt;p&gt;By default the .Rsds file content type does not appear as a new item dropdown. You will need to configure the Data Connection library to include the Report Data Source Content type to have it appear in the New item dropdown.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8894321" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Page Layout Publishing feature Page Attribute issue</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2008/08/25/page-layout-publishing-feature-page-attribute-issue.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2008/08/25/page-layout-publishing-feature-page-attribute-issue.aspx</id><published>2008-08-25T09:07:00Z</published><updated>2008-08-25T09:07:00Z</updated><content type="html">&lt;P&gt;Page layouts can be published and deployed using features. Doing the same using features has advantage as compared to publishing the same using SharePoint Designer. Andrew has a very good post on the same. &lt;A title=http://www.andrewconnell.com/blog/archive/2006/12/20/5451.aspx href="http://www.andrewconnell.com/blog/archive/2006/12/20/5451.aspx" mce_href="http://www.andrewconnell.com/blog/archive/2006/12/20/5451.aspx"&gt;http://www.andrewconnell.com/blog/archive/2006/12/20/5451.aspx&lt;/A&gt; .&lt;/P&gt;
&lt;P&gt;Use the above link to understand steps involved in creating a Feature and Deploying the same using a feature. &lt;/P&gt;
&lt;P&gt;Although you might still deploy the&amp;nbsp;Page Layout&amp;nbsp;using features and solution deployment you still need SPDesigner assistance to create the page.( without saving the same to Content DB). One thing to remember after creating the page using SPDesigner is to remove some additional Page attributes that the designer injects. These attributes cause the page to become unghosted. Before you deploy the page layout created using SPD and deployed using&amp;nbsp; Features and Solution deployment&amp;nbsp; ensure that your page attribute is as follows. &lt;/P&gt;
&lt;P&gt;&amp;lt;%@ Page language="C#"&amp;nbsp;&amp;nbsp; Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,&lt;/P&gt;
&lt;P&gt;PublicKeyToken=71e9bce111e9429c"%&amp;gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8893371" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="WCM" scheme="http://blogs.msdn.com/b/jojok/archive/tags/WCM/" /></entry><entry><title>How to configure Cache Profile in Page Layout using Features</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2008/08/25/how-to-configure-cache-profile-in-page-layout-using-features.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2008/08/25/how-to-configure-cache-profile-in-page-layout-using-features.aspx</id><published>2008-08-25T08:47:31Z</published><updated>2008-08-25T08:47:31Z</updated><content type="html">&lt;p&gt;Feature framework can be used to deploy Page Layouts. After you have deployed a page layout you could configure the Cache Profile that needs to be assigned to the Page Layout using UI. But what if your requirement was to pre-configure the same with deployment of page layout itself. To know the Cache Profile that needs to go with the Page Layout you need to know its Item ID and the title. Cache Profile is configured as a metadata column on the Master Page gallery. To enable the same I had to modify the elements.xml as shown below.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Elements&lt;/span&gt; &lt;span class="attr"&gt;xmlns&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;http://schemas.microsoft.com/sharepoint/&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; 
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Module&lt;/span&gt; &lt;span class="attr"&gt;Name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;PageLayouts&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Url&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;_catalogs/masterpage&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Path&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;PageLayouts&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;RootWebOnly&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;TRUE&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; 
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;File&lt;/span&gt; &lt;span class="attr"&gt;Url&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;CareerLayoutsCTFeature.aspx&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Type&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;GhostableInLibrary&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; 
            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Property&lt;/span&gt; &lt;span class="attr"&gt;Name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Title&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Value&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;HR Page Layout&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt; 
            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Property&lt;/span&gt; &lt;span class="attr"&gt;Name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;MasterPageDescription&amp;quot;&lt;/span&gt; &lt;/pre&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;Value&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Page with image on top contains an image field and richtext field.&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt; 
            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Property&lt;/span&gt; &lt;span class="attr"&gt;Name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;ContentType&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Value&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Page Layout&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;       
            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Property&lt;/span&gt; &lt;span class="attr"&gt;Name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;PublishingAssociatedContentType&amp;quot;&lt;/span&gt; &lt;/pre&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;Value&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;;#HRPublishingContent;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130

EC3DB064584E219954237AF3900413CF8A8360B40d08C45631829C1FB0B;#&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt; 
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Property&lt;/span&gt; &lt;span class="attr"&gt;Name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;AnonymousCacheProfile&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Value&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;2;#Public Internet (Purely Anonymous)&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt; 
            &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;File&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; 
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Module&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; 
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Elements&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;style type="text/css"&gt;
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type="text/css"&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8893344" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="WCM" scheme="http://blogs.msdn.com/b/jojok/archive/tags/WCM/" /></entry><entry><title>Delegate control for Sharepoint Search</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2008/04/17/delegate-control-for-sharepoint-search.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2008/04/17/delegate-control-for-sharepoint-search.aspx</id><published>2008-04-17T04:19:49Z</published><updated>2008-04-17T04:19:49Z</updated><content type="html">&lt;p&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms463169.aspx" target="_blank"&gt;Delegate controls&lt;/a&gt; are a very good mechanism to replace an existing control with another control through a SharePoint Feature. For example a delegate control is declared as &lt;/p&gt;  &lt;p&gt;&amp;lt;SharePoint:DelegateControl runat=&amp;quot;server&amp;quot; ControlId=&amp;quot;SmallSearchInputBox&amp;quot;/&amp;gt; &lt;/p&gt;  &lt;p&gt;The key to have your custom search control appear in place of the above declaration is to ensure the following:&lt;/p&gt;  &lt;p&gt;a) Create a feature with feature details file entries as below. &lt;/p&gt;  &lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt; &amp;lt;Elements xmlns=&amp;quot;http://schemas.microsoft.com/sharepoint/&amp;quot;&amp;gt; &amp;lt;Control &lt;strong&gt;Id=&amp;quot;SmallSearchInputBox&amp;quot;&lt;/strong&gt; &lt;strong&gt;Sequence=&amp;quot;100&amp;quot;&lt;/strong&gt; Url=&amp;quot;~/_controltemplates/mysearchcontrol.ascx&amp;quot;/&amp;gt; &amp;lt;/Elements&amp;gt;. &lt;/p&gt;  &lt;p&gt;The sequence number and ID is very important. Your sequence number should be the lowest if there are already multiple features registered for the same control Id of &lt;strong&gt;&amp;quot;SmallSearchInputBox&amp;quot;&lt;/strong&gt; .&lt;/p&gt;  &lt;p&gt;b) if you have MOSS installed you will notice that there are already 3 features for SmallSearchInputBox (a quick search on Features folder will reveal this ) and the lowest sequence number is 25. So to have your control appear in place of the standard search box , reduce your sequence number to less than 25. &lt;/p&gt;  &lt;p&gt;c) Install&amp;#160; and Activate the feature.&lt;/p&gt;  &lt;p&gt;d) Restart IIS if necessary. &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8400247" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="General" scheme="http://blogs.msdn.com/b/jojok/archive/tags/General/" /><category term="MOSS Search" scheme="http://blogs.msdn.com/b/jojok/archive/tags/MOSS+Search/" /></entry><entry><title>Refine People Search by Additional Managed Profile Properties</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/jojok/archive/2008/04/13/refine-people-search-by-additional-managed-profile-properties.aspx" /><id>http://blogs.msdn.com/b/jojok/archive/2008/04/13/refine-people-search-by-additional-managed-profile-properties.aspx</id><published>2008-04-13T05:06:43Z</published><updated>2008-04-13T05:06:43Z</updated><content type="html">&lt;p&gt;The default people search in MOSS refines search results based on Department and JobTitle. When a profile property is created it gets automatically added into the Managed Properties collection. If you need to refine people search by additional profile properties then we need to ensure the following &lt;/p&gt;  &lt;p&gt;a) A Profile property needs to be converted to a Managed property. If it is not already present you need to add a new managed property. In our example I have a new profile property called CreditCardType which has its own Managed Property under search setting with the same name CreditCardType.&lt;/p&gt;  &lt;p&gt;b) Open the PeopleSearchResult.aspx in SharePoint Designer. This will appear under the master page gallery of your site. Look for &amp;lt;SearchWC:RefineSearchResults and you can add your own entry below the entries for Department and JobTitle &amp;lt;SEARCHWC:RefineSearchResults runat=&amp;quot;server&amp;quot; Title=&amp;quot;Refine by Card&amp;quot; SearchProperty=&amp;quot;CreditCardType&amp;quot;/&amp;gt; &lt;/p&gt;  &lt;p&gt;c) Next edit the people Search Core WebPart in peopleresult.aspx in Browser and add the following text in the Selected Columns Property ( under &amp;quot;Result Query Options&amp;quot; ).&lt;/p&gt;  &lt;p&gt;&amp;lt;Column Name=&amp;quot;CreditCardType&amp;quot;/&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;The last step is important, without which the refine by link will not appear. &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8386139" width="1" height="1"&gt;</content><author><name>Jojo Koshy - MSFT</name><uri>http://blogs.msdn.com/Jojo-Koshy/ProfileUrlRedirect.ashx</uri></author><category term="MOSS Search" scheme="http://blogs.msdn.com/b/jojok/archive/tags/MOSS+Search/" /></entry></feed>