Tag | Visual Basic Posts

I parse/scrape a few web page every now and then and recently ran across an error that stated: "The server committed a protocol violation. Section=ResponseStatusLine". Cause?: On this page, I found an answer that suggests simply that the server header does not conform to the HTTP v1.1 specification. [Paraphrased...] This issue is caused when a response followed by a request to {certain} services violate the HTTP v1.1 specification. As an example, HTTP header keys should specifically not include any ...
Technorati Tags: Linq,Enumerable.Range,Inter... Basic,VB MSDN Reference: Enumerable.Range Method I deal with a lot of RANGES at work for a multitude of reasons. When auditing data and databases, it’s often necessary to check the boundaries of values or to set them. I’ve recently become very fond of Enumerable.Range because it offers a lot of convenience when dealing with certain types of ranges and can allow a fair amount of complexity. For instance: If I need to represent ...
So you’ve got your free fancy express edition for VB or C#, you’ve created your new godlike application that you’ve just got to get out to the world and then the heavens rain all over your parade because you can’t find those other templates necessary to deploy your application. Now is not the time to give up, you can still get the job done with Click Once deployment, and Mary Lee over at the Visual Basic Team’s blog has got the tutorial to show you how. http://blogs.msdn.com/vbtea... ...
For those that are unaware, Chris Williams, a fellow VB MVP does a 9 Questions series with fellow developers and influencers. I was extremely honored to be picked this week and hope you find the series as interesting as I do. Chris is also an active participant in the VB Insider's List Serv and actively gives feedback to the Visual Basic team in Redmond. You can read my answers to his 9 questions over at GeeksWithBlogs.net at http://geekswithblogs.net/c... Technorati ...
Microsoft added a new keyword to C# and VB for 2005 (CLR 2.0): partial Don't use it. partial is used to physically break up a class definition into multiple files. When the compiler sees the keyword partial it finds all the related partial files in order to compile the class. This makes it possible to split the code for a single class across multiple files. By and large, though, this is a bad idea. Let’s look at why that is. If you find yourself typing"p-a-r-t-i-a-l" Stop! Reasons Given To Use the ...