Sebastian Wojciechowski’s WebLog

.NET Developer

If you get BadImageFormatException error or you want to work with NUnit 2.2 and VS .NET 2005 beta 2, you must add

<supportedRuntime version="v2.0.50215" />

to <startup> section

so it looks like this:

<startup>
     <supportedRuntime version="v2.0.50215" />
     <supportedRuntime version="v1.1.4322" />
     <supportedRuntime version="v1.0.3705" />

     <requiredRuntime version="v1.0.3705" />
</startup>

and remember that you have to change it both in the
nunit-gui.exe.config and nunit-console.exe.config files.

v2.0.50215 is for beta 2 of VS 2005 .NET.

Best thing to do is to check what version of .NET framework you’re running.
To do it, see folder names in WindowsPath\Microsoft.NET\Framework folder (for ex. C:\WINDOWS\Microsoft.NET\Framework)

Plus it seems that NUnit 2.2 doesn’t work when run as an external program while debugging from VS .NET 2005.
When you click Run nothing happens.

Try to download NUnit 2.2.2, it worked for me.

This video series is designed specifically for individuals who are interested in learning the basics of how to create applications using Visual Basic 2005 Express Edition and Visual C# 2005 Express Edition. This includes over 10 hours of video-based instruction that walks from creating your first “Hello World” application to a fully functioning RSS Reader application. Learn how to write your first application today!!

Click here for the videos

Get Ready for SQL Server 2005 with Free* Microsoft E-Learning Courses.
* Microsoft E-Learning for SQL Server 2005 is free until November 1, 2006.

  • Course 2936:Installing and Securing Microsoft® SQL Server™ 2005
  • Course 2937: Administering and Monitoring Microsoft® SQL Server™ 2005
  • Course 2938: Data Availability Features in Microsoft® SQL Server™ 2005
  • Course 2939: Programming Microsoft® SQL Server™ 2005
  • Course 2940: Building Services and Notifications Using Microsoft® SQL Server™ 2005
  • Course 2941: Creating the Data Access Tier Using Microsoft® SQL Server™ 2005
  • Course 2942: New Features of Microsoft® SQL Server™ 2005 Analysis Services
  • Course 2943: Updating Your Data ETL Skills to Microsoft® SQL Server™ 2005 Integration Services
  • Course 2944: Updating Your Reporting Skills to Microsoft® SQL Server™ 2005 Reporting Services

Get Ready for Visual Studio 2005 with Free* Microsoft E-Learning Courses and Clinics.
* Microsoft E-Learning for Visual Studio 2005 is free until November 8, 2005.

  • Clinic 2551: Introduction to Visual Studio Team System
  • Course 2924: Building Data Components in Microsoft® Visual Studio® 2005
  • Course 2925: Building Managed Code for SQL Server 2005 and Creating SOA Apps with Visual Studio 2005
  • Course 2926: Building Windows® Forms Applications with Microsoft® Visual Studio® 2005
  • Course 2927: Building Web Applications with ASP.NET 2.0
  • Course 2928: Implementing Data Access and Security in an ASP.NET 2.0 Web Application
  • Course 2929: Implementing Wizards, Site Navigation, State Management, and Configuration in ASP.NET 2.0
  • Course 2930: Implementing Master Pages, Personalization, and Web Parts with ASP.NET 2.0

Plus

Microsoft Learning and MSDN are giving away two of MSPress’s most popular ASP.NET books and a US$349 E-Learning course for free. You get the Developing Microsoft ASP.NET Web Applications Using Visual Studio .NET e-learning course and the online version of Microsoft ASP.NET Programming with Microsoft Visual Basic .NET 2003 Step by Step and Building Web Solutions with ASP.NET and ADO.NET for free. Visit the Microsoft E-Learning Access site and enter the access key: 8317-MSDN-6595.

Plus

Register your copy of Visual Studio 2005 Beta 2 today, and receive access to a free developer book from Microsoft Press. Chose from online versions of Introducing ASP.NET 2.0, Introducing Microsoft Visual Basic 2005, and Writing Secure Code, 2nd Edition.

Plus

Thanks to Visual Studio Hosted Experience you can play round with NET 2005 Beta 2 for three hours in virtual lab.

Now that’s Microsoft’s way and I like it :-)

Now it’s time for a little fun.

Try to say it aloud :)

Three witches watch three Swatch watches.
Which witch watch which Swatch watch?

And super hard version:

Three switched witches watch three Swatch watch switches.
Which switched witch watch which Swatch watch switch?

And now the picture :-))


Get a focused, first look at the features and capabilities in Microsoft Visual Basic 2005, Visual Studio 2005, and .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 prerelease insights and code walkthroughs you need to get productive right away.

Check out this free eBook here

My friend recently had a problem with slow debugging. It took a few minutes before debugger went to the next statement.

Clearing all breakpoints helped. He had a lot of them. So if you have the same problem, check how many breakpoints you have defined.

There are two main things that drives me crazy:

  1. Erasing event handlers.
    Sometimes Visual Studio .NET 2003 erases event handlers.
    What I see is that it occurs after working in html mode. What you can do is attach events manually after the InitializeComponent() call, instead of using the properties editor.
  2. “Close all documents” closes VS. NET IDE
    When you click “Window/Close All Documents” VS.NET sometimes terminates (very, very fast. I have never seen VS closing so fast).
    To avoid this try “Window/Windows” then select all windows and click “Close Window(s)”.

« Newer Posts - Older Posts »