<?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; Visual Studio 2008</title>
	<atom:link href="http://artykul8.com/tag/visual-studio-2008/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, 01 Sep 2011 16:50:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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, [...]]]></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/2009/10/StLMParkBench.jpg"><img src="http://artykul8.com/media/2009/10/StLMParkBench-600x400.jpg" alt="" title="StLMParkBench" width="600" height="400" class="size-medium wp-image-142" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://artykul8.com/2010/07/vsewss-bin-deployment-and-cas-policy-issues/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, [...]]]></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>3</slash:comments>
		</item>
	</channel>
</rss>

