Upgrading Visual Studio 2008 from trial to full on Windows 7 Beta (Build 7000)

Here is a more-or-less complete guide to upgrading Visual Studio 2008 trial to pro in Windows 7. Download and install/unzip AnVir Task Manager Free (portable version here: http://www.anvir.com/downloads/taskfree.zip) Go to Start -> Control Panel -> Programs and Features. Select Microsoft Visual Studio 2008 Professional ENU, click Uninstall/Change at the top of the list. Wait for … Read more

Why doesn’t Visual Studio break on exceptions when debugging unit tests?

The reason why is that your exceptions are not unhandled. The unit testing framework is handling the exceptions under the hood and converting them to failures. What you need to do instead is to break on thrown exceptions. If you combine this with enabling “Just My Code” (on by default) you should get the behavior … Read more

Can StyleCop automatically fix anything?

No, frustratingly. That’s why Style Cop is counter-productive. Consistent formatting looks nice, but there’s little productivity benefit to it (what really makes code hard to read is length and indirection). Perfect spacing is not worth spending hours adjusting lines by hand. Of course, if there were an automated tool to achieve consistent formatting, I’d hook … Read more

Visual Studio log file

From the documentation of the /Log command line switch: If LogFile is not specified, two files will be written to the current user’s non-localized application data folder. The non-localized application data folder for Visual Studio can be found from the APPDATA environment variable. For example, for Visual Studio 2008, the folder is %APPDATA%\Microsoft\VisualStudio\9.0, where %APPDATA% … Read more

Refreshing a stored procedure in entity framework 3.5

I’ve seen two problems with updating a Stored Procedure after adding it to the entity framework: The Function Import created to call the SPROC wasn’t updated (incorrect, out-of-date parameters) The Complex Type created for the SPROC’s result set wasn’t updated (incorrect, out-of-date fields) Updating EDMX model (function import) Open the .edmx file (in the GUI … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)