<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>artykul8 &#187; SharePoint</title>
	<atom:link href="http://artykul8.com/category/sharepoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://artykul8.com</link>
	<description>ar·tic·u·late (v.) to make clear or effective</description>
	<lastBuildDate>Thu, 22 Jul 2010 16:03:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VSeWSS BIN Deployment and CAS Policy Issues</title>
		<link>http://artykul8.com/2010/07/vsewss-bin-deployment-and-cas-policy-issues/</link>
		<comments>http://artykul8.com/2010/07/vsewss-bin-deployment-and-cas-policy-issues/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 16:03:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>

		<guid isPermaLink="false">http://artykul8.com/?p=280</guid>
		<description><![CDATA[There is a bug in Visual Studio Extensions for WSS (including VSeWSS 1.3) &#8211; if you are targeting your web part deployment into BIN instead of GAC, you are in for an upleasant surprise, when you realize that you custom access policy is not working.
The reason for this is incorrect assembly reference in manifest.xml, which [...]]]></description>
			<content:encoded><![CDATA[<p>There is a bug in Visual Studio Extensions for WSS (including VSeWSS 1.3) &#8211; if you are targeting your web part deployment into BIN instead of GAC, you are in for an upleasant surprise, when you realize that you custom access policy is not working.</p>
<p>The reason for this is incorrect assembly reference in manifest.xml, which results in invalid URL for IMembershipCondition element, where binary name has an extra .dll suffix in CAS policy file, just like in the file excerpt below:</p>
<pre><strong>C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\CONFIG\wss_custom_wss_mediumtrust_<em>guid</em>.config</strong></pre>
<p><code>   ...<br />
  &lt;CodeGroup version="1" PermissionSetName="mycustomwebpart.wsp-12345678-90AB-1234-5678-90ABC3456-1"&gt;<br />
    &lt;IMembershipCondition version="1" Name="MyCustomWebPart" Url="$AppDirUrl$/bin/<strong><span style="color: #ff0000;">MyCustomWebPart.dll.dll</span></strong>" /&gt;<br />
  &lt;/CodeGroup&gt;<br />
</code></p>
<p>The solution for this problem is relatively simple:</p>
<p>- in your Visual Studio open <strong>WSP View</strong> pane, click Refresh button to update solution files</p>
<p>- open manifest.xml and in <strong>&lt;Assembly&gt;</strong> element <strong>remove extension &#8216;.dll&#8217; from Assembly Name attribute</strong>:<br />
<code><br />
&lt;Solution ...&gt;<br />
  ...<br />
  &lt;CodeAccessSecurity&gt;<br />
    &lt;PolicyItem xmlns="<a href="http://schemas.microsoft.com/sharepoint/">http://schemas.microsoft.com/sharepoint/</a>"&gt;<br />
      ...<br />
      &lt;Assemblies&gt;<br />
        &lt;Assembly Name="MyCustomWebPart" /&gt;<br />
      &lt;/Assemblies&gt;<br />
    &lt;/PolicyItem&gt;<br />
&lt;/Solution&gt;<br />
</code></p>
<p>Additionally, while editing <strong>manifest.xml</strong> if you like to grant your web part additional security privileges you might need to add a few lines to <strong>PermissionSet</strong> element. In particular, if you are using MOSS Search or Search Server functionality, such as KeywordQuery or FullTextSqlQuery classes you would need <strong>RegistryPermission</strong> and <strong>FileIOPermission</strong> lines.<br />
<code><br />
  &lt;PermissionSet class="NamedPermissionSet" version="1" Description="Example"&gt;<br />
    ...<br />
    &lt;IPermission class="System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /&gt;<br />
    &lt;IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /&gt;<br />
    &lt;IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /&gt;<br />
    &lt;IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"version="1" Unrestricted="true" PathDiscovery="*AllFiles*" /&gt;<br />
  &lt;/PermissionSet&gt;<br />
</code></p>
<p>Additional resources:</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/ee909485(office.12).aspx">MSDN: Administrator and Developer Guide to Code Access Security in SharePoint Server 2007</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms442108(office.12).aspx">MSDN: Solution Schema</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/cc768613(office.12).aspx">MSDN: Securing Web Parts in Windows SharePoint Services</a></li>
<li><a href="http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=249">BlueDog Limited post: Code Access Security policies within SharePoint v3</a></li>
</ul>
<p><a href="http://artykul8.com/media/2010/07/LonelyBench.jpg"><img src="http://artykul8.com/media/2010/07/LonelyBench-450x300.jpg" alt="" title="LonelyBench" width="450" height="300" class="size-medium wp-image-291" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://artykul8.com/2010/07/vsewss-bin-deployment-and-cas-policy-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Server 2007 on Windows Server 2008 R2</title>
		<link>http://artykul8.com/2010/03/sharepoint-server-2007-on-windows-server-2008-r2/</link>
		<comments>http://artykul8.com/2010/03/sharepoint-server-2007-on-windows-server-2008-r2/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 21:04:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://artykul8.com/?p=205</guid>
		<description><![CDATA[This already became a somewhat old topic, since Microsoft released a proper SharePoint Server 2007 slipstream edition with SP2.
Nonetheless, it is important to remember that if you are planning to install SharePoint Server 2007 or Windows SharePoint Services 3.0, it has to be at least SP2, anything before that is not supported on Windows Server [...]]]></description>
			<content:encoded><![CDATA[<p>This already became a somewhat old topic, since Microsoft released a proper SharePoint Server 2007 slipstream edition with SP2.</p>
<p>Nonetheless, it is important to remember that if you are planning to install SharePoint Server 2007 or Windows SharePoint Services 3.0, it has to be at least SP2, anything before that is not supported on Windows Server 2008 R2. <a href="http://blogs.msdn.com/sharepoint/archive/2009/10/02/install-sharepoint-server-2007-on-windows-server-2008-r2.aspx">SharePoint Team Blog: Install SharePoint Server 2007 on Windows Server 2008 R2</a></p>
<p>There was a bit of confusion/frustration raised over this topic, because WSS 3.0 slipstream with SP2 came out long ago (April 2009), but MOSS 2007 was for some reasons left behind, and MSDN subscribers saw slipstream SP2 edition only in January 2010.</p>
<p>WSS 3.0 with SP2:<br />
x86: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A&#038;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A&#038;displaylang=en</a><br />
x64: <a href="http://www.microsoft.com/downloads/details.aspx?familyid=9FB41E51-CB03-4B47-B89A-396786492CBA&#038;displaylang=en">http://www.microsoft.com/downloads/details.aspx?familyid=9FB41E51-CB03-4B47-B89A-396786492CBA&#038;displaylang=en</a></p>
<p>MOSS 2007 with SP2 (trial):<br />
x86: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2e6e5a9c-ebf6-4f7f-8467-f4de6bd6b831&#038;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=2e6e5a9c-ebf6-4f7f-8467-f4de6bd6b831&#038;displaylang=en</a><br />
x64: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=3015fde4-85f6-4cbc-812d-55701fbfb563&#038;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=3015fde4-85f6-4cbc-812d-55701fbfb563&#038;displaylang=en</a></p>
<p><a href="http://artykul8.com/media/2010/03/VeniceBeachSurfing.jpg"><img src="http://artykul8.com/media/2010/03/VeniceBeachSurfing-450x316.jpg" alt="" title="VeniceBeachSurfing" width="450" height="316" class="alignnone size-medium wp-image-206" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://artykul8.com/2010/03/sharepoint-server-2007-on-windows-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Server, IIS/SharePoint, and NULL SID &#8216;Audit Failure&#8217; Security Errors</title>
		<link>http://artykul8.com/2010/01/windows-server-iis-sharepoint-and-null-sid-audit-failures/</link>
		<comments>http://artykul8.com/2010/01/windows-server-iis-sharepoint-and-null-sid-audit-failures/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 20:24:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://artykul8.com/?p=166</guid>
		<description><![CDATA[I stumbled across this issue, while troubleshooting errors accessing host-named SharePoint sites locally from within a web server (sites with specified host headers different from local server name).
While I had no problems accessing the same site from another computer, I could not login and access any pages locally. I was constantly prompted for user name [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled across this issue, while troubleshooting errors accessing host-named SharePoint sites locally from within a web server (sites with specified host headers different from local server name).<br />
While I had no problems accessing the same site from another computer, I could not login and access any pages locally. I was constantly prompted for user name and password receiving access errors, while my Security event log was getting filled with &#8216;Audit Failure&#8217; log messages about NULL SID: &#8220;An account failed to log on. Security ID: NULL SID&#8221;.</p>
<p><a href="http://artykul8.com/media/2010/01/auditfailure.gif"><img src="http://artykul8.com/media/2010/01/auditfailure-450x410.gif" alt="" title="auditfailure" width="450" height="410" class="alignnone size-medium wp-image-177" /></a></p>
<p>After eliminating all possible causes &#8211; NLB, SharePoint site configuration, IIS security and settings &#8211; it turned out that it wasn&#8217;t even IIS- or SharePoint-related issue at all. Starting with Windows Server 2003 SP1 and higher (Windows Server 2008 and R2 editions in that list as well), as a security measure Microsoft introduced a loopback check to prevent <a href="http://en.wikipedia.org/wiki/Man-in-the-middle_attack">man-in-the-middle (MITM) attack</a>, when a malicious application (such as spyware) can try to eavesdrop communication with a remote server by introducing itself locally as a remote host. Please note: loopback check happens only when host headers do not match local computer name.</p>
<p>The symptoms and solutions are described in Microsoft KB article: <strong><a href="http://support.microsoft.com/kb/896861">http://support.microsoft.com/kb/896861</a></strong><br />
Additionally a few other related issues (accessing network shares, etc) are outlined in two more KB articles: <a href="http://support.microsoft.com/kb/887993">http://support.microsoft.com/kb/887993</a> and <a href="http://support.microsoft.com/kb/926642">http://support.microsoft.com/kb/926642</a>.</p>
<p>To deal with this issue you have two options: either explicitly specify all host headers in the registry (the most secure, but also the most cumbersome solution), or disable loopback check entirely.</p>
<p>If you decide to opt for completely disabling loopback check (on a development or test server), here is one command line you can achieve it through. Please remember to restart your server after changing the registry!</p>
<p> <strong>REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v DisableLoopbackCheck /t REG_DWORD /d 1</strong></p>
<p><img src="http://artykul8.com/media/2010/01/disableloopbackcheck.gif" alt="" title="disableloopbackcheck" width="806" height="96" class="alignnone size-full wp-image-167" /></p>
]]></content:encoded>
			<wfw:commentRss>http://artykul8.com/2010/01/windows-server-iis-sharepoint-and-null-sid-audit-failures/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Web Site Performance and JPEG Compression</title>
		<link>http://artykul8.com/2009/10/web-site-performance-and-jpeg/</link>
		<comments>http://artykul8.com/2009/10/web-site-performance-and-jpeg/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 04:56:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[UX]]></category>
		<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://artykul8.com/?p=100</guid>
		<description><![CDATA[As a consultant, throughout stabilizing and deployment phases, I get frequently asked to investigate performance of specific web pages or whole sites, in order to improve page rendering speed, lately more and more related to SharePoint environment.
And what I often see in breakdown of page rendering that it is not that server execution time, which [...]]]></description>
			<content:encoded><![CDATA[<p>As a consultant, throughout stabilizing and deployment phases, I get frequently asked to investigate performance of specific web pages or whole sites, in order to improve page rendering speed, lately more and more related to SharePoint environment.</p>
<p>And what I often see in breakdown of page rendering that it is not that server execution time, which lags behind and causes visual delays, but the size and amount of creative content, which was put on the web site &#8211; images and flash files. The easiest way to quickly look at the page load timing breakdown is probably by using FireBug&#8217;s Net tab, as it&#8217;s shown on this illustration.</p>
<p><a href="http://artykul8.com/media/2009/10/pageloadbreakdown.gif"><img src="http://artykul8.com/media/2009/10/pageloadbreakdown-450x286.gif" alt="pageloadbreakdown" title="pageloadbreakdown" width="450" height="286" class="size-medium wp-image-138" /></a></p>
<p>There are many ways to optimize and enhance performance of specific web pages and web sites in general. One of the great examples of the process and approach to optimization, is documented in the blog of Microsoft SharePoint team, which has done amazing job <a href="http://blogs.msdn.com/sharepoint/archive/2009/09/28/how-we-did-it-speeding-up-sharepoint-microsoft-com.aspx">speeding up SharePoint.Microsoft.com</a>. </p>
<p>However, in this post, rather than talking about optimization in general, I want to draw your attention to one highly overlooked issue &#8211; the size of creative media content used on production web sites, specifically size of JPEG images and Flash pieces relying heavily on imagery.</p>
<p>Back in the days, when I was working in video encoding industry, I used to spend large chunk of my time working with different JPEG settings and libraries for motion JPEG video compression. JPEG has many different implementations, and all image editing software programs, such as PhotoShop, Picasa, Paint, etc. use their own libraries with proprietary JPEG-compression, which differs in compression speed, parallelism, and quality.</p>
<p>However, they all have one thing in common &#8211; a configurable characteristic of compression quality, often expressed in per centage, or 0-100. You can read more on JPEG compression quality on <a href="http://en.wikipedia.org/wiki/JPEG">wikipedia</a>, with lots of great examples and comparisons.</p>
<p>But I would like to compare samples, which are closer to real life situation, such a simple web site banner, and show what programs you can use to optimize image file compression.</p>
<p>Here&#8217;s a sample image saved with different image quality:</p>
<p>Original Image &#8211; PNG, Image size: <b>43KB</b><br />
<img src="http://artykul8.com/media/2009/10/apticonlogo.png" alt="apticonlogo" title="apticonlogo" width="600" height="86" class="alignnone size-full wp-image-111" /></p>
<p>JPEG Image &#8211; Quality: 100% (PhotoShop compression quality: Maximum), Size = <b>24KB</b><br />
<img src="http://artykul8.com/media/2009/10/apticonlogo99.jpg" alt="apticonlogo99" title="apticonlogo99" width="600" height="86" class="alignnone size-full wp-image-112" /></p>
<p>JPEG Image &#8211; Quality: 80% (PhotoShop compression quality: Very High), Image Size: <b>14KB</b><br />
<img src="http://artykul8.com/media/2009/10/apticonlogo80.jpg" alt="apticonlogo80" title="apticonlogo80" width="600" height="86" class="alignnone size-full wp-image-115" /></p>
<p>JPEG Image &#8211; Quality 60% (PhotoShop compression quality: High), Image size: <b>12KB</b><br />
<img src="http://artykul8.com/media/2009/10/apticonlogo60.jpg" alt="apticonlogo60" title="apticonlogo60" width="600" height="86" class="alignnone size-full wp-image-116" /></p>
<p>JPEG Image &#8211; Quality 30% (PhotoShop compression quality: Medium), Image size: <b>6KB</b><br />
<img src="http://artykul8.com/media/2009/10/apticonlogo30.jpg" alt="apticonlogo30" title="apticonlogo30" width="600" height="86" class="alignnone size-full wp-image-117" /></p>
<p>JPEG Image &#8211; Quality 10% (PhotoShop compression quality: Low), Image size: <b>4KB</b><br />
<img src="http://artykul8.com/media/2009/10/apticonlogo10.jpg" alt="apticonlogo10" title="apticonlogo10" width="600" height="86" class="alignnone size-full wp-image-118" /></p>
<p>As you can see the size differs drastically on the compression quality, and in many situations, when the images do not contain a lot of text or are related to professional photography, the quality can be lowered to reduce the size of the images. How low you should go is absolutely up to you and your attention to details. It is just important to remember to review image sizes before putting them online, and make an intelligent decision about how large do you want your image to be, and how fast you want your page to render on the screen of internet users.</p>
<p>The best way to review image sizes and quality if you are using <b>PhotoShop CS</b> editions is to choose to &#8220;<a href="http://www.impulseadventure.com/photo/save-as-save-for-web.html">Save for Web</a>&#8220;. PhotoShop shows you image preview and quality comparison right in the save dialog:</p>
<p><a href="http://artykul8.com/media/2009/10/apticonlogophotoshop.png"><img src="http://artykul8.com/media/2009/10/apticonlogophotoshop-450x330.png" alt="apticonlogophotoshop" title="apticonlogophotoshop" width="450" height="330" class="alignnone size-medium wp-image-119" /></a></p>
<p>As far as free alternatives to PhotoShop go:</p>
<p>- if you are using <b>Picasa</b>, one of the ways to do that if you choose to &#8216;Export to Folder&#8217;, and specify &#8216;Image Quality&#8217; in the dialog, opting for &#8216;Normal&#8217;, &#8216;Minimum&#8217;, or &#8216;Custom&#8217; where you can specify the exact compression quality</p>
<p> &#8211; or you can use <b>MS Paint</b>, which by default already saves with relatively lossy compression settings, and which you can also override through the registry</p>
]]></content:encoded>
			<wfw:commentRss>http://artykul8.com/2009/10/web-site-performance-and-jpeg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2008 Extensions for SharePoint (VSeWSS 1.3)</title>
		<link>http://artykul8.com/2009/08/visual-studio-2008-extensions-for-sharepoint/</link>
		<comments>http://artykul8.com/2009/08/visual-studio-2008-extensions-for-sharepoint/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 15:50:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>

		<guid isPermaLink="false">http://artykul8.com/?p=32</guid>
		<description><![CDATA[This one is the biggest pet peeve about SharePoint development for me right now.
Microsoft SharePoint product team is blowing all bells and whistles, announcing SharePoint 2010, and how important it is to switch to 64-bit environment, while poor SharePoint 2007 left in the dust and crippled with the only development extension working on 64-bit, which [...]]]></description>
			<content:encoded><![CDATA[<p>This one is the biggest pet peeve about SharePoint development for me right now.</p>
<p>Microsoft SharePoint product team is blowing all bells and whistles, announcing SharePoint 2010, and how important it is to switch to 64-bit environment, while poor SharePoint 2007 left in the dust and crippled with the only development extension working on 64-bit, which is still in CTP phase <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=FB9D4B85-DA2A-432E-91FB-D505199C49F6&amp;displaylang=en">Visual Studio Extensions 1.3 (March 2009 CTP)</a>.</p>
<p>VSeWSS 1.3 was promised almost half a year ago to become a final release in the <a href="http://blogs.msdn.com/sharepoint/archive/2009/01/12/announcing-community-technology-preview-of-visual-studio-2008-extensions-for-sharepoint-v1-3.aspx">spring of 2009</a>, and later on in one of the dev blogs mentioned <a href="http://blogs.msdn.com/pandrew/archive/2009/03/19/visual-studio-2008-extensions-for-sharepoint-vsewss-1-3-addresses-all-common-sharepoint-developer-requests.aspx">July 2009</a> release date, but up to this date there hasn&#8217;t been any final version announcement or releases yet.</p>
<p>Also, if you are looking for more information and code snippets, you may still find useful referring to the samples that come with <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A8A4E775-074D-4451-BE39-459921F79787&amp;displaylang=en">Visual Studio Extensions 1.1 for Visual Studio 2005 User Guide</a>, which have been removed from 1.3 release.</p>
<p>I&#8217;m keeping my fingers crossed for the new release to come soon, while blaming it all for the recession&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://artykul8.com/2009/08/visual-studio-2008-extensions-for-sharepoint/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
