Dot Net Rookie Mistakes
secretGeek .:dotnuts about dotnet:.
home .: about .: sign up .: sitemap

Dot Net Rookie Mistakes

Includes such rookie problems as:
My freaking breakpoint doesn't work!
"Find" doesn't find what I'm looking for!
and the famous Bypass Proxy for Local Addresses Gotcha.

My freaking breakpoint doesn't work!

Reason:

Maybe the configuration settings are set to 'Release' instead of 'Debug'.

This normally leads to about two hours of frustration as a dot net rookie desperately beats their head against the keyboard. But it's a lesson that once learnt, is retained for life.

I can't get this freaking tool window to dock properly!

Patience is a virtue... Slow down and try again. You'll get the hang of it. And if it's any consolation, tool window docking is made far more intuitive in Whidbey (Visual Studio .net 2005).

I've released a windows executable to someone else and it doesn't work!

First thing it may be of course is that the .Net framework is missing from their machine. If that's the case, I'm sure a clever kid like you would find it in no time. No, I want to write about a slightly more interesting problem.

If you realise a tool onto a shared drive, or a server drive, you may get a security exception, something like this:

Unhandled Exception: System.Security.SecurityException: Request for the permission of type System.Security.Permissions.EnvironmentPermission, mscorlib, Version= 1.0.3300.0, Culture=neutral, PublicKeyToken=b76a5c461734e019 failed. etc.

If that's the case you may need to log on to the server in question and use the Microsoft .Net Framework Configuration utility (in the control panel/administrative tool). You may have to grant the necessary permission to the assembly in question. (You can also use the "Microsoft .Net Framework Permissions Wizard" to achieve the same result.)

"Find" (F3 or Ctrl-F) doesn't find what I'm looking for!

Find no longer lets you search the entire project. To do this, instead use 'Find in Files' [Ctrl-Shift-F]. C++ Developers have been doing this for years.

Another gotcha with 'search' is that unless you select 'Search hidden text' it won't search inside any collapsed regions (ie. #Regions that are hidden).

Source safe keeps showing me the wrong version of my project!

When dealing with branched versions of projects in source safe, they will sometimes (often?) hold onto the wrong server bindings, which basically means that although you want to work on one version, you keep getting shown another. If left untreated, This is of course configuration management Death. To fix this in Visual Studio .Net, go to: "File|Source Control|Change Source Control|Server Bindings"

ASP.net works fine at home - but when ever I try to run an application at work, I get a 404 error! God mother freakin damnit!

Okay - chill out on that language you nasty geek. This is often caused by failing to check the 'Bypass proxy for local addresses' checkbox in your browser (under Options|Connections|Settings|Lan Settings|Proxy Server).


Add or view comments about this page

Articles

What then, is b? What then, is b?
SQLike: A simple editor SQLike: A simple editor
Yet Another BizPlan Generator. Yet Another BizPlan Generator.
HOT GUIDS: A hot or not site for guids HOT GUIDS: A hot or not site for guids
How does life get better? One tiny hack at a time. How does life get better? One tiny hack at a time.
24 things to do, and 100 things *not* to do (yet) for building a MicroISV 24 things to do, and 100 things *not* to do (yet) for building a MicroISV
Venture capital won't kill Jeff Atwood, it will only make him Jeffer. Venture capital won't kill Jeff Atwood, it will only make him Jeffer.
A handy workflow image for newbie mercurial users A handy workflow image for newbie mercurial users
Fractal Feedback, a diversion into recreational programming Fractal Feedback, a diversion into recreational programming
Hump-Jumping: How the Education of Computer Science can be Saved, err, maybe. Hump-Jumping: How the Education of Computer Science can be Saved, err, maybe.
Suggested User Experience Improvements for DiffMerge Suggested User Experience Improvements for DiffMerge
SQL Style Extensions for C# SQL Style Extensions for C#
The Movie Hollywood (And My Wife) Doesn't Want You To See: Weekend at Jacko's The Movie Hollywood (And My Wife) Doesn't Want You To See: Weekend at Jacko's
Sysi: the ultimate administrators toolkit Sysi: the ultimate administrators toolkit

Archives .: secretGeek :: Complete Archives
TimeSnapper -- Automated Screenshot Journal TimeSnapper.com    
Version 3.3: true productivity boost

Next Action NextAction
Managing the top of your mind

World's Simplest Code Generator (html edition) World's Simplest Code Generator

25 steps for building a Micro-ISV 25 steps for building a Micro-ISV
3 minute guides -- babysteps in new technologies: powershell, JSON, watir, F# 3 Minute Guide Series
Universal Troubleshooting checklist Universal Troubleshooting Checklist
Top 10 SecretGeek articles Top 10 SecretGeek articles
ShinyPower (help with Powershell) ShinyPower
Now at CodePlex

Realtime CSS Editor, in a browser RealTime Online CSS Editor
Gradient Maker -- a tool for making background images that blend from one colour to another. Forget photoshop, this is the bomb. Gradient Maker


[powered by Google] 


How to be depressed How to be depressed
You are not inadequate.



Recommended Reading

The Best Software Writing I
The Business Of Software (Eric Sink)

Recommended blogs

Jeff Atwood
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Rhys Parry
Joel Pobar
OJ Reeves
Eric Sink

Aggregated Links

proggit
dzone
hacker news
dot net kicks

Human Link Machines

interesting finds
a continuous learner's weblog
arjan's world
weekly link post

LinkedIn profile
LogEnvy - event logs made sexy
ShuffleText - fuzzy search for .net
PC Smart Buys - Computer Hardware in Australia
home .: about .: sign up .: sitemap .: © Leon Bambrick 2003 .: privacy

home .: about .: sign up .: sitemap .: © Leon Bambrick 2003 .: privacy