<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>ChristianASP.NET Blog - Visual Studio 2005</title>
    <link>http://blog.christianasp.net/</link>
    <description>Talking about ASP.NET and Web Hosting</description>
    <image>
      <url>http://blog.christianasp.net/themes/casp/feedimg.gif</url>
      <title>ChristianASP.NET Blog - Visual Studio 2005</title>
      <link>http://blog.christianasp.net/</link>
    </image>
    <language>en-us</language>
    <copyright>ChristianASP.NET</copyright>
    <lastBuildDate>Fri, 09 Jun 2006 15:29:25 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>david@christianasp.net</managingEditor>
    <webMaster>david@christianasp.net</webMaster>
    <item>
      <trackback:ping>http://blog.christianasp.net/Trackback.aspx?guid=406e8dd6-2949-4e02-b7d1-4da44c65cf9b</trackback:ping>
      <pingback:server>http://blog.christianasp.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.christianasp.net/PermaLink,guid,406e8dd6-2949-4e02-b7d1-4da44c65cf9b.aspx</pingback:target>
      <dc:creator>David Neal</dc:creator>
      <wfw:comment>http://blog.christianasp.net/CommentView,guid,406e8dd6-2949-4e02-b7d1-4da44c65cf9b.aspx</wfw:comment>
      <wfw:commentRss>http://blog.christianasp.net/SyndicationService.asmx/GetEntryCommentsRss?guid=406e8dd6-2949-4e02-b7d1-4da44c65cf9b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Like a <a href="http://codebetter.com/blogs/jeffrey.palermo/archive/2005/07/25/129807.aspx">few
others</a>, I eventually ditched ASP.NET 1.1 Web Form projects in in favor of Class
Library projects.  For any of you out there converting your 1.1 Class Library
projects to ASP.NET 2.0 and want to use the after-market <a href="http://webproject.scottgu.com/">Web
Application Project</a>, here's what you need to do.<br /><ol><li>
Convert your 1.1 project to 2.0 using the VS 2005 conversion wizard (just open the
project in VS 2005)</li><li>
Close VS 2005</li><li>
Edit your .csproj or .vbproj file with a text editor</li><li>
Find the line that reads <span style="font-family: Courier New; font-size: small;">&lt;ProjectType&gt;Local&lt;/ProjectType&gt;</span> and
change it to:<br /><br />
[C#]<br /><br /><span style="font-family: Courier New; font-size: small;">&lt;ProjectTypeGuids&gt;{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}&lt;/ProjectTypeGuids&gt;</span><br /><br />
[VB.NET]<br /><br /><span style="font-family: Courier New; font-size: small;">&lt;ProjectTypeGuids&gt;{349c5851-65df-11da-9384-00065b846f21};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}&lt;/ProjectTypeGuids&gt;</span><br /><br /></li></ol>
For any of you still developing under VS 2003, check out Fritz Onion's <a href="http://pluralsight.com/wiki/default.aspx/Fritz/AspNetWithoutWebProjects1.html">ASP.NET
without Web Projects.</a><br /><br /><b>UPDATE:</b> Found out that settings for VB.NET projects are different.<br /><br /><b>UPDATE 2</b>: If you've upgraded a 1.1 project to WAP, you'll probably want to
also right-click on the project and choose the "Convert to Web Application" option. 
This will split the code-behind files into partial classes and enable designer support. 
Thanks for the tip, Scott!<br /><img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=406e8dd6-2949-4e02-b7d1-4da44c65cf9b" /></body>
      <title>Converting a Class Library Project to WAP</title>
      <guid isPermaLink="false">http://blog.christianasp.net/PermaLink,guid,406e8dd6-2949-4e02-b7d1-4da44c65cf9b.aspx</guid>
      <link>http://blog.christianasp.net/2006/06/09/ConvertingAClassLibraryProjectToWAP.aspx</link>
      <pubDate>Fri, 09 Jun 2006 15:29:25 GMT</pubDate>
      <description>Like a &lt;a href="http://codebetter.com/blogs/jeffrey.palermo/archive/2005/07/25/129807.aspx"&gt;few
