Tag Archives: .NET Framework

Automatically log errors with Elmah in Script0Service-WebService calls

If you’ve used Elmah logging in the past then you know it’s a very useful and easy to set up tool in your web applications.  However, when we encounter errors in web services we sometimes do not get the desired logging into the xml file or database, depending on how you have Elmah configured.  This [...]

Posted in .NET Framework | Also tagged | Leave a comment

Calling an ASP.Net web service using jQuery and JSON.

Let’s say you have a webpage where you need to call a service but cannot perform a post back.  Recently I was on a client engagement where we needed to improve page performance by dynamically loading a navigation tree with a potential for several thousand links.  We implemented a solution that would load each branch [...]

Posted in .NET Framework, Ajax, Enterprise .NET, JavaScript, jQuery | Also tagged , , , | Leave a comment

Changing SharePoint Default ASP.NET compiler to use ASP.NET 3.5

Overview
While SharePoint 2010 supports .NET 3.5, it uses the .NET 2.0 compiler by default for ASP.NET pages.  If you write any UserControls or consume any DLLs in your hosted ASPX pages that utilizes .NET 3.5 features such as the var keyword, extension methods, and LINQ, you’ll get compilation error messages when attempting to access those [...]

Posted in .NET Framework, SharePoint, SharePoint 2010, SharePoint Foundation, SharePoint Server | Also tagged , | 1 Comment

Three .NET Best Practices to Keep in Mind

Practice #1: Catch Exceptions at the Highest Possible Level (Tier)
In general, exceptions should be bubbled up to the highest possible level to be caught and processed.  For example, in our project, a search goes through the following logical tiers:
UI -> Services -> Data/SharePoint/Refinement -> Web Services
There are quite a few instances where we’re catching exceptions [...]

Posted in .NET Framework, General | Also tagged | Leave a comment

MIX11 in review

I know this post is overdue, but I’m happy to say that in the time since MIX has elapsed, my wife and I have sold our condo and moved to a new home. I’ve also transition to a new contract, and I am excited to get my feet wet my new project. Despite [...]

Posted in Uncategorized | Also tagged , , , | 1 Comment

Intro to PLINQ

I recently had the opportunity to attend the Microsoft launch event for the new Visual Studio 2010. I was impressed with everything 2010 is bringing to the table, but what really caught my eye is the new Parallel FX library. Parallel FX provides developers with a set of tools which promises faster and [...]

Posted in .NET Framework, Enterprise .NET | Also tagged , , | Leave a comment

Content from LINQ Code Camp Presentation (6/13/09)

On June 13, 2009 I was privileged to give a presentation at the Hartford Code Camp at New Foundations in Bloomfield, CT.   The event was a great success, with 29 presenters,  35 sessions, and more than 150 people in attendance.  I’d like to say thank you to anyone who was able to attend my session [...]

Posted in .NET Framework, Presentations | Also tagged , , , | Leave a comment

Creating a Project Installer for a Windows Service

I recently had to create a Windows Service for a project I’m currently working on.  Rather than installing/uninstalling using InstallUtil, I decided to create a project installer to do the work for me.  It took a little bit of digging to gather all of the necessary steps, so here is what I did to get [...]

Posted in .NET Framework, General | Also tagged | 1 Comment

WCF Security Part 1

A few months ago I was given the task of setting up security for some WCF services we had created. After a couple days of scouring the internet for ideas and solutions, I ended up purchasing a book on WCF. Although there is a lot of information on the web about WCF and what security [...]

Posted in .NET Framework | Also tagged | 1 Comment