Tag | .NET Posts

Contents Purpose Audience What is floating point number? Types of floating point number in C# System.Single (float) System.Double (double) System.Decimal (decimal) Caveats of floating number Comparing results of double and decimal operations. Comparing performance of binary and decimal floating number When to use decimal? 1. Purpose This article compares the pros and cons of using different floating numbers and discusses when to use what. It stresses upon the implications of using floating numbers ...
Using locks to implement a thread-safe collection is rather like using a sledgehammer - unsubtle, easy to understand, and tends to make any other tool redundant. Unlike the previous two collections I looked at, ConcurrentStack and ConcurrentQueue, ConcurrentDictionary uses locks quite heavily. However, it is careful to wield locks only where necessary to ensure that concurrency is maximised. This will, by necessity, be a higher-level look than my other posts in this series, as there is quite a lot ...
Let me start off by stating that I am in no way an expert on MSBuild, writing build scripts, MSDeploy, Web Deploy, etc. I learned a lot in this process about those things which helped me find a workable solution. I'm sure there are better ways to accomplish what I'm trying to do, but this is what I came up with. My goal in writing this is that someone will hopefully avoid wasting their time as I did trying to get app_offline.htm to work.For those of you who don't know what app_offline.htm is, it's ...
Few days ago I have received an invitation from Packt Publishing to review this book. I myself is a big fan of Generics and is very interested about it, so I've decided to give it a go. Thank you for letting me review this interesting book. .NET 4.0 Generics (Packt Publishing) is written by Sudipta Mukherjee. The book is primarily targeted to beginners and intermediate programmers who want to know what .NET Generics is all about and how it can help solved real world problems. The book covers the ...
Red Gate launched the Ants Performance Profiler 7.0 product today. This application is simply amazing! SharePoint 2010 support! Decompilation without PDB using Reflector’s engine! Azure and EC2 Support! Seriously, if you need a profiler for your .NET applications this one takes the cake. They have some great videos online to show you how the product works and the team is very interactive if you have questions or concerns. There is also a 14 day trial so you can give it a go. The license fee is only ...
We’re only in February, but the rest of the 10 months left in 2012 look to be very interesting in the Microsoft space with products that Developers and IT Pros will find intriguing. Redmond Channel Partner posted a great article outlining what products we can expect to make an appearance this year and when. Some highlights: Windows 8/Windows Server 8 Well we all know this is coming, and that it will be a huge focus of Microsoft’s marketing (once their people are actually allowed to talk about it). ...
Say you're an experience .NET developer, but you want to broaden your horizon and dive into SharePoint 2010 development? I'm giving a 8 day deep dive training in Oslo on March 14th, 2012.Topics that I'll address are:installationconfigurati... and viewscontent typeswebpartsevent receiverstimerjobsoptimizat... large listsany many moreIt's an 8 day training, so it's quite intensive. We're starting on a Wednesday, continue until Friday, have a break in the weekend and then the whole next ...
The same article in the TechNet. If you are working with queues in BizTalk Server, the most possible it is the MSMQ (in my experience). MSMQ is an old man of the Microsoft technology stack. It was created when there were no good standards for messaging. Now MSMQ is wrapped partly in the .NET System.Messaging namespace. It is just a small facelift. MSMQ is still a proprietary technology without well-defined messaging protocol. It means, you cannot use the MSMQ messaging protocol without MSMQ itself. ...
Classes starting soon...First topics to start with will be Visual Studio and .NET 4. After that there are sessions on SharePoint 2010 - Admin, Dev & General Usage Inviting all the people who wish to expand their knowledge in the field of Microsoft Technologies. I will be conducting FREE classes on various streams in Microsoft Technologies like: SharePoint - Administration and Development Visual Studio - 2010 C# and .NET 4 LINQ Team Foundation Server 2010 SSIS ASP .NET Programming Office Apps ...
Today's $10 Deal of the day book from APress at http://www.apress.com/97814... is Visual C# 2010 Recipes - A Problem-Solution Approach"When you are facing a Visual C# 2010 problem, this book likely contains a recipe providing the solution—or at least points you in the right direction. Even if you are simply looking to broaden your knowledge of the .NET Framework class library, Visual C# 2010 Recipes is the perfect resource to assist you. " This is an excellent book full of "How To" examples ...
Translate this pageArabicBulgarianCatalanC... SimplifiedChinese TraditionalCzechDanishDutch... CreoleHebrewHindiHungarianI... TranslatorCheck out this page in {0} translated from {1}translated fromOriginal:Translated:Aut... translation powered by Microsoft® TranslatorStart translatingStop translatingCloseClose ...
Random and unique are two different words with very different meaning. To generate random number, there are many algorithms but none to guarantee unique number. This causes a problem of non-unique GUID and SessionId generated in any application whether you use .NET / java / php. (I have seen this in ASP.NET and java). If you grill down to the algorithm that is used to create SessionId, it does never guarantee a unique number whenever it is generated. When you hover over the SessionId in ASP.NET application ...
Most of us spend our time in Visual Studio writing .NET code within a Visual Studio solution. Given this situation we find it very easy to integrate with Team Foundation Server for our source control and have a well known work pattern. But what happens when you want to use TFS as source control for non-Microsoft development? The most important thing to remember is that source control should be as transparent as possible to the developer. If the particular language or product does not have an Integrated ...
Inviting all the people who wish to expand their knowledge in the field of Microsoft Technologies. I will be conducting FREE classes on various streams in Microsoft Technologies like: SharePoint - Administration and Development Visual Studio - 2010 C# and .NET 4 LINQ Team Foundation Server 2010 SSIS ASP .NET Programming Office Apps & Open XML Basic SQL Server and Queries Windows Azure One Note All the courses will be taught using Microsoft Official Curriculum. Soft copies of Lab material, Virtual ...
We’re well under 2 months to Prairie Dev Con – West in Calgary, and it appears some of you need an extra push to register. So why attend? Well, there’s the three days and over 80 sessions spanning software development, IT Pro, and Agile topics. There’s the pre-conference workshops available on WP7, TFS, and Agile as well as the Microsoft IT Pro Camp and Azurefest events. And there’s the value – comparable conferences in other cities will run you almost double the cost in registration, hotel, and ...
Hi, it's really handy to be able to add Trace to your .Net application using the System.Diagnostics.Trace class.The only problem is how the heck do you get it to Trace out at runtime?The simple solution is to add this to your app config file... <system.diagnostics> <trace autoflush="true"> <listeners> <clear/> <add name="textwriterListener" type="System.Diagnostics.Te... initializeData="c:\temp\out... traceOutputOptions="ProcessId, DateTime"/> ...
Today I was finally able to post the registration site for an upcoming full day workshop that our .NET User Group had been anticipating for quite some time. Although this seems like a trivial thing to get head over heels excited about, getting to this point took months of planning, organizing, polling, budgeting, begging and cold calling. So pardon me while I round a few cartwheels to celebrate this milestone. When the good folks at Microsoft put forth the offer to the User Groups to host a full ...
While the title of this post suggests focus on LINQ to Twitter, it also indicates that I’ll be discussing how to build a Windows 8 Metro application. The application itself will display a list of tweets from Twitter’s public feed. In the sections that follow, you’ll read background information on pre-requisites to understanding the post, learn how to get LINQ to Twitter working with Visual Studio 11, and then see a step-by-step on how the application is built. Getting Started You can build Metro ...

