Stories Tagged with 'Visual Studio'

Getting Silverlight XAML Intellisense in VS2008

I've gotten the question a number of times about problems getting intellisense with Visual Studio 2008. If your XAML looks like this in Visual Studio 2008 then I can help you:


Visual Studio 2008 for .NET 2.0 Development - An Interesting Quirk

I've been converting some projects to Visual Studio 2008 (but not .NET 3.5) to see if I like the new IDE better than 2005.  So far I can't tell a big difference (though the improved Script debugging is nice).  I did find out something interesting...

I use the 'prop' snippet (if you don't know what this is, in 2005 or 2008 type 'prop' {no quotes} and hit tab twice) to add simple properties.  In 2005 it stubs out the field and the property.  But in 2008 it stubs out an implicit property.

Installing Visual Studio 2008 over Beta 2


Scott Guthrie has a new blog post instructing people how to cleanly uninstall all the Beta 2 bits on a machine before installing the RTM of Visual Studio.  This is a great list but if you're an early adopter like I am beware. 

Visual Studio 2008 Release and Silverlight Development

Now that Visual Studio 2008 is released it would be nice to do some Silverlight development on it (instead of the Beta).  Good and bad news:

Silverlight 1.0:

Silverlight and Visual Studio 2008

With today announcement of Visual Studio 2008 going RTM this month, we start the inevidible task of determining how many of the VS 2008 tools are going to have toolkits installed.  Of most interest to me are:

Are you ready to move to 2008 when it goes 2008 or are you sticking with 2005?

"The project type is not supported by this installation" Visual Studio 2005 Error?

I get this error from time to time when I uninstall some MS software that isn't behaving very well (I've gotten it from uninstalling Orcas, SQL Server early drops and other products).  I wanted to highlight the two big fixes to this (without resorting to the painful re-installation of VS):

First, tell VS to heal itself (this fixes it about 80% of the time):

My VS Suggestion on the "Add New Item..." dialog won't be fixed...


VS "Add New Items..." Dialog


Could I get anyone who agrees with me to vote on this bug in Microsoft's Connect Site?

Add Using Automatically - Visual Studio 2005 Feature

My new favorite feature of Visual Studio is the ability to click on a typename and have it automatically add the using/imports statement for me.  It won't do it if you don't have the assembly already referenced, but otherwise this is a huge time saver for me...I don't know why I never noticed it before.

Microsoft Launches Beginning Developer Learning Center


Brad Wilson's Visual Studio Editor Colors


Brad Wilson has a new blog entry where he is giving away a vssettings file with his perferred layout of a dark background with gentle colors.  I really like the look and think I am going to stick with it.  Take a look if your eyes need a rest from white backgrounds!

Sample Code for Custom ASP.NET Profile Provider


Until The ServerSide .NET can post the sample code, I am posting it here

SqlDataSource Issues...


I've blogged before about issues with the SqlDataSource.  I've crufted up an example of the problems that can be downloaded here (with usual caveat of changing the connection string in the web.config to point to a DB with the Northwind database).

Visual Studio 2005 Service Pack 1 - By September


In case you didn't see it on other sites, it looks like MS has reversed its decision to wait until 2007 for the SP1 of Visual Studio 2005.  Its coming by September.

My First Taste of Cider...

Typed DataSets and App.Config...A Cautionary Tale

In this assembly, the designer created an app.config and a Settings.setting object.  All sounded good.  So in my ASP.NET 2.0 project, I setup the connection string in the web.config and called it "MyConnection".  This all worked until I deployed it to a server, when all hell broke loose.  After deployment, my code that did *not* use Typed DataSets (mostly DataSources) worked fine with my new "MyConnection" connection string...but...

Everywhere I used the Typed DataSets it was failing to connect to the database.  When I looked at it it seems that the Typed DataSets were using the connection string I used on my dev box...but no app.config to be seen.  How was it getting that bad connection string?  Well it seems that the connection string information is being embedded as the "default" connection string to use if it can't find the connection string in the configuration.  Ok, this is bad...I'd hate for my assembly to actually have stuff like my password embedded in it, but I doubt that happens.  I was using integrated security so I haven't tested the password embedding yet.

My First Days with the RTM

How to share Forms Authentication between a 1.x Site and a 2.0 Site in the Same Domain

There are several blogs that have discussed how to share an auth cookie between sites in a farm and how to do a true single-signon for a domain. Mark Brooks pointed me to these that help a lot:

Now the trick is to do it between a 1.x and a 2.0 site in the same environment (but in different IIS Applications).  The trick is to create a <machineKey /> entry in both web.configs.  Pete Bromberg has a nifty little web page that will help you generate one to use for both:

Compile ASP.NET 2.0 Site to One Assembly!


Nasty ASP.NET 2.0 Bug...Postponed?


I've been working on some ASP.NET 2.0 code for the last few weeks and ran into a bug that (in my opinion) is particularly nasty.  If you are comfortable with the 1.x model at all, you're likely to run into it.  In the 1.x model, all code-behind classes were compiled into a single assembly.  So you could:

Problems Creating Custom DataSource Enabled Controls in ASP.NET 2.0


I find it unfortunatle that Microsoft has made is way too difficult to write your own DataSource enabled controls.  Deriving from DataBoundControl, but it still does not seem to be a way to synchronously get the data from the DataSource.  In a DataBoundControl control you can get the DataSourceView like so:

Visual Studio Beta 3?


There is a suggestion up on the LadyBug site to support a Beta 3 of Visual Studio as some developers are worried about the quality of the Beta 2 (and I assume the CTP's as well).  If you have an opinion (I have one), please go there and Vote.  The sheer size of the votes will help Microsoft determine if it is a fringe group believes there are issues or whether a Beta 3 is really necessary.  Please make your opinion known!

Rewriting Part 1 - Requirements

For the new, I have the following requirements:

I am sure there  are more, but those are the core of the new requirements.  Tune in tomorrow to start matching requirements with solutions...

Re-writing for ASP.NET 2.0

Back in the day when ASP.NET shipped, I converted this site from the existing ASP based site.  As an exercise to really bring in some new features I've wanted and to lose the ASP legacy (I actually still have a page or two that uses string concatenation to put together HTML Tables), I want to do a full re-write of the site. 

I use a process where I begin with the requirements, then the data, then the code (no big surprises there).  My goal is to blog through each stage of this process and hopefully help my readers learn a bit about an ASP.NET 1.x to ASP.NET 2.0 conversion.

VS 2005 Class Diagrams...

Shawn Wildermuth
Author, Teacher, and Coach

My Courses

Wilder Minds Training
Vue.js by Example
Bootstrap 4 by Example
Intro to Font Awesome 5 (Free Course)
Designing RESTful Web APIs (new)
Building an API with ASP.NET Web API
Building an API with ASP.NET Core
Building a Web App with ASP.NET Core, MVC6, EF Core, Bootstrap and Angular
Less: Getting Started

Application Name WilderBlog Environment Name Development
Application Ver v4.0.30319 Runtime Framework x86
App Path D:\home\site\wwwroot\ Runtime Version .NET Core 3.0.0
Operating System Microsoft Windows 10.0.14393 Runtime Arch X86