<?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">robgruen's WebLog</title><subtitle type="html">my intelligence is artificial...</subtitle><id>http://blogs.msdn.com/robgruen/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/robgruen/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2005-11-23T19:01:00Z</updated><entry><title>How to Programmatically Set Permissions on Files/Folders in a SharePoint Document Library</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2007/11/15/how-to-programmatically-set-permissions-on-files-folders-in-a-sharepoint-document-library.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2007/11/15/how-to-programmatically-set-permissions-on-files-folders-in-a-sharepoint-document-library.aspx</id><published>2007-11-16T03:35:00Z</published><updated>2007-11-16T03:35:00Z</updated><content type="html">&lt;P&gt;Yep, had to figure this out since I'm still working with SharePoint stuff.&amp;nbsp; I couldn't find any "HowTo's," code samples, tricks, hints, or anything else really helpful on this.&amp;nbsp; Just a bunch of other folks attemptint to do the same thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This is one of those things where the answer looks simple and seems like it should have been apparent from the start.&amp;nbsp; Alas I couldn't see it in the beginning either. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here's the magic code:&lt;FONT size=2&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// get a reference to the folder (this assumes path points to a valid folder)&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #2b91af; FONT-FAMILY: 'Arial','sans-serif'"&gt;SPFolder&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt; folder = &lt;SPAN style="COLOR: #2b91af"&gt;SharePointConfiguration&lt;/SPAN&gt;.Site.GetFolder(path);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// get a reference to the Sharepoint group collection&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #2b91af; FONT-FAMILY: 'Arial','sans-serif'"&gt;SPGroupCollection&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt; spc = &lt;SPAN style="COLOR: #2b91af"&gt;SharePointConfiguration&lt;/SPAN&gt;.Site.SiteGroups;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// get a reference to the group who’s permissions you want to modify for the folder above&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #2b91af; FONT-FAMILY: 'Arial','sans-serif'"&gt;SPGroup&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt; group = spc[groupName];&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// create a role assignment from the group reference&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #2b91af; FONT-FAMILY: 'Arial','sans-serif'"&gt;SPRoleAssignment&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt; roleAssignment = &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;SPRoleAssignment&lt;/SPAN&gt;((&lt;SPAN style="COLOR: #2b91af"&gt;SPPrincipal&lt;/SPAN&gt;)group);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// break role inheritance for folders/files because they will be having permissions separate from their parent file/folder&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;folder.Item.BreakRoleInheritance(&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// update the role assignments for the group by adding the permissionSet “TestPermissionLevel” which is a custom&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// permissionset I created manually…you can easily use any of the built-in permission sets&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;roleAssignment.RoleDefinitionBindings.Add(&lt;SPAN style="COLOR: #2b91af"&gt;SharePointConfiguration&lt;/SPAN&gt;.Site.RoleDefinitions[&lt;SPAN style="COLOR: #a31515"&gt;"Test Permission Level"&lt;/SPAN&gt;]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'"&gt;// apply the new roleassignment to the folder.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;You can do this at the listitem level if desired (i.e. this could be SPfile.Item…. instead of SPFolder.Item)&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;folder.Item.RoleAssignments.Add(roleAssignment);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6281481" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/robgruen/archive/tags/SharePoint/default.aspx" /><category term="MOSS" scheme="http://blogs.msdn.com/robgruen/archive/tags/MOSS/default.aspx" /></entry><entry><title>Referencing Sharepoint Assemblies on x64bit Installs causes build errors for ASP.NET apps (in VS.NET 2005)</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2007/08/17/referencing-sharepoint-assemblies-on-x64bit-installs-causes-build-errors-for-asp-net-apps-in-vs-net-2005.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2007/08/17/referencing-sharepoint-assemblies-on-x64bit-installs-causes-build-errors-for-asp-net-apps-in-vs-net-2005.aspx</id><published>2007-08-18T01:39:00Z</published><updated>2007-08-18T01:39:00Z</updated><content type="html">&lt;P&gt;You may encounter the following error if you are trying to build a ASP.NET application or web service on a x64bit machine where Sharepoint is installed:&lt;/P&gt;
&lt;P style="COLOR: red"&gt;&lt;EM&gt;Error&amp;nbsp;1&amp;nbsp;Could not load file or assembly 'Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.&amp;nbsp;C:\Documents and Settings\robgruen\My Documents\Visual Studio 2005\WebSites\MyWebService\Web.Config&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;What happens is that the ASP.NET compiler is a 32bit process and tries to load 32 bit assemblies.&amp;nbsp; Since you're on a 64 bit box and the Sharepoint install NGENs it's asseblies, there are only 64 bit assemblies available.&amp;nbsp; This causes the compiler to not load the referenced assemblies (Microsoft.Sharepoint.*.dll) and causes the error shown even though the assemblies are in the GAC, bin folder, etc.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;You can fix this problem by placing 32bit versions of the referenced assemblies in the bin folder of your web application.&amp;nbsp; Unfortunately IL versions of the Sharepoint dlls do not ship with the Sharepoint SDK so you'll have to find a 32 bit install of Sharepoint where you can grab the dlls from.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4437629" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="Misc .Net Runtime" scheme="http://blogs.msdn.com/robgruen/archive/tags/Misc+.Net+Runtime/default.aspx" /><category term="Debugging" scheme="http://blogs.msdn.com/robgruen/archive/tags/Debugging/default.aspx" /></entry><entry><title>Installing Displays #5 &amp; #6 on my workstation</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2007/01/24/installing-displays-5-6-on-my-workstation.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2007/01/24/installing-displays-5-6-on-my-workstation.aspx</id><published>2007-01-25T03:41:00Z</published><updated>2007-01-25T03:41:00Z</updated><content type="html">&lt;P&gt;So I get my third dual head card in the mail the other day and after two days of patient waiting I took the plunge to install it.&amp;nbsp; Well, to make a long story shorter, it took me all day to get working.&amp;nbsp; Typically you just add the video cards and voila, things work without a hitch, well, not this time.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;What I thought was going to be an easy thing was definitely not.&amp;nbsp; Putting the video card in and installing the drivers went fine but when I went to the display properties settings dialog I got a very bogus error message:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The currently selected graphics display driver cannot be used. It was written for a previous version of Windows NT, and is no longer compatible with the current version of Windows NT. &lt;BR&gt;&lt;BR&gt;The system has been started using the default VGA driver. &lt;BR&gt;&lt;BR&gt;Please contact your hardware manufacture to get an upgraded driver, or select one of the Microsoft provided drivers. &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, I know this error message is bogus because the video card works by itself in the system and the drivers are WHQL certified.&amp;nbsp; When I opened up the device manager it stated "this device is working properly." So I know the error was just hiding the true cause of the problem.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;I started playing all the tricks I know with the video card, swapping the PCI bus order, changing PCI/PCIe slots to initalize 1st, nothing worked.&amp;nbsp; What worked was any two combinations of the video cards (they are all heterogenous manufacturers &amp;amp; drivers), but never all three at once.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I finally came across the holy grail of my problem when reading display driver documentation.&amp;nbsp; It turns out that display adapters are given a certain slice of memory to load in and if the total size of the drivers exceeds this allotment the driver won't load.&amp;nbsp; Hence why two cards always worked but the third card always failed.&amp;nbsp; You can set a registry key to change the default memory footprint and increase it such that you have enough space for the drivers to load.&amp;nbsp; I first change the value to 16MB, which should be enough for most folks having this problem, and then subsequently to 32MB before I was able to run all six displays on my machine without a hitch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;So, if you are getting the above error message when going to the settings tab of your machine and have multiple video drivers installed and have already tried &lt;A class="" href="http://support.microsoft.com/kb/165318" mce_href="http://support.microsoft.com/kb/165318"&gt;Q165318&lt;/A&gt;, set the following registry value (please make sure your system's backed up before you play with this registry setting):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\SessionImageSize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;DWORD 0x10&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1524611" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="Debugging" scheme="http://blogs.msdn.com/robgruen/archive/tags/Debugging/default.aspx" /></entry><entry><title>Installing the MouseWheelFix  (Q837910) on 64bit editions of Windows</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2007/01/24/installing-the-mousewheelfix-q837910-on-64bit-editions-of-windows.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2007/01/24/installing-the-mousewheelfix-q837910-on-64bit-editions-of-windows.aspx</id><published>2007-01-25T03:37:00Z</published><updated>2007-01-25T03:37:00Z</updated><content type="html">&lt;P&gt;To install the &lt;A class="" title=MouseWheelFix href="http://support.microsoft.com/?id=837910" mce_href="http://support.microsoft.com/?id=837910"&gt;MouseWheelFix&lt;/A&gt;&amp;nbsp;on a 64 bit edition of Windows you need to place the registry key entries in the 32 bit node of the registry.&amp;nbsp; This means the registry keys should be &lt;STRONG&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft...&lt;/STRONG&gt; instead of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft...&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As usual, happy scrolling!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1524535" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author></entry><entry><title>How Can You Update Your Computer When the Thing That Updates Your Computer Is Broken?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2006/07/26/679763.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2006/07/26/679763.aspx</id><published>2006-07-27T05:42:00Z</published><updated>2006-07-27T05:42:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Simple, YOU CAN'T!!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;For a while now my computer's &lt;A href="http://support.microsoft.com/?kbid=306525"&gt;Automatic Updates&lt;/A&gt; has been broken.&amp;nbsp; No new downloads have appeared, the control panel icon is missing, and the Windows Update site can't install the updated ActiveX&amp;nbsp;control.&amp;nbsp; Every time&amp;nbsp;I go to the site it tries to update the WU client and I keep getting this 0x800703E3 funky error code.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://inetexplorer.mvps.org/archive/wuc.htm"&gt;&lt;FONT face=Verdana&gt;Windows Update Codes&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana&gt;&amp;nbsp;- My error is pretty cryptic: &lt;FONT color=#006400&gt;"The I/O operation has been aborted because of either a thread exit or an application request"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;I tried once already to fix it a while back but no luck so I just lived without it.&amp;nbsp; Well, now I can't access certain resources since some security policies that I'm subject too aren't installed on my box.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;...Darn, I should have fixed the WU problem when I had the chance.&amp;nbsp; Being stuck in IT limbo isn't fun! I didn't want to waste more of my time or some support engineer's time so I resigned myself to fix my own problem.&amp;nbsp; Go me!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;I whipped out my &lt;A href="http://www.swissarmy.com/"&gt;Swiss Army&lt;/A&gt; IT-Problem-Solver&amp;nbsp;and selected the &lt;A href="http://www.sysinternals.com/utilities/filemon.html"&gt;FileMon tool&lt;/A&gt;.&amp;nbsp; Clearly visible to me were the marks from the last problem conqured by this device, in the include filter I could see &lt;EM&gt;"de*.exe"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;I quickly configured the tool for this operation by setting the filter to "iexplore.exe" and turned on the capture.&amp;nbsp; Then, I navigated the browser to &lt;A href="http://windowsupdate.microsoft.com"&gt;http://windowsupdate.microsoft.com&lt;/A&gt; and waited impatiently for the ugly beast to appear.&amp;nbsp; "There!" I whispered then snickered as I switched back to filemon and stopped the capture.&amp;nbsp; I swiftly began searching for anything out of the ordinary.&amp;nbsp; I was expecting to see some ACC_DENIED or FILE NOT FOUND errors but nothing.&amp;nbsp; There appeared to be no suspicious entries until about half way up the log...at row 9087 I saw it, my first real clue:&amp;nbsp; DEVICE DATA ERROR, and another ar row 9084:&amp;nbsp; IN PAGE ERROR.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;"Hmmmm..." I thought as I looked at the file name: c:\windows\system32\&lt;FONT color=#ff1493&gt;wuaucpl.cpl&lt;/FONT&gt;.&amp;nbsp; Immediately I was able to recall what I know and what I could infer about this file:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face=Verdana&gt;The "WU" portion of the file most likely stands for "Windows Update".&amp;nbsp; I quick check on the &lt;A href="http://support.microsoft.com/dllhelp"&gt;dll help database&lt;/A&gt; could verify it for sure but I skipped that.&lt;/FONT&gt; 
&lt;LI&gt;&lt;FONT face=Verdana&gt;The extension CPL is used for control panel icons.&amp;nbsp; These files are actually executables with just a different extension.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Given these facts I browsed to the file with windows explorer and tried to launch the exe (wuaucpl.cpl).&amp;nbsp; When I launched it I got an error:&amp;nbsp; "Failed to launch executable due to an exception" or something along those lines.&amp;nbsp; I didn't write the error message down because I was on to something and wasn't thinking clearly.&amp;nbsp; Sorry for all you Googler's, &lt;EM&gt;et. al. &lt;/EM&gt;out there.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;This &lt;STRONG&gt;was&lt;/STRONG&gt; my smoking gun, a bad file (or bad sector on the disk where this file got put last time I defragged).&amp;nbsp; All I had to do was replace the file with a good image of it.&amp;nbsp; &lt;/FONT&gt;&lt;FONT face=Verdana&gt;If I were smart, and I'm not, I would have done a restore point when I first got this error.&amp;nbsp; That would have easily restored the file to it's original shine.&amp;nbsp; Unfortunately, again since I'm not smart, that restore point is so far gone not even a terrabyte worth of restore points could have kept track of it. Well, maybe 1 TB, but certainly not 1 GB worth!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Luckily I'm a computer nerd and had a secondary computer around where I could just copy this file.&amp;nbsp; Thankfully the donor computer was of a similar breed and the file name, timestamp, and all the other things Windows File Protection cares about was the same so I could just overwrite the existing file and be on my way.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Here I sit writing this entry as my computer happy checks for updates and downloads the...hold on a sec&amp;nbsp;while I check....127.7MB of updates needed for my computer.&amp;nbsp; I'm sure there will be a second, if not third batch by the time all of the updates are applied.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;So kids, what is the moral of the story?&amp;nbsp; If you're getting error number 0x800703E3&amp;nbsp;when visiting windows update, use filemon to see what file the update is failing on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Happy updating ever after!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=679763" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="Debugging" scheme="http://blogs.msdn.com/robgruen/archive/tags/Debugging/default.aspx" /></entry><entry><title>MIX06: Playing in the Sandbox - Playing nice with the other kids</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2006/03/21/556881.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2006/03/21/556881.aspx</id><published>2006-03-21T22:07:00Z</published><updated>2006-03-21T22:07:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Arial&gt;The Sandbox here at Mix contains all sorts of labs, vista pcs, windows media center, and of course the awesome ultra mobile pcs.&amp;nbsp; :) I got to play with the devices and talk to Lora who was tending the devices and answering questions.&amp;nbsp; Unfortunatley I had to share her time and the time of device as there are lots of people wanting to play with them.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;Here are my thoughts on the devices so far (I've had about 30 minutes total on them):&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;Of the devices so far the &lt;A href="http://www.founder.com"&gt;Founder device&lt;/A&gt;&amp;nbsp;is my favorite.&amp;nbsp; It's lightweight, has great ergonomics, and is lightning fast.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;They were all prototype devices so there is some work left to be done.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;The &lt;A href="http://www.asus.com"&gt;Asus&lt;/A&gt; did show some wear on the buttons (the coloroing was worn off)&amp;nbsp;but it was at CeBIT in Germany so I'm sure thousands of people have touched the device.&amp;nbsp; To me that means that'll hold up well.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;The key typing glyphs are hard to get used to but I think will be quite usable once you get the hang of it.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;The &lt;A href="http://www.samsung.com"&gt;Samsung&lt;/A&gt;&amp;nbsp;had a vent for the cpu fan right under the left hand which was not very comfortable and doesn't encourage lengthy use of the device since your hand will definitley start sweating.&amp;nbsp; They should probably invert the CPU and put vents on the back of the device, or along the top edge, instead of along the side.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;The touch screen often goes forgotten as I kept wanting to use the stylus but I guess that's because I'm not used to having the luxury of a touch screen.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;I'm left handed so trying to use windows journal or one note was tough because of the touch screen...I had to keep my hand off of the display otherwise I'd freek the cursor out when the side of my hand touched the display surface.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial&gt;There are products you can use to connect the device to a larger display.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;To sum it all up:&amp;nbsp; &lt;STRONG&gt;:) Bye bye laptop!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=556881" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="MIX06" scheme="http://blogs.msdn.com/robgruen/archive/tags/MIX06/default.aspx" /></entry><entry><title>MIX06 - Lunch time</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2006/03/20/555874.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2006/03/20/555874.aspx</id><published>2006-03-20T23:14:00Z</published><updated>2006-03-20T23:14:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Arial&gt;We were fed quite well, thanks to all of the folks that made the food decisions.&amp;nbsp; My tummy is happy!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;The keynote was pretty cool, Tim O'Reilly's interview with BillG went really well.&amp;nbsp; Bill had great answers and everyone was happy with his responses.&amp;nbsp; I'm sure others will blog about it in more detail than myself.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;I'm having to use one of the terminals set up here to blog since my lappy is&amp;nbsp;in the hotel room.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=555874" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="MIX06" scheme="http://blogs.msdn.com/robgruen/archive/tags/MIX06/default.aspx" /></entry><entry><title>Mix Registration - "done, check"</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2006/03/20/555304.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2006/03/20/555304.aspx</id><published>2006-03-20T07:33:00Z</published><updated>2006-03-20T07:33:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Tahoma&gt;MIX06 is sold out!&amp;nbsp; 1900 attendees have come to Vegas to talk about the future of their respective portions of the internet.&amp;nbsp; In fact, I think it's already started since I heard some conversations on the flight in.&amp;nbsp; The check-in area has about a dozen lanes, looks like we were smart to check in tonight instead of early in the morning.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma&gt;Since I'm registered as an "attendee" I got a bag of gifts including VS.NET 2005 standard edition, that'll be a nice gift to one of my buddies.&amp;nbsp; There's also a notebook (yes, paper for hand written notes) and various other items.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma&gt;Should be a grand day tomorrow!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=555304" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="MIX06" scheme="http://blogs.msdn.com/robgruen/archive/tags/MIX06/default.aspx" /></entry><entry><title>MIX06 - So it begins</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2006/03/19/554687.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2006/03/19/554687.aspx</id><published>2006-03-19T08:50:00Z</published><updated>2006-03-19T08:50:00Z</updated><content type="html">&lt;P&gt;Well, I just stepped off of a 5.5 hour flight got a rental car for 16 hours and then I'm back on another flight to Las Vegas all within a 24 hour time span.&lt;/P&gt;
&lt;P&gt;More to follow!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=554687" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="MIX06" scheme="http://blogs.msdn.com/robgruen/archive/tags/MIX06/default.aspx" /></entry><entry><title>VB6 MouseWheelFix - Now works in SDI Mode!</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2006/02/22/537288.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="54464" href="http://blogs.msdn.com/robgruen/attachment/537288.ashx" /><id>http://blogs.msdn.com/robgruen/archive/2006/02/22/537288.aspx</id><published>2006-02-23T00:29:00Z</published><updated>2006-02-23T00:29:00Z</updated><content type="html">&lt;P&gt;A VERY large thank you goes out to Kevin Willimason for taking the time to hook (no pun intended)&amp;nbsp;us all up.&amp;nbsp; Kevin rewrote a majority of the add-in so it works in SDI mode.&lt;/P&gt;
&lt;P&gt;We are in the process of getting the &lt;A href="http://support.microsoft.com/?id=837910"&gt;KB article &lt;/A&gt;udpated.&amp;nbsp; In the mean time you can grab the updated source and binaries from this post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy Scrolling!!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=537288" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author></entry><entry><title>Connection_Dropped Error in the HTTPERR Log for IIS</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2006/01/03/508923.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2006/01/03/508923.aspx</id><published>2006-01-04T00:15:00Z</published><updated>2006-01-04T00:15:00Z</updated><content type="html">&lt;P&gt;I was trying to install a web service on a freshly build W2k3 box.&amp;nbsp; I checked the event log and found:&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event code: 3005 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event message: An unhandled exception has occurred. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event time: 1/3/2006 12:50:03 PM &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event time (UTC): 1/3/2006 8:50:03 PM &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event ID: e85fe2d9c6c84f9287d5bed943869d42 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event sequence: 1 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event occurrence: 1 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Event detail code: 0 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Application information: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Application domain: /LM/w3svc/1/ROOT/DirectoryLookup-7-127807950038139240 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Trust level: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Application Virtual Path: /DirectoryLookup &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Application Path: c:\Inetpub\wwwroot\DirectoryLookup\DirectoryLookup\ &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Machine name: localhost&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Process information: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Process ID: 2244 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Process name: w3wp.exe &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Account name: NT AUTHORITY\NETWORK SERVICE &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Exception information: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Exception type: HttpException &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Exception message: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Request information: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Request URL: http://localhost/DirectoryLookup/DirectoryLookup.asmx &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Request path: /DirectoryLookup/DirectoryLookup.asmx &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;User host address: 127.0.0.1 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;User: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Is authenticated: False &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Authentication Type: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Thread account name: NT AUTHORITY\NETWORK SERVICE &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Thread information: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Thread ID: 1 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Thread account name: NT AUTHORITY\NETWORK SERVICE &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Is impersonating: False &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Stack trace: at System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ffa500 size=1&gt;Custom event details: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#ffa500&gt;For more information, see Help and Support Center at&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding permissions to the folder specified in the error fixed the problem.&amp;nbsp; HTH someone else out there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=508923" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="Debugging" scheme="http://blogs.msdn.com/robgruen/archive/tags/Debugging/default.aspx" /></entry><entry><title>Playing Smart Devices...</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2005/12/29/508099.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2005/12/29/508099.aspx</id><published>2005-12-30T03:00:00Z</published><updated>2005-12-30T03:00:00Z</updated><content type="html">&lt;P&gt;Well, the main project I was working on suffered a minor setback when the HDD on the box died.&amp;nbsp; Until that get's settled I get to work with a smartphone on a cool little project.&amp;nbsp; Unfortunately the smartphone also had it in for me. :)&amp;nbsp; I got the following error:&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000 size=1&gt;Error&amp;nbsp;1&amp;nbsp;The device security configuration disallowed the connection. Ensure that you have the appropriate certificates on your device for development. Review your SDK documentation for proper security settings for connecting to this device.&amp;nbsp;Device Connectivity Component&amp;nbsp;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000 size=1&gt;&lt;FONT color=#000000 size=3&gt;This error was quickly suppressed by doing the solution found here:&amp;nbsp; &lt;A href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=23899&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=23899&amp;amp;SiteID=1&lt;/A&gt;.&amp;nbsp; (I reinstalled vs_emulator.exe instead of going to the download site).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000 size=1&gt;&lt;FONT color=#000000 size=3&gt;I figured I'd mention all of this since I've been finding the "Answer" feature of the forums really really nice.&amp;nbsp; It's saved me a lot of time reading through all of the posts.&amp;nbsp; Props to whoever is responsible for putting that feature together.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=508099" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author></entry><entry><title>Here's a cryptic RegAsm Error you might see with VS.NET 2005</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2005/12/19/505650.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2005/12/19/505650.aspx</id><published>2005-12-20T01:06:00Z</published><updated>2005-12-20T01:06:00Z</updated><content type="html">&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffff00" size=1&gt;Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42&lt;BR&gt;Copyright (C) Microsoft Corporation 1998-2004.&amp;nbsp; All rights reserved.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffff00" size=1&gt;RegAsm : error RA0000 : Could not load file or assembly 'MyAssembly, Version=0.0.&lt;BR&gt;0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Exception&lt;BR&gt;&amp;nbsp;from HRESULT: 0xE0434F4D&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Now I know my assembly has version 1.0.0.0 so this doesn't make sense....nor did the fact that using &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrffusionlogviewerfuslogvwexe.asp"&gt;fuslogvw&lt;/A&gt; didn't show any assembly binding failures and &lt;A href="http://www.sysinternals.com/utilities/filemon.html"&gt;filemon &lt;/A&gt;showed that the file is being located and read from without any problems.&amp;nbsp; Well, now what?&amp;nbsp; Create a simple .NET project (doesn't matter what), and set the debugging options to launch an external program (c:\windows\microsoft.net\framework\v2.0.50727\regasm.exe) and set the command line arguments to pass in the dll you're trying to register.&amp;nbsp; Also configure the debugger to break when excpetions are thrown.&lt;/P&gt;
&lt;P&gt;Run the project and the IDE will break on the underlying exception that's causing the whole thing to bust.&amp;nbsp; In my case it was this exception:&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000 size=1&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DLL 'MyAssembly.dllis attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=505650" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="Debugging" scheme="http://blogs.msdn.com/robgruen/archive/tags/Debugging/default.aspx" /></entry><entry><title>Ain't Programming Fun!</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2005/12/16/504897.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2005/12/16/504897.aspx</id><published>2005-12-17T02:54:00Z</published><updated>2005-12-17T02:54:00Z</updated><content type="html">&lt;P&gt;So I was upgrading a project from VS.NET 2003 to VS.NET 2005 (v2.0 of the framework) and I kept hitting this assert:&amp;nbsp; "&lt;A class=KeywordHighlight name=#h3&gt;&lt;FONT color=#008000&gt;_CrtIsValidHeapPointer(pUserData)&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#008000&gt;.&lt;/FONT&gt;"&amp;nbsp; There were several postings out and about but they were all for previous versions of the framework, nothing to do with upgrading to whidbey.&amp;nbsp; After a long and unsuccessfull jaunt to change my C++ syntax from &lt;FONT color=#ff1493&gt;/clr:oldsyntax&lt;/FONT&gt; to just &lt;FONT color=#ff1493&gt;/clr &lt;/FONT&gt;&lt;FONT color=#000000&gt;along with&amp;nbsp;many other now forgotten changes, I&amp;nbsp;made the following project change:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I changed the code generation property of "runtime library" from /MDd to /MD...and voila, gone!&amp;nbsp; Hopefully this tidbit will save someone an afternoons worth of work!&lt;/P&gt;
&lt;P&gt;Now I get to go stand in line at BestBuy this weekend and hopefully acquire a XBOX 360. [:D]&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=504897" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="Misc .Net Runtime" scheme="http://blogs.msdn.com/robgruen/archive/tags/Misc+.Net+Runtime/default.aspx" /></entry><entry><title>Getting VSIP to browse</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/robgruen/archive/2005/11/23/496508.aspx" /><id>http://blogs.msdn.com/robgruen/archive/2005/11/23/496508.aspx</id><published>2005-11-24T03:01:00Z</published><updated>2005-11-24T03:01:00Z</updated><content type="html">&lt;P&gt;The VS.NET SDK (a.k.a. VSIP package) lacks the wide spread use and documentation that other SDKs enjoy.&amp;nbsp; To make a change to that here's a little snippet that shows you how to open the VS.NET webbrowser and browse to a particular page:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT color=#008080&gt;IVsWebBrowsingService&lt;/FONT&gt; web = (&lt;FONT color=#008080&gt;IVsWebBrowsingService&lt;/FONT&gt;)Vsip.VsPackage.&lt;FONT color=#008080&gt;VsPackage&lt;/FONT&gt;.GetGlobalService(&lt;FONT color=#0000ff&gt;typeof&lt;/FONT&gt;(&lt;FONT color=#008080&gt;IVsWebBrowsingService&lt;/FONT&gt;));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;if&lt;/FONT&gt; (web == &lt;FONT color=#0000ff&gt;null&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#008080&gt;IVsWebBrowser&lt;/FONT&gt; ppBrowser;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#008080&gt;IVsWebBrowserUser&lt;/FONT&gt; pUser = (&lt;FONT color=#008080&gt;IVsWebBrowserUser&lt;/FONT&gt;)Vsip.VsPackage.&lt;FONT color=#008080&gt;VsPackage&lt;/FONT&gt;.GetGlobalService(&lt;FONT color=#0000ff&gt;typeof&lt;/FONT&gt;(&lt;FONT color=#008080&gt;IVsWebBrowserUser&lt;/FONT&gt;));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#008080&gt;IVsWindowFrame&lt;/FONT&gt; ppFrame;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#008080&gt;Guid&lt;/FONT&gt; g = &lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#008080&gt;Guid&lt;/FONT&gt;();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;g = Vsip.VsPackage.&lt;FONT color=#008080&gt;GuidList&lt;/FONT&gt;.guidToolWindowPersistance;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;uint&lt;/FONT&gt; flags = (&lt;FONT color=#0000ff&gt;uint&lt;/FONT&gt;)(&lt;FONT color=#008080&gt;__VSCREATEWEBBROWSER&lt;/FONT&gt;.VSCWB_ForceNew | &lt;FONT color=#008080&gt;__VSCREATEWEBBROWSER&lt;/FONT&gt;.VSCWB_AutoShow);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;web.Navigate(URL, flags, &lt;FONT color=#0000ff&gt;out&lt;/FONT&gt; ppFrame);&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=496508" width="1" height="1"&gt;</content><author><name>robgruen</name><uri>http://blogs.msdn.com/members/robgruen.aspx</uri></author><category term="Misc .Net Runtime" scheme="http://blogs.msdn.com/robgruen/archive/tags/Misc+.Net+Runtime/default.aspx" /></entry></feed>