<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Windows Server on Gabriel Mongeon</title><link>https://gabrielmongeon.ca/en/tags/windows-server/</link><description>Recent content in Windows Server on Gabriel Mongeon</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 30 May 2011 22:51:00 -0400</lastBuildDate><atom:link href="https://gabrielmongeon.ca/en/tags/windows-server/index.xml" rel="self" type="application/rss+xml"/><item><title>SharePoint 2010 and VS2010: Post-Deployment Scripts</title><link>https://gabrielmongeon.ca/en/2011/05/sharepoint-2010-and-vs2010-post-deployment-scripts/</link><pubDate>Mon, 30 May 2011 22:51:00 -0400</pubDate><guid>https://gabrielmongeon.ca/en/2011/05/sharepoint-2010-and-vs2010-post-deployment-scripts/</guid><description>&lt;h4>&lt;/h4>
&lt;h4 id="context">Context&lt;/h4>
&lt;p>You are developing a &lt;a href="http://sharepoint.microsoft.com">SharePoint&lt;/a> 2010 application using &lt;a href="http://www.microsoft.com/visualstudio/">Visual Studio&lt;/a> 2010 on a Windows 2008 64-bit server. You want to run a post-deployment script (PowerShell for example) for debugging:&lt;/p>
&lt;p>&lt;a href="https://gabrielmongeon.ca/img/image_5.png">&lt;img src="https://gabrielmongeon.ca/img/image_thumb_4.png" alt="image" title="image">&lt;/a>&lt;/p>
&lt;h4 id="the-problem">The Problem&lt;/h4>
&lt;p>When you add a script, for example:
&lt;code>powershell $(ProjectDir)\PowerShellScript\MySuperPowerShellScript.ps1&lt;/code>&lt;/p>
&lt;p>You always get an error when running the script:&lt;/p>
&lt;p>&lt;em>&lt;font color="#ff0000" size="1">Error occurred in deployment step &amp;lsquo;Run Post-Deployment Command&amp;rsquo;: The command &amp;quot;powershell $(ProjectDir)\PowerShellScript\MySuperPowerShellScript.ps1&amp;quot; exited with error code: 1.&lt;/font>&lt;/em>&lt;/p>
&lt;p>This error is due to the fact that &lt;a href="http://www.microsoft.com/visualstudio/">VS2010&lt;/a> runs in 32-bit mode, as well as its post-deployment scripts, and the SharePoint 2010 APIs run in 64-bit mode. This creates errors when executing the script.&lt;/p></description></item><item><title>Windows 7 and Windows Server 2008 R2 SP1</title><link>https://gabrielmongeon.ca/en/2011/03/windows-7-and-windows-server-2008-r2-sp1/</link><pubDate>Sun, 06 Mar 2011 18:13:12 -0500</pubDate><guid>https://gabrielmongeon.ca/en/2011/03/windows-7-and-windows-server-2008-r2-sp1/</guid><description>&lt;p>The &lt;a href="http://windows.microsoft.com/fr-ca/windows7/learn-how-to-install-windows-7-service-pack-1-sp1">service pack 1 for Windows 7&lt;/a> is now available. If you have automatic updates enabled, you will receive it soon if you haven&amp;rsquo;t already, otherwise go to &lt;a href="http://windows.microsoft.com/fr-ca/windows7/learn-how-to-install-windows-7-service-pack-1-sp1">this site&lt;/a>.&lt;/p>
&lt;p>I have had it since Friday and no problems to report!&lt;/p>
&lt;p>You can &lt;a href="http://www.microsoft.com/downloads/fr-fr/details.aspx?FamilyID=61924cea-83fe-46e9-96d8-027ae59ddc11">consult the SP1 documentation&lt;/a> via the &lt;a href="http://www.microsoft.com">Microsoft&lt;/a> website.&lt;/p></description></item></channel></rss>