Browse by Tags
All Tags »
.ms.net.tips (
RSS)
This stumped me for a while and I was not sure what I was doing wrong. Apparently it seems if you don't have the <configSections> element in your app config file as the first thing then you get a weird error saying "Only one <configSections> element allowed ...." (see example below). The description is misleading - you will see...
This is probably old news now, but something which has me concerned as it can cause lots of unseen issues. In .NET 3.5 the default ThreadPool count has been increased ten-fold from 25 to 250 per processor per process ! ThreadPools as we know are quite handy - not only do they help when an application comes under load instead of adding more pressure in a...
If you wanted to use the ThreadState property (which should only be used for debugging and not sync.), to find out if a thread is running. Since the Running state has a value of 0, you cannot do a bit test to discover this state. But you could do something like this to get the same result: if ((state & (Unstarted | Stopped)) == 0) //yea, its Running...
If you recall the previous post on instantiating static fields , there seems to have been a flurry of activity at Microsoft. As Peter Hallam writes , it made sense to improve the perf. for the static field initialisers and this you should see in Beta2 of Whidbey. The main issue here as Peter explains is if you have a field initialiser for a static field...
Microsoft is currently investigating a reported vulnerability in ASP.NET (does not affect ASP) where an attacker can send specially crafted requests to the server and view secured content without providing the proper credentials. This issue affects anyone running any version of ASP.NET on Microsoft Windows 2000 Professional, 2000 Server, XP Professional...
Those who are unfortunate enough to know me, know I keep saying Common Sense is not very Common (and how true it is). VS Mag has an article that list out some best practises for ASP.NET though they do it from a performance perspective, I feel everyone should do these irrespective what their perf. requirements are: Use Page.IsPostback - There is a lot of...
Well, this was long overdue. I had promised to upload my article that won a contest by osnews.com. I finally found a little time to upload it here, though the formatting is still a bit screwed especially on the code snippets. You can read the article . If you would like a pdf version of the same let me know and I can either put it up here or email it to...
In Visual Studio 2005, if you have a windows form and have a fair amount of threading going then that things can get pretty frustrating. As you know, because of the way that Windows handles its user interface, you should only be updating the user interface from the main thread. If you try to do it on other threads, bad things happen, and they can be pretty...
Since a String class, is immutable and when it is not needed, it cannot be programmatically scheduled for GC or in other words, it is not possible to predict when it will be deleted from the memory that can be a security risk especially if the string contains sensitive information such has credit card numbers, passwords, etc. This is where a new class in...
This is part 3 of the testing-series of posts where I cover White-Box testing (inspired by Microsoft's upcoming Testing Series of good advise from PAG). You can check out the earlier post here . White-Box testing (Glass Box/Clear Box/Open Box testing) White box testing assumes that the tester can take a look at the code for the application and create test...
This is really part II of my testing series (as I have become to call it) - I had an earlier post on Unit Testing . I recently had the opportunity to review some of the new stuff coming out of the Prescriptive Architecture Group at Microsoft and here is some of the interesting things proposed by them. When you are doing Functional Testing of your application...
If you want to understand the new stuff in the next release of Visual Studio.NET Joe has an article detailing demos that you can plan with. This is a good starting point and covers a lot of areas like: Understanding Code (MDLView) - The first demo is all about how you get up to speed on an existing code base. To emphasise the problem I renamed nearly all...
Incase you did not hear, then which planet are you living on, but Google exposes their offering via a Web Service that you can use to search for ... well ... stuff. If you have programed on the .NET CF then you know this is quite simple (especially if you program on the “regular” .NET). Incase you have not dabbled in this and are interested in...
PAG group just released the new library . If you have been playing with the beta of this, you know there is lots of good stuff. A excellent reference to keep near you! Now that this is “public” I will be posting some of the things I find here - watch this space, and till then, read up and enjoy!