This is my first blog so am quite excited :) Let me start by introducing myself. I am a Biztalk Consultant , having worked on Biztalk and .Net over the last 6 years. My other interests are watching all kinds of sports and working out in the gym. I would be using this blog to pen down my experience in integration space and some fun stuff in my areas of interest.

Its been a while since I posted something in this blog.I've been dealing with a memory leak issue for the past week so I thought about sharing the experience I gained with you.First of all, when it comes to memory management in .NET some people think that it shouldn't be trusted so GC.Collect is triggered everywhere they think it will help lowering the memory working set of their application. It's just plain wrong. I had very rare occasions where I needed to explicitly collect objects from the GC.A ...
Issue:System.InvalidOperati... is not valid due to the current state of the object. System.InvalidOperationExce... Operation is not valid due to the current state of the object. at System.Web.HttpRequest.Fill... at System.Web.HttpRequest.get_... at Rhino.Commons.LongConversat... privateConversation) at Rhino.Commons.LongConversat... at Rhino.Commons.HttpModules.U... ...
I’ve dated men that fall into various categories, from musicians to jocks to the average “Joe”. But my current beau falls under a new category for me: the self-proclaimed geek. I wasn’t sure if I’d be able to handle it at first… dealing with someone who is just like me. After all, I’ve been told that I can sometimes be demanding, maybe even a bit overbearing. Surprisingly enough, I’ve really come to enjoy spending time with someone I can relate to. Someone just like me. And so I decided to list out ...
As a brief interlude from my Concurrent Collections series, I thought I would give an roundup of how the lean startup experiments have been progressing. As you can expect, there's been some good aspects and some bad aspects. The experiments so far After lots of discussions, arguments, posing and ruling out hypotheses, we came up with two 'starter' hypotheses we could test fairly easily: Customers don't agree to send data on how they use SmartAssembly; which features they use, the versions of .NET ...
JetBrains have recently released ReSharper 6.1, along with compatible updates to dotCover (version 1.2) and dotTrace Performance (version 4.5.2). Here is a list of common developer tasks that ReSharper 6 helps handles better than previous versions: Improve Visual Studio responsiveness: While developing ReSharper 6.0 and 6.1, Jet Brains have fixed more than 200 performance and memory consumption issues, as well as over 2900 bugs!Use proper tooling for web development: ReSharper 6 introduces extensive ...
Hello All, I am Srihari.Ganadinni,I have 42 months of experience in .Net design and development,I have worked on Winforms,WCF,Build Automation using code,Linq,Lambda Expressions,Expression Trees and Design patterns. I have keen interest in learning Design patterns for Concurrent,Parallel and Distributed systems,building frameworks and anything that catches my interest in microsoft technologies. Apart from work I enjoy Playing Carroms,Paintind and reading Philosophy,Learning Foreign language and Political ...
An important update to the Microsoft Web Protection Library (AntiXSS Library v4.2.1) is available at http://wpl.codeplex.com/rel... reason for the update is as follows:"This release addresses a vulnerability in the HTML Sanitizer, MS12-007 http://technet.microsoft.co... and adds full support for .NET 4.0 as well as restoring support for .NET 2.0. The sanitizer has been changed to remove all CSS it encounters, this new behaviour means that if you were ...
I was trying to port an old app from c# 2.0 to WPF in 4.0. In one place I was using a Timer to handle filtering of a list from a text box. This kept the list from constantly being updated while the user is typing because it was getting data from the database. I set a 250 millisecond interval so whenever they paused it would update the list. The Timer class apparently got completely redefined in .Net 4.0. It used to have a Tick event, but this was changed to Ellapsed. Also I found out that it didn't ...
As many of you may already know that, I'm working at a global gaming and entertainment company taking the responsible for design and implement the next generation platform which will be running on the cloud, and also design the cloud platform as well. Currently one of the goal is to replace the active directory integrated security and identity solution with certificate-based solution in our product. In short, we need to work with Active Directory Certificate Service to request and issue the certificates ...
Here’s a site, by Lucian Wischik, that contains 101 Async Samples: http://www.wischik.com/lu/A... There are examples in both C# and VB. Some examples have a selector that lets you toggle between .NET 4.0 and the new Async syntax. Each example has a run button so you can execute and see the return value. Throughout, you’ll see many different ways to use Async. I think it’s a very nice resource. @JoeMayo ...
This article is a Part 6 of the Interview Questions series. Part 1: BizTalk: Questions for interview without answers Part 2: BizTalk: Interview questions and principles Part 3: WCF: Questions for studying and interviewPart 4: WCF: Questions for studying and interview: DiscoveryPart 5: WCF: Questions for studying and interview: Routing Service Part 6: BizTalk: Advanced Questions Note: There is BizTalk Administrator interview questions by Tord Glad Nordahl. It is time for fun! These questions are for ...
In this blog post I thought I would talk a little about one of my favorite features of VS2010, Intellitrace. Intellitrace is debugging on steroids. In regular debugging session you can see the values of variables at a certain time, but you can’t go backwards, and you cannot see the state of the entire system. This means that some bugs cannot be reproduced. With Intellitrace a log file is created that allows you to debug the file. This is similar to a dump but has lots more information, and when run ...
Axiom can be a little daunting when you first start working with it. This guide is designed to get you through the first initial hurdles and get you going on your first project using the library. A Brief History Axiom was started in 2003 by Chris McGurk ( leedgitar ) as a port from the popular OGRE project . Chris led the project until 2004, adding many features and providing a solid base from which to continue. I ( borrillis ) became the project lead in September of 2005 after a long pause in the ...
Luego de varios días sin hacer post, hoy nuevamente retomo para mostrar un pequeño ejemplo de un tema que últimamente ha sido muy tocado en los foros de asp.net de MSDN. Cómo hacer un menú dinámico con MySql? Antes de empezar a mostrar como crear el menú voy a explicar algunos problemas que encontré durante el desarrollo del ejemplo: 1. Para el ejemplo, utilizaremos la versión beta 6.5 del conector de .net para mysql, sin embargo, deben tomar en cuenta que este conector esta en desarrollo y aún carece ...
The concurrent collections, located in the System.Collections.Concurrent namespace, were introduced in .NET 4 as thread-safe collections that could be used without locking, and there are plenty of posts and articles out on the interwebs giving an overview of the collections and how to use them. Instead, I'll be focusing these posts on how the concurrent collections are implemented; how they achieve thread-safety and the principles behind their implementation. Not only because I find that sort of ...
Hello all, before I start this article, I want to wish Happy New Year 2012 for you, hope this year will bring more success and happiness for all of us. In this article, I will show you how to create web.config file for ASP.NET application. The .NET Framework relies on .config files to define configuration options. The .config files are text-based XML files. Multiple .config files can, and typically do, exist on a single system. And FYI, I use HostForLife.eu as my hosting provider.System-wide configuration ...
[Source: http://geekswithblogs.net/E... This is the first of a series of posts covering my generic anything-to-object mapping library on github: Sixeyed.Mapping. 1. Mapping and Auto-Mapping Objects 2. Mapping and Auto-Mapping Objects from IDataReader 3. Mapping and Auto-Mapping Objects from XML 4. Mapping and Auto-Mapping Objects from CSV 5. Comparing Sixeyed.Mapping to AutoMapper Enterprise projects typically have entities of the same kind defined multiple times to encapsulate different ...
I presented two talks on windows azure recently. One among them was focusing on Windows Phone 7 app development. The other one was on MVC3 ASP .Net app. The idea was to introduce how Windows Azure can be leveraged in both these exciting platforms. The talk was demo centric; below are the slides and the demo / webcasts recordings links for the same. Talk one- Building Windows Phone Applications with Windows Azure Platform and Visual Studio 2010 Demo included: Creating a Demo application from VS 2010 ...
I recently accepted to do a review of “The Learn Microsoft Visual C# book 2010” by John Paul Mueller. I was in two minds on whether I really wanted to read this book – in it’s description it says it is targeting fundamentals of modern programming with Visual C#, but I wasn’t sure how fundamental it would be and since I have been working with C# for a while now, I wasn’t sure if it would be worth my while. After going through a few of the chapters of the book I would say this really targets very basic ...
What is the Streetlight Store?The Streetlight Store is a .Net library which uses the Entity Framework and a Microsoft SQL Server database to perform the "back-end" operations required for a typical e-commerce application. While the Streetlight Store is intended to be used for e-commerce, it is "front-end agnostic" meaning that you could just as easily create a point-of-sale user interface.Why is there a Streetlight Store?Why develop another e-commerce solution when there are so many already available? ...
A little more than three months ago, Microsoft hosted the //build/ conference at which they unveiled the upcoming version of Windows (commonly called Windows 8, though I don’t know if the marketing folks have accepted the fact that that is the name most of us are expecting for it yet). They released to the developer world a build of it called the Windows Developer Preview (and Windows Server Developer Preview) along with various tools for creating the new “Metro style” apps. I wasn’t able to make ...
Wishing a very happy and blessed New Year to you in advance! A new release of Microsoft All-In-One Code Framework is available on December 29th. We expect that its 11 new code samples covering typical programming scenarios in Windows Phone 7, ASP.NET, WPF, Windows Shell, and WDK would ease your development in the coming New Year. You can download the code samples using Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, ...
Yes, we all know that the IT field is ever-changing. Yes, we all know the importance of keeping up to date on emerging technologies. Yes, we all know that you may never have the opportunity to use a lot of those technologies in your day-to-day role. So here is where the great divide comes… Those that are believers that the responsibility lies with their employer to provide ongoing training, and those that inherently take on the responsibility for themselves. The difference between the two views is ...
Every now and then I go to Tiobe to see their ratings on the popularity of programming languages. Usually there is nothing exciting out there, just a few small moves of languages so I was interested to see in December Tiobe had a headline of C++ about to be dethroned by C# Looking at the stats, sure enough, according to Tiobe C# is on the verge of taking the number 3 spot. It will be interesting to see what happens when Windows 8 hits the market with what seemed to be a revival of C++ during Microsoft’s ...
Yesterday I received my copy of “Pro Windows Embedded Compact 7” by Avi Kcholi. http://www.apress.com/97814... It’s a great book for people that have some experience and knowledge Windows Embedded Compact 7 and want to learn the “black magic” behind device driver development on this operating system. The book guides the reader trough different aspects of drivers (and BSP) development, starting from the foundation and reaching some advanced topics that are not covered in the on-line reference. ...
The holidays have become a time rich with traditions for me. Family wise, its a time to get together and celebrate the people that love and support us throughout the year. Turkeys are cooked, gifts are opened, and well wishes are shared. But in the midst of all the goodness and emotion is another holiday that lends itself more to what Scrooge might value – capitalism, thrift, and commercialism. Yes, I’m talking about Boxing Day! Boxing Day, for my American friends, is very much Canada’s Black Friday ...
Over the past few months we have been tweaking the usability of the Geekswithblogs.net Admin Tool for editing posts. We definitely suggest using Windows Live Writer for publishing you blogs due to the awesome plugins and support of image uploads, we understand the need for a non-Windows editor for posts or updates. One of the bugs submitted to us in the usage of our text editor was reformatting of posts when you publish from WLW and then make changes from the admin tool. The tool was eating up all ...
Over the past few weeks we have been cleaning up the skins to support most modern browsers and monitor resolutions. This will cause your content area to have more space and support larger images. If you see any problems, please email us at support@geekswithblogs.com and we will get back to you ASAP. We have also added some changes to the “Share Link” feature to make it a little cleaner and support for Facebook, Twitter, and Technorati. We will add G+ once they support the ability to publish from ...
I would like to share with you some exciting news from the Gizmox labs. If you haven't heard by now the Visual WebGui Mobile Team @ Gizmox has been working on a .NET Mobile Framework for a few months now. This mobile dedicated framework continues the Visual WebGui vision towards the mobile development workd by enabling Microsoft core .NET developers to leverage their existing skills for developing cross-platform HTML5-based mobile apps within Visual Studio. As with its Web Framework, the Visual WebGui ...