<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mcwtech.com/CS/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Adventures in Visual Studio Development</title><subtitle type="html">Making Visual Studio easier to use, one blog entry at a time</subtitle><id>http://mcwtech.com/CS/blogs/rgreen/atom.aspx</id><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/default.aspx" /><link rel="self" type="application/atom+xml" href="http://mcwtech.com/CS/blogs/rgreen/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.20917.1142">Community Server</generator><updated>2005-09-15T18:26:00Z</updated><entry><title>Philly .NET Workflow sample</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2007/04/25/503.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2007/04/25/503.aspx</id><published>2007-04-25T21:11:00Z</published><updated>2007-04-25T21:11:00Z</updated><content type="html">&lt;P&gt;&lt;A href="/Robert/Code/Workflow/Real%20World%20Applications/Real%20World%20Workflow%20Application.zip"&gt;Here&lt;/A&gt; is the updated version of the sample I showed at Philly .NET on April 18. Thanks everybody for a fun time!&lt;/P&gt;
&lt;P&gt;The sample is an order processing state machine workflow. It consists of two projects. &lt;/P&gt;
&lt;P&gt;OrderProcessing contains the state machine workflow, the interface the host and workflow use to communicate, and the Windows Form used to manage orders.&lt;/P&gt;
&lt;P&gt;CreditCardProcessing is a sequential workflow used by the credit card company to pre-approve charges and then approve or deny once it is time to ship the product. The workflow is exposed as a Web service to OrderProcessing. &lt;/P&gt;
&lt;P&gt;In the VB folder is the VB code. I may do a C# version for the next rev. In the Data folder is the database used in the sample.&lt;/P&gt;
&lt;P&gt;Because the workflow uses transactions, it uses persistence. So you need to setup the SqlPersistence database. The docs tell you how to do that. &lt;/P&gt;
&lt;P&gt;Let me know what you think. Let me know what doesn't work!&lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=503" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>Visual Studio 2005 SP1 is here</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/15/277.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/15/277.aspx</id><published>2006-12-15T20:47:00Z</published><updated>2006-12-15T20:47:00Z</updated><content type="html">&lt;P&gt;Download it from &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&amp;amp;displaylang=en"&gt;here&lt;/A&gt;. Read the Release notes &lt;A href="http://support.microsoft.com/default.aspx?scid=928957"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=277" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>Moving Development Work to Vista, Part 3</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/15/276.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/15/276.aspx</id><published>2006-12-15T20:33:00Z</published><updated>2006-12-15T20:33:00Z</updated><content type="html">&lt;P&gt;Well&amp;nbsp;I tried. At the end of Part 2, I had put Vista on my desktop computer and installed Office 2007, SQL 2005 and VS 2005. So far so good.&lt;/P&gt;
&lt;P&gt;Then I installed Vista on my IBM/Lenovo T43p laptop. However, although my desktop could see the laptop on the network, the laptop could not see the desktop machine. Which meant I could not print from the laptop or share files. No good. &lt;/P&gt;
&lt;P&gt;Then I tried to synch my Pocket PC and Smartphone with the desktop computer using Windows Mobile Device Center, which is in Beta 3. Neither device synched. No good. &lt;/P&gt;
&lt;P&gt;So I have now decided to punt on Vista until more drivers come out and more of the add-on software is finished. The consumer launch of Vista is end of January I believe, so using it full time right now is a bit premature. &lt;/P&gt;
&lt;P&gt;I will continue to play with it, but it is just not ready for me to use full time. :( &lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=276" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>Setting security for VSTO Addins as part of the install</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/15/275.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="590577" href="http://mcwtech.com/CS/blogs/rgreen/attachment/275.ashx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/15/275.aspx</id><published>2006-12-15T19:01:00Z</published><updated>2006-12-15T19:01:00Z</updated><content type="html">&lt;P&gt;Last night I presented VSTO 2005 Second Edition to the &lt;A href="http://utahdnug.org/cs2/default.aspx"&gt;Utah .NET User Group&lt;/A&gt;. I built a simple Word application level add-in and we then talked about deploying it. And that immediately led us to talking about security. &lt;/P&gt;
&lt;P&gt;VSTO overrides the default CLR security policy, which is that all code running in the My Computer zone has FullTrust. This is fine for a .exe. You double click on a .exe file and you are explicity granting permission for code to run. But if you open a Word doc or Excel workbook or mail message, you are not necessarily granting permission for code to run. Therefore, the&amp;nbsp;VSTO runtime requires you to explicitly grant permission to a customization. &lt;/P&gt;
&lt;P&gt;In a demo, you can do this with caspol from the Command Prompt or you can do it with the graphical .NET Framework 2.0 Configuration tool. But when you deploy to users, you would like the security permissions to be added as part of the install. &lt;/P&gt;
&lt;P&gt;When you create a VSTO add-in, VS adds a Setup project. However, the install package you build does not add a security policy for the add-in. You can add a custom action to the Setup project to grant permission. To do that:&lt;/P&gt;
&lt;P&gt;1. Add a new Class Library project to the VSTO add-in solution. &lt;BR&gt;2. Add an Installer class to this project. &lt;BR&gt;3. In that class, add code to assign permissions. (Check out a very good example of this class code on Mads Nissen's blog - both &lt;A href="http://weblogs.asp.net/mnissen/articles/429117.aspx"&gt;VB &lt;/A&gt;and &lt;A href="http://weblogs.asp.net/mnissen/articles/427490.aspx"&gt;C#&lt;/A&gt; versions). &lt;BR&gt;4. Build that project. &lt;BR&gt;5. Use the Custom Action editor to add a custom action. In the Install node, add the primary output (the DLL) from the installer class library.&lt;BR&gt;6. Build the Setup project. &lt;BR&gt;7. Run the install and voila, your add-in is installed and has permission to run. &lt;/P&gt;
&lt;P&gt;The solution in the attached zip file is the VB version of the Word add-in, the installer project and the Setup project. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=275" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author><category term="VSTO" scheme="http://mcwtech.com/CS/blogs/rgreen/archive/tags/VSTO/default.aspx" /></entry><entry><title>Moving Development Work to Vista, Part 2</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/06/270.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/06/270.aspx</id><published>2006-12-06T19:54:00Z</published><updated>2006-12-06T19:54:00Z</updated><content type="html">&lt;P&gt;Before moving on to SQL Express SP2, I decided to finish with VS by installing the Pocket PC and Smartphone 5.0 SDKs. On XP, you need to install ActiveSync first. So I started to install ActiveSync 4.2 and, what do you know, ActiveSync is blocked on Vista. &lt;/P&gt;&lt;IMG src="/Robert/Images/ActiveSync%20Vista%20Compatibility%20Warning.gif" border=0&gt; 
&lt;P&gt;I found the Windows Mobile Device Center &lt;A href="http://www.microsoft.com/windowsmobile/devicecenter.mspx"&gt;here&lt;/A&gt;. It is the Beta 3 Release for Vista RC1. I installed it. &lt;/P&gt;
&lt;P&gt;I also notice that with this you can synch content with a Windows Mobile 2003 or 5.0 device. So, my Pocket PC running version 4.20.0 that syncs fine on XP won't synch on Vista, eh? Good to know. &lt;/P&gt;
&lt;P&gt;So then I started installing the Pocket PC SDK and it complained that ActiveSync 4.0 is not installed on the computer and is required. You can ignore that message, which I did. The install of that SDK, and the Smartphone as well, went fine and I could create a simple device application. &lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=270" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author><category term="Vista" scheme="http://mcwtech.com/CS/blogs/rgreen/archive/tags/Vista/default.aspx" /></entry><entry><title>Moving Development Work to Vista</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/06/269.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/06/269.aspx</id><published>2006-12-06T17:11:00Z</published><updated>2006-12-06T17:11:00Z</updated><content type="html">&lt;P&gt;Now that it has shipped, it is time to move to Vista for my primary development work. My plan is to use Vista and Office 2007 on a daily basis on both my desktop and laptop, and to have secondary drives with XP and Office 2003. Yesterday, I started with the desktop.&lt;/P&gt;
&lt;P&gt;I installed Vista Ultimate on a clean drive.&amp;nbsp;And of course, I once again&amp;nbsp;forgot that IIS is not installed by default, even though I have installed Windows 10-15 times since this became the default. Happily, SQL Server and Visual Studio remind me of this when I install them. &lt;/P&gt;
&lt;P&gt;When you turn on the IIS feature in Vista (notice that you turn this feature on, you don't install it &lt;img src="/CS/emoticons/emotion-1.gif" alt="Smile" /&gt;), don't forget to also turn on the Web Management Tools feature. IIS 7 ships with Vista and has a snazzy new UI for IIS Manager. Also, check out &lt;A href="http://www.iis.net/"&gt;www.iis.net&lt;/A&gt;, Microsoft's IIS site. Lots of good articles there. &lt;/P&gt;
&lt;P&gt;Next, I installed SQL Server 2005, which incorrectly&amp;nbsp;informed me that IIS was not installed. Who are you going to believe, your own eyes or some dialog? Shortly thereafter, I got this message:&lt;/P&gt;&lt;IMG src="/Robert/Images/SQL%20Vista%20Compatibility%20Warning.gif" border=0&gt; 
&lt;P&gt;It turns out that SQL 2005 is not supported on Vista without SQL SP2. That's fine. SQL shipped a year ago and I will happily install a Service Pack. However, SQL SP2 is not done yet. It is only available as a CTP (Community Technical Preview). I know that Vista just shipped, and I know that very few people are rushing to put it into production in the first month, but I would have thought that Microsoft's flagship database would be ready to go when Microsoft's flagship OS was done. Maybe I'm just being nit picky and impatient. &lt;/P&gt;
&lt;P&gt;Tossing aside my concerns about using CTPs and my desire to use only shipping software, I finished the SQL install and installed SP2 CTP. It too incorrectly told me IIS was not installed. It also displayed this message:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="/Robert/Images/SQL%20Vista%20Admin%20privileges.gif" border=0&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Prior to Vista, if you were an admin on your computer, you could be an admin on SQL Server using Windows Authentication. However, in Vista, this only happens if you are running as an admin with elevated privileges, which is not the default and is discouraged. So when you install SP2, you should expliciltly add yourself as a SQL&amp;nbsp;admin. Check out the &lt;A href="http://download.microsoft.com/download/2/B/5/2B5E5D37-9B17-423D-BC8F-B11ECD4195B4/ReadmeSQL2005SP2.htm#_windows_vista"&gt;SP2 readme&lt;/A&gt; for more info on this. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL is now installed. Next up is Visual Studio. Once again, there are compatibility issues. &lt;/P&gt;&lt;IMG src="/Robert/Images/VS%20Vista%20Compatibility%20Warning.gif" border=0&gt; 
&lt;P&gt;These issues are being addressed in VS 2005 SP1, which is in non-public beta right now. &lt;/P&gt;
&lt;P&gt;I will post an entry around VS 2005 and Vista soon, but for now, I'll wrap this up. VS installed and then I installed Visual Studio 2005 Tools for Office Second Edition. I still need to install SP2 for SQL Express, which I will do today. &lt;/P&gt;
&lt;P&gt;I'll keep you posted on what I find and how development life in Vista goes. &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=269" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author><category term="Vista" scheme="http://mcwtech.com/CS/blogs/rgreen/archive/tags/Vista/default.aspx" /></entry><entry><title>VSTO 2005 Second Edition talk at Sydney .NET User Group</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/04/268.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/04/268.aspx</id><published>2006-12-04T22:55:00Z</published><updated>2006-12-04T22:55:00Z</updated><content type="html">&lt;P&gt;&lt;SPAN&gt;&lt;FONT face=Tahoma color=#000000&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face=Tahoma color=#000000&gt;This past Friday I spoke at the &lt;A href="http://www.ssw.com.au/ssw/NETUG/Default.aspx"&gt;Sydney .NET Users Group&lt;/A&gt;. The topic was Developing Office 2007 Solutions with Visual Studio Tools for Office Second Edition. First, I would like to thank &lt;A href="http://www.ssw.com.au/SSW/Employees/employeesprofile.aspx?EmpID=AC"&gt;Adam Cogan &lt;/A&gt;for organizing this talk. Second, I would like to thank the folks that came out on a Friday night to hear me talk. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face=Tahoma color=#000000&gt;Because my wife and I had jam packed our Australian vacation, we were only available to speak on a Friday night. From the user group's perspective, an attendance of about 40 people was very low. From my perspective, that was a pretty good sized crowd. I am used to speaking to way less than that. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face=Tahoma color=#000000&gt;You can find the slides and demos for the talk &lt;A href="/2006/devconnections/"&gt;here&lt;/A&gt;. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=268" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>Me on Channel 9</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/04/267.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/04/267.aspx</id><published>2006-12-04T22:32:00Z</published><updated>2006-12-04T22:32:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Tahoma&gt;My wife and I just came back from a whirlwind tour of&amp;nbsp;some of Australia (Sydney, Cairns, Gold Coast and HunterValley). While in the Gold Coast, we stayed with my good buddy &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/charles_sterling/"&gt;&lt;FONT face=Tahoma&gt;Chuck Sterling&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma&gt;. He taped a Screencast with me and &lt;/FONT&gt;&lt;A href="http://channel9.msdn.com/Showpost.aspx?postid=261314"&gt;&lt;FONT face=Tahoma&gt;posted it &lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma&gt;on Channel 9. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma&gt;The screencast was taped with my Sony DCS-P8 digital camera. Chuck then converted the mpeg to a wmv using Windows Media Encoder. It was shot in his dining room and I am in the shadows. Also, the sound isn't that good. I am listening to it now with full volume and can barely hear it. So far, 407 people have viewed it. No comments yet.&lt;/FONT&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000&gt;&lt;FONT face=Tahoma size=2&gt;Addendum: There is nothing wrong with the sound in the video. It was a hardware issue with my computer.&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=267" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>Let the blogging rebegin</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/04/266.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/12/04/266.aspx</id><published>2006-12-04T22:31:00Z</published><updated>2006-12-04T22:31:00Z</updated><content type="html">&lt;FONT face=Tahoma&gt;I, Robert Green, being of relatively sound mind and sound body, promise to start blogging on a regular basis and continue, starting right now. &lt;/FONT&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=266" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>VSLive Orlando session code posted</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/05/22/164.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/05/22/164.aspx</id><published>2006-05-22T16:27:00Z</published><updated>2006-05-22T16:27:00Z</updated><content type="html">&lt;FONT face=Verdana size=2&gt;I have &lt;/FONT&gt;&lt;a href="http://www.mcwtech.com/2006/vslive/orlando/"&gt;&lt;FONT face=Verdana size=2&gt;posted &lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;the sample code and slides for my Data Binding Tasks talk, presented last week at VSLive! in Orlando. All of the demos I wrote are in the zip file, including a few I didn't get to in the talk. &lt;/FONT&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=164" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>Advisor Summit workshop code posted</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2006/04/17/152.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2006/04/17/152.aspx</id><published>2006-04-17T23:26:00Z</published><updated>2006-04-17T23:26:00Z</updated><content type="html">&lt;FONT face=Verdana size=2&gt;I have &lt;/FONT&gt;&lt;a href="http://www.mcwtech.com/advisor/lasvegas"&gt;&lt;FONT face=Verdana size=2&gt;posted &lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;the sample code and slides for my ADO.NET and VSTO workshops, presented at the Advisor .NET Summit last week in Las Vegas. There is also a Word doc with Word, Excel and Outlook VSTO walkthroughs.&lt;/FONT&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=152" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>.NET Developer Association Templates and Snippets Talk</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2005/11/30/135.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2005/11/30/135.aspx</id><published>2005-11-30T17:07:00Z</published><updated>2005-11-30T17:07:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;This past Monday I spoke at the monthly VB meeting of the &lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&lt;A href="http://www.netda.net"&gt;.NET Developers Association&lt;/A&gt; &lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;user group. The talk was Create Your Own Templates and Code Snippets. The slides are posted &lt;/FONT&gt;&lt;a href="http://www.mcwtech.com/2005/usergroups/"&gt;&lt;FONT face=Verdana size=2&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;.&lt;/FONT&gt; &amp;nbsp;&lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=135" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>VSConnections Las Vegas Talks</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2005/11/17/134.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2005/11/17/134.aspx</id><published>2005-11-18T00:11:00Z</published><updated>2005-11-18T00:11:00Z</updated><content type="html">&lt;FONT face=Verdana size=2&gt;I have &lt;/FONT&gt;&lt;a href="http://www.mcwtech.com/2005/connections/vegas/"&gt;&lt;FONT face=Verdana size=2&gt;posted&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;&lt;FONT face=Verdana size=2&gt;the sample code from my XML and ADO.NET talks, as well as the demo script from my Deploying and Versioning talk from last weeks VSConnections in Las Vegas. Enjoy and feel free to ping me with questions or comments.&lt;/FONT&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=134" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>Reinstalling everything again</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2005/11/16/131.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2005/11/16/131.aspx</id><published>2005-11-16T18:37:00Z</published><updated>2005-11-16T18:37:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;A couple of weeks ago I installed the RTM version of Visual Studio 2005. But first, I ran the uninstall program that Microsoft provided. The Readme for VS 2005 lists the steps you need to take, but also provides a link to the uninstall program which purports to do the uninstall for you. I ran that first and then installed VS, on both my desktop and laptop. Both computers have had pre-release versions, including Beta 2 and the Release Candidate (aka RC). The installs ran fine and everything seemed fine. But on both computers VB crashes. Not always, of course. And I can't find a pattern, so there is no repro. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;But to be honest, I don't think the problem is with VS. I think the problem is that I installed the final bits on a hard drive that still had left over goo from the Beta or RC. I think the uninstall tool does not completely remove VS. I think there are left over bits, perhaps registry entries or DLLs, that interfere with the install. I think the only solution is to reformat and start again.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;This sucks. Yes, I know the official guidance from Microsoft is to not install pre-release bits on production machines. And I know the recommendation from my peers is to use VPCs. But a big part of my job as an independent consultant is to use/learn/write about/talk about&amp;nbsp;software before it is released. My 2 computers are my production computers. I don't have the luxury (yet)&amp;nbsp;of a 3rd computer that I can devote to pre-release software. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I don't want to rely solely on VPCs. I love VPCs, but they can be slow. On my desktop I have my VPC images on an external drive and the performance is adequate, although a bit pokey. On my laptop I have 1 drive and running a VPC on it is very slow. Also, VPCs are fragile. I managed to hork an image last week at VSConnections. I was in &lt;A href="http://blogs.msdn.com/amivora/default.aspx"&gt;Ami Vora's &lt;/A&gt;talks on WCF (aka the technology formerly known as Indigo) and I was following along with her demo on my laptop using a VPC that had the WinFx SDK. At the end of her talk I put my laptop into Standby mode and went to lunch. I did not shut down the VPC or put it into Standby mode and when I resumed my laptop the VPC had managed to mangle itself. Some Windows DLL was now not valid and IIS wouldn't run, which meant I couldn't run the WCF demo anymore. So I have to rebuild the VPC. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;My point is that I wish the Visual Studio Setup team would build a complete and reliable clean up tool that would remove VS from a computer. I think they think they did that. I think the tool they built is not complete enough. And I think I should not have to be rebuilding both my laptop and desktop this week to use VS 2005. I hope you join me in asking for more help from the product team in this regard. Thank you for your support. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;P.S. I have discovered a side effect to rebuilding my laptop, which is a T43p from Lenovo (aka the hardware company formerly known as IBM). The copy of Norton AntiVirus on it is good for 90 days and that 90 days apparently restarts when you rebuild the machine by restoring the factory defaults. So if I rebuild my laptop once a quarter it appears I could use Norton without having to purchase it. Not that I would do that, of course. &lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=131" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author></entry><entry><title>The coolest thing I have seen in a long long time</title><link rel="alternate" type="text/html" href="http://mcwtech.com/CS/blogs/rgreen/archive/2005/09/15/116.aspx" /><id>http://mcwtech.com/CS/blogs/rgreen/archive/2005/09/15/116.aspx</id><published>2005-09-16T01:26:00Z</published><updated>2005-09-16T01:26:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;A href="http://www.panopticoncentral.net/"&gt;Paul&lt;/A&gt; showed off some &lt;A href="He then replaced the sample data XML with the following:"&gt;VB 9.0&lt;/A&gt; features today. He showed a lot of Linq demos, both DLinq and XLinq. One of his XLinq demos was tremendously cool. First he showed that VB now natively understands XML literals. You can write code like this&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Dim xmlFrag = _&lt;BR&gt;&amp;nbsp; &amp;lt;Customers&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Customer&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CompanyName&amp;gt;Big Corp&amp;lt;/CompanyName&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;City&amp;gt;BiggeTowne&amp;lt;/City&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Customer&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/Customers&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Then Paul opened an Excel spreadsheet that had a table with sample data as a placeholder. He saved the Excel as XML and then copied and pasted the XML into VB. &lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;He then created the following dLinq code&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Dim rows = _&lt;BR&gt;&amp;nbsp; Select&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;row&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cell&amp;gt;&amp;lt;%= r.Page :&amp;gt;&amp;lt;/cell&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/row&amp;gt;&lt;BR&gt;&amp;nbsp; From r in results&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Now for the coup de grace. He replaced the sample data in the Excel XML with the following:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;%= rows&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Then he wrote out a new spreadsheet&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Dim doc = New XDocument(body) ' body contains the pasted XML from the spreadsheet&lt;BR&gt;doc.Save("Report.xls")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;When he opened Report.xls, he had his Excel spreadsheet populated with the data returned by the query.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;This is so cool!!! Don't automate Excel and put the data in by hand. Don't programmatically have Excel import XML after mapping schemas and all that. Just put the data into the spreadsheet's XML from within VB and then save the XML as a new spreadsheet. I am blown away by this.&lt;/FONT&gt; &lt;/P&gt;&lt;img src="http://mcwtech.com/CS/aggbug.aspx?PostID=116" width="1" height="1"&gt;</content><author><name>RGreen</name><uri>http://mcwtech.com/CS/members/RGreen.aspx</uri></author><category term="Visual Basic" scheme="http://mcwtech.com/CS/blogs/rgreen/archive/tags/Visual+Basic/default.aspx" /></entry></feed>