others&lt;/a&gt;, I eventually ditched ASP.NET 1.1 Web Form projects in in favor of Class
Library projects.&amp;nbsp; For any of you out there converting your 1.1 Class Library
projects to ASP.NET 2.0 and want to use the after-market &lt;a href="http://webproject.scottgu.com/"&gt;Web
Application Project&lt;/a&gt;, here's what you need to do.&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
Convert your 1.1 project to 2.0 using the VS 2005 conversion wizard (just open the
project in VS 2005)&lt;/li&gt;
&lt;li&gt;
Close VS 2005&lt;/li&gt;
&lt;li&gt;
Edit your .csproj or .vbproj file with a text editor&lt;/li&gt;
&lt;li&gt;
Find the line that reads &lt;span style="font-family: Courier New; font-size: small;"&gt;&amp;lt;ProjectType&amp;gt;Local&amp;lt;/ProjectType&amp;gt;&lt;/span&gt; and
change it to:&lt;br&gt;
&lt;br&gt;
[C#]&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family: Courier New; font-size: small;"&gt;&amp;lt;ProjectTypeGuids&amp;gt;{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}&amp;lt;/ProjectTypeGuids&amp;gt;&lt;/span&gt; 
&lt;br&gt;
&lt;br&gt;
[VB.NET]&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family: Courier New; font-size: small;"&gt;&amp;lt;ProjectTypeGuids&amp;gt;{349c5851-65df-11da-9384-00065b846f21};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}&amp;lt;/ProjectTypeGuids&amp;gt;&lt;/span&gt; 
&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ol&gt;
For any of you still developing under VS 2003, check out Fritz Onion's &lt;a href="http://pluralsight.com/wiki/default.aspx/Fritz/AspNetWithoutWebProjects1.html"&gt;ASP.NET
without Web Projects.&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;UPDATE:&lt;/b&gt; Found out that settings for VB.NET projects are different.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;UPDATE 2&lt;/b&gt;: If you've upgraded a 1.1 project to WAP, you'll probably want to
also right-click on the project and choose the "Convert to Web Application" option.&amp;nbsp;
This will split the code-behind files into partial classes and enable designer support.&amp;nbsp;
Thanks for the tip, Scott!&lt;br&gt;
&lt;img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=406e8dd6-2949-4e02-b7d1-4da44c65cf9b" /&gt;</description>
      <comments>http://blog.christianasp.net/CommentView,guid,406e8dd6-2949-4e02-b7d1-4da44c65cf9b.aspx</comments>
      <category>ASP.NET</category>
      <category>ASP.NET 2.0</category>
      <category>Visual Studio 2005</category>
    </item>
    <item>
      <trackback:ping>http://blog.christianasp.net/Trackback.aspx?guid=4770e6e3-76c3-4255-88ca-8a80eb1a7ca2</trackback:ping>
      <pingback:server>http://blog.christianasp.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.christianasp.net/PermaLink,guid,4770e6e3-76c3-4255-88ca-8a80eb1a7ca2.aspx</pingback:target>
      <dc:creator>David Neal</dc:creator>
      <wfw:comment>http://blog.christianasp.net/CommentView,guid,4770e6e3-76c3-4255-88ca-8a80eb1a7ca2.aspx</wfw:comment>
      <wfw:commentRss>http://blog.christianasp.net/SyndicationService.asmx/GetEntryCommentsRss?guid=4770e6e3-76c3-4255-88ca-8a80eb1a7ca2</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Awesome!  Red Gate has released <a href="http://www.red-gate.com/products/sql_prompt/index.htm">SQL
Prompt</a>, and it's FREE!  Get Intellisense for Query Analyzer, Enterprise Manager,
SQL Management Studio, and Visual Studio 2003/2005.  It even supports UltraEdit
and EditPlus.<br /><br />
SQL Prompt can also automatically upper-case SQL keywords, and provides a code snippet
engine.<br /><p></p><img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=4770e6e3-76c3-4255-88ca-8a80eb1a7ca2" /></body>
      <title>Red Gate SQL Prompt is FREE!</title>
      <guid isPermaLink="false">http://blog.christianasp.net/PermaLink,guid,4770e6e3-76c3-4255-88ca-8a80eb1a7ca2.aspx</guid>
      <link>http://blog.christianasp.net/2006/05/23/RedGateSQLPromptIsFREE.aspx</link>
      <pubDate>Tue, 23 May 2006 13:09:58 GMT</pubDate>
      <description>Awesome!&amp;nbsp; Red Gate has released &lt;a href="http://www.red-gate.com/products/sql_prompt/index.htm"&gt;SQL
Prompt&lt;/a&gt;, and it's FREE!&amp;nbsp; Get Intellisense for Query Analyzer, Enterprise Manager,
SQL Management Studio, and Visual Studio 2003/2005.&amp;nbsp; It even supports UltraEdit
and EditPlus.&lt;br&gt;
&lt;br&gt;
SQL Prompt can also automatically upper-case SQL keywords, and provides a code snippet
engine.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=4770e6e3-76c3-4255-88ca-8a80eb1a7ca2" /&gt;</description>
      <comments>http://blog.christianasp.net/CommentView,guid,4770e6e3-76c3-4255-88ca-8a80eb1a7ca2.aspx</comments>
      <category>Free Stuff</category>
      <category>SQL</category>
      <category>Visual Studio 2005</category>
    </item>
    <item>
      <trackback:ping>http://blog.christianasp.net/Trackback.aspx?guid=7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1</trackback:ping>
      <pingback:server>http://blog.christianasp.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.christianasp.net/PermaLink,guid,7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1.aspx</pingback:target>
      <dc:creator>David Neal</dc:creator>
      <wfw:comment>http://blog.christianasp.net/CommentView,guid,7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1.aspx</wfw:comment>
      <wfw:commentRss>http://blog.christianasp.net/SyndicationService.asmx/GetEntryCommentsRss?guid=7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I absolutely love <a href="http://www.red-gate.com/products/sql_tools_overview.htm">Red
Gate's SQL tools</a>, and can't say enough good things about them.  I just found
out from <a href="http://aspadvice.com/blogs/ssmith/archive/2006/05/04/PromptSQL_RedGate_SQL_Prompt.aspx">Steven
Smith</a> that Red Gate have purchased <a href="http://www.promptsql.com/">Prompt
SQL</a> (intellisense for SQL), and there's a beta to be downloaded that supports
SQL 2005 Management Studio!  According to the <a href="http://www.red-gate.com/messageboard/viewforum.php?f=43">beta
support forums</a>, the plan is to sell SQL Prompt for $50/user with multi-user discounts
at 5- and 10-user levels.<br /><br />
By the way, Red Gate's <a href="http://www.red-gate.com/products/dotnet_tools_overview.htm">Profiler
and Load</a> tools are incredible, too.<br /><p></p><img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1" /></body>
      <title>Prompt SQL is now Red Gate SQL Prompt</title>
      <guid isPermaLink="false">http://blog.christianasp.net/PermaLink,guid,7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1.aspx</guid>
      <link>http://blog.christianasp.net/2006/05/04/PromptSQLIsNowRedGateSQLPrompt.aspx</link>
      <pubDate>Thu, 04 May 2006 17:46:40 GMT</pubDate>
      <description>I absolutely love &lt;a href="http://www.red-gate.com/products/sql_tools_overview.htm"&gt;Red
Gate's SQL tools&lt;/a&gt;, and can't say enough good things about them.&amp;nbsp; I just found
out from &lt;a href="http://aspadvice.com/blogs/ssmith/archive/2006/05/04/PromptSQL_RedGate_SQL_Prompt.aspx"&gt;Steven
Smith&lt;/a&gt; that Red Gate have purchased &lt;a href="http://www.promptsql.com/"&gt;Prompt
SQL&lt;/a&gt; (intellisense for SQL), and there's a beta to be downloaded that supports
SQL 2005 Management Studio!&amp;nbsp; According to the &lt;a href="http://www.red-gate.com/messageboard/viewforum.php?f=43"&gt;beta
support forums&lt;/a&gt;, the plan is to sell SQL Prompt for $50/user with multi-user discounts
at 5- and 10-user levels.&lt;br&gt;
&lt;br&gt;
By the way, Red Gate's &lt;a href="http://www.red-gate.com/products/dotnet_tools_overview.htm"&gt;Profiler
and Load&lt;/a&gt; tools are incredible, too.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1" /&gt;</description>
      <comments>http://blog.christianasp.net/CommentView,guid,7e73dc0f-54b0-4aa1-ad68-c7664cf1d3c1.aspx</comments>
      <category>SQL</category>
      <category>Utilities</category>
      <category>Visual Studio 2005</category>
    </item>
    <item>
      <trackback:ping>http://blog.christianasp.net/Trackback.aspx?guid=98eb964a-2fb6-4509-830e-f23777ca4fe0</trackback:ping>
      <pingback:server>http://blog.christianasp.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.christianasp.net/PermaLink,guid,98eb964a-2fb6-4509-830e-f23777ca4fe0.aspx</pingback:target>
      <dc:creator>David Neal</dc:creator>
      <wfw:comment>http://blog.christianasp.net/CommentView,guid,98eb964a-2fb6-4509-830e-f23777ca4fe0.aspx</wfw:comment>
      <wfw:commentRss>http://blog.christianasp.net/SyndicationService.asmx/GetEntryCommentsRss?guid=98eb964a-2fb6-4509-830e-f23777ca4fe0</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">For anyone interested in learning Visual
Basic 2005, you can now grab all the chapters from "Introduction to Microsoft Visual
Basic 2005 for Developers" from MSDN.<br /><blockquote><i>Get a focused, first look at the features and capabilities in Microsoft
Visual Basic 2005, Visual Studio 2005, and the .NET Framework 2.0. If you currently
work with Visual Basic 6, these authors fully understand the adoption and code migration
issues you'll encounter. They'll step you through a quick primer on .NET Framework
programming, offering guidance for a productive transition. If you already work with
.NET, you'll jump directly into what's new, learning how to extend your existing skills.
From the innovations in rapid application development, debugging, and deployment,
to new data access, desktop, and Web programming capabilities, you get the insights
and code walkthroughs you need to be productive right away.<br /></i></blockquote><a href="http://msdn.microsoft.com/vbrun/staythepath/additionalresources/introto2005/">Download
here</a>.<br /><p></p><img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=98eb964a-2fb6-4509-830e-f23777ca4fe0" /></body>
      <title>Free eBook: Introducing Microsoft Visual Basic 2005 for Developers</title>
      <guid isPermaLink="false">http://blog.christianasp.net/PermaLink,guid,98eb964a-2fb6-4509-830e-f23777ca4fe0.aspx</guid>
      <link>http://blog.christianasp.net/2006/04/13/FreeEBookIntroducingMicrosoftVisualBasic2005ForDevelopers.aspx</link>
      <pubDate>Thu, 13 Apr 2006 01:01:00 GMT</pubDate>
      <description>For anyone interested in learning Visual Basic 2005, you can now grab all the chapters from "Introduction to Microsoft Visual Basic 2005 for Developers" from MSDN.&lt;br&gt;
&lt;blockquote&gt;&lt;i&gt;Get a focused, first look at the features and capabilities in Microsoft
Visual Basic 2005, Visual Studio 2005, and the .NET Framework 2.0. If you currently
work with Visual Basic 6, these authors fully understand the adoption and code migration
issues you'll encounter. They'll step you through a quick primer on .NET Framework
programming, offering guidance for a productive transition. If you already work with
.NET, you'll jump directly into what's new, learning how to extend your existing skills.
From the innovations in rapid application development, debugging, and deployment,
to new data access, desktop, and Web programming capabilities, you get the insights
and code walkthroughs you need to be productive right away.&lt;br&gt;
&lt;/i&gt;&lt;/blockquote&gt;&lt;a href="http://msdn.microsoft.com/vbrun/staythepath/additionalresources/introto2005/"&gt;Download
here&lt;/a&gt;.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=98eb964a-2fb6-4509-830e-f23777ca4fe0" /&gt;</description>
      <comments>http://blog.christianasp.net/CommentView,guid,98eb964a-2fb6-4509-830e-f23777ca4fe0.aspx</comments>
      <category>ASP.NET 2.0</category>
      <category>Free Stuff</category>
      <category>Visual Studio 2005</category>
    </item>
    <item>
      <trackback:ping>http://blog.christianasp.net/Trackback.aspx?guid=18fca1cd-92fd-4669-b652-30babcbebe6f</trackback:ping>
      <pingback:server>http://blog.christianasp.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.christianasp.net/PermaLink,guid,18fca1cd-92fd-4669-b652-30babcbebe6f.aspx</pingback:target>
      <dc:creator>David Neal</dc:creator>
      <wfw:comment>http://blog.christianasp.net/CommentView,guid,18fca1cd-92fd-4669-b652-30babcbebe6f.aspx</wfw:comment>
      <wfw:commentRss>http://blog.christianasp.net/SyndicationService.asmx/GetEntryCommentsRss?guid=18fca1cd-92fd-4669-b652-30babcbebe6f</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">I think I just wasted somewhere around
10 hours over the last several days trying to track down an issue I've been having. 
It started out as what should have been a painless project upgrade from VS 2003 to
2005.  This particular project happens to use Crystal Reports XI.  
<br /><br />
"Well, that's your first problem!"<br /><br />
Yes, I know.  Crystal.  A fool to be pitied, am I.  Alas, it's a customer
requirement... on with the story.<br /><br />
Everything compiles and runs great.  However, now none of the reports are working. 
I'm getting all kinds of weird exceptions.  I fight with references and what-not
for a couple of hours.  Turns out, for .NET 2.0 you need to download <a href="http://www.businessobjects.com/products/reporting/crystalreports/xi_release_2.asp">Crystal
Reports XI Release 2</a>.  No problem.  It's only a 1GB download. 
That should only take, what, three days?<br /><br />
Fast forward download and 2 hour upgrade install.  Everything compiles and runs
great.  However, now none of the reports that have parameters are working. 
I'm getting a weird exception whining that ParameterDiscreteValue can't be cast to
ParameterValue, even though ParameterDiscreteValue inherits from ParameterValue. 
Only makes sense, right?<br /><br />
I run through and fix all my references again, and then start narrowing down and eliminating
all the possible culprits.  I double-check my code against all samples and Google
results I can find.  No dice.  So, I give up and open a support case with
Crystal.  Insert typical support response: "Have you tried running the samples?"<br /><br />
At this point I'm so desparate that I actually <i>do</i> run a sample project that
sets parameters dynamically.  It works.  So, I set out to plug one of my
own reports into the sample project.  It works.  WHAT?!<br /><br />
After stepping through every line of code for the millionth time (give or take 3 builds),
I finally go back and check my references again.  Hmm... that's odd.  All
my Crystal references are OK except the Crystal Engine is pointing to the 10.0 version
that ships with VS 2005.  Update the reference and recompile.  Run a report. 
Exception.  Check my references again.  Hmm... that's odd.  The old
reference is back again.<br /><br />
OK... the fix??  After setting the reference, I have to set the "Specific Version"
property to "True."  If I don't, VS 2005 is kind enough to automagically change
my reference back to the previous version.<br /><br />
This is actually not the first time this issue has happened to me.  At this point
I'm so frustrated I could spit.<br /><br />
Hey, wait. These spots on my laptop might be dried spittle.  I'm not sure.<br /><br /><img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=18fca1cd-92fd-4669-b652-30babcbebe6f" /></body>
      <title>VS 2005 Referencing Wrong Version of Assembly</title>
      <guid isPermaLink="false">http://blog.christianasp.net/PermaLink,guid,18fca1cd-92fd-4669-b652-30babcbebe6f.aspx</guid>
      <link>http://blog.christianasp.net/2006/02/28/VS2005ReferencingWrongVersionOfAssembly.aspx</link>
      <pubDate>Tue, 28 Feb 2006 05:27:11 GMT</pubDate>
      <description>I think I just wasted somewhere around 10 hours over the last several days trying to track down an issue I've been having.&amp;nbsp; It started out as what should have been a painless project upgrade from VS 2003 to 2005.&amp;nbsp; This particular project happens to use Crystal Reports XI.&amp;nbsp; &lt;br&gt;
&lt;br&gt;
"Well, that's your first problem!"&lt;br&gt;
&lt;br&gt;
Yes, I know.&amp;nbsp; Crystal.&amp;nbsp; A fool to be pitied, am I.&amp;nbsp; Alas, it's a customer
requirement... on with the story.&lt;br&gt;
&lt;br&gt;
Everything compiles and runs great.&amp;nbsp; However, now none of the reports are working.&amp;nbsp;
I'm getting all kinds of weird exceptions.&amp;nbsp; I fight with references and what-not
for a couple of hours.&amp;nbsp; Turns out, for .NET 2.0 you need to download &lt;a href="http://www.businessobjects.com/products/reporting/crystalreports/xi_release_2.asp"&gt;Crystal
Reports XI Release 2&lt;/a&gt;.&amp;nbsp; No problem.&amp;nbsp; It's only a 1GB download.&amp;nbsp;
That should only take, what, three days?&lt;br&gt;
&lt;br&gt;
Fast forward download and 2 hour upgrade install.&amp;nbsp; Everything compiles and runs
great.&amp;nbsp; However, now none of the reports that have parameters are working.&amp;nbsp;
I'm getting a weird exception whining that ParameterDiscreteValue can't be cast to
ParameterValue, even though ParameterDiscreteValue inherits from ParameterValue.&amp;nbsp;
Only makes sense, right?&lt;br&gt;
&lt;br&gt;
I run through and fix all my references again, and then start narrowing down and eliminating
all the possible culprits.&amp;nbsp; I double-check my code against all samples and Google
results I can find.&amp;nbsp; No dice.&amp;nbsp; So, I give up and open a support case with
Crystal.&amp;nbsp; Insert typical support response: "Have you tried running the samples?"&lt;br&gt;
&lt;br&gt;
At this point I'm so desparate that I actually &lt;i&gt;do&lt;/i&gt; run a sample project that
sets parameters dynamically.&amp;nbsp; It works.&amp;nbsp; So, I set out to plug one of my
own reports into the sample project.&amp;nbsp; It works.&amp;nbsp; WHAT?!&lt;br&gt;
&lt;br&gt;
After stepping through every line of code for the millionth time (give or take 3 builds),
I finally go back and check my references again.&amp;nbsp; Hmm... that's odd.&amp;nbsp; All
my Crystal references are OK except the Crystal Engine is pointing to the 10.0 version
that ships with VS 2005.&amp;nbsp; Update the reference and recompile.&amp;nbsp; Run a report.&amp;nbsp;
Exception.&amp;nbsp; Check my references again.&amp;nbsp; Hmm... that's odd.&amp;nbsp; The old
reference is back again.&lt;br&gt;
&lt;br&gt;
OK... the fix??&amp;nbsp; After setting the reference, I have to set the "Specific Version"
property to "True."&amp;nbsp; If I don't, VS 2005 is kind enough to automagically change
my reference back to the previous version.&lt;br&gt;
&lt;br&gt;
This is actually not the first time this issue has happened to me.&amp;nbsp; At this point
I'm so frustrated I could spit.&lt;br&gt;
&lt;br&gt;
Hey, wait. These spots on my laptop might be dried spittle.&amp;nbsp; I'm not sure.&lt;br&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=18fca1cd-92fd-4669-b652-30babcbebe6f" /&gt;</description>
      <comments>http://blog.christianasp.net/CommentView,guid,18fca1cd-92fd-4669-b652-30babcbebe6f.aspx</comments>
      <category>Visual Studio 2005</category>
      <category>ASP.NET 2.0</category>
    </item>
    <item>
      <trackback:ping>http://blog.christianasp.net/Trackback.aspx?guid=73c614ab-3dcf-4b36-aaaf-1dad4da60978</trackback:ping>
      <pingback:server>http://blog.christianasp.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.christianasp.net/PermaLink,guid,73c614ab-3dcf-4b36-aaaf-1dad4da60978.aspx</pingback:target>
      <dc:creator>David Neal</dc:creator>
      <wfw:comment>http://blog.christianasp.net/CommentView,guid,73c614ab-3dcf-4b36-aaaf-1dad4da60978.aspx</wfw:comment>
      <wfw:commentRss>http://blog.christianasp.net/SyndicationService.asmx/GetEntryCommentsRss?guid=73c614ab-3dcf-4b36-aaaf-1dad4da60978</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
One of the cool new features in VS 2005 I’ve seen a couple of presenters use is Code
Snippets.  Basically, it is a customizable code generation tool that allows you
to type some quick short hand or alias, and VS 2005 will automatically expand it into
a block of code.  For example, if you type “foreach” and press TAB a couple of
times, you’ll get a new foreach block with customizable types and variable names. 
You just have to see it for yourself.
</p>
        <p>
There are a number of built-in Code Snippets (just do a help search in VS 2005), but
you can also create your own.  As a matter of fact, someone has already started
an online library of code snippets at <a href="http://www.gotcodesnippets.com">GotCodeSnippets.net</a>. 
Also, there is a <a href="http://www.gotdotnet.com/codegallery/codegallery.aspx?id=b0813ae7-466a-43c2-b2ad-f87e4ee6bc39">Code
Snippet editor</a> named Snippy (of course) that will help you build your own Code
Snippets and add them to VS 2005.<br /></p>
        <img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=73c614ab-3dcf-4b36-aaaf-1dad4da60978" />
      </body>
      <title>Code Snippets</title>
      <guid isPermaLink="false">http://blog.christianasp.net/PermaLink,guid,73c614ab-3dcf-4b36-aaaf-1dad4da60978.aspx</guid>
      <link>http://blog.christianasp.net/2005/11/09/CodeSnippets.aspx</link>
      <pubDate>Wed, 09 Nov 2005 23:13:00 GMT</pubDate>
      <description>&lt;p&gt;
One of the cool new features in VS 2005 I’ve seen a couple of presenters use is Code
Snippets.&amp;nbsp; Basically, it is a customizable code generation tool that allows you
to type some quick short hand or alias, and VS 2005 will automatically expand it into
a block of code.&amp;nbsp; For example, if you type “foreach” and press TAB a couple of
times, you’ll get a new foreach block with customizable types and variable names.&amp;nbsp;
You just have to see it for yourself.
&lt;/p&gt;
&lt;p&gt;
There are a number of built-in Code Snippets (just do a help search in VS 2005), but
you can also create your own.&amp;nbsp; As a matter of fact, someone has already started
an online library of code snippets at &lt;a href="http://www.gotcodesnippets.com"&gt;GotCodeSnippets.net&lt;/a&gt;.&amp;nbsp;
Also, there is a &lt;a href="http://www.gotdotnet.com/codegallery/codegallery.aspx?id=b0813ae7-466a-43c2-b2ad-f87e4ee6bc39"&gt;Code
Snippet editor&lt;/a&gt; named Snippy (of course) that will help you build your own Code
Snippets and add them to VS 2005.&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.christianasp.net/aggbug.ashx?id=73c614ab-3dcf-4b36-aaaf-1dad4da60978" /&gt;</description>
      <comments>http://blog.christianasp.net/CommentView,guid,73c614ab-3dcf-4b36-aaaf-1dad4da60978.aspx</comments>
      <category>ASP.NET 2.0</category>
      <category>Visual Studio 2005</category>
    </item>
  </channel>
</rss>