Archives

Archives / 2011 / April
  • Fixing MaxItemsInObjectGraph quota Error in WCF Service

    I have a WCF Service that occasionally yields a message like this one: Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota. Today isn’t the first time I’ve run into this message – I’ve fixed this issue before – but since this is the 2nd or more time I’ve run into it, I thought I’d post a quick resolution here so I can find it again later myself, and perhaps help some others.  There’s a rather long forum thread on this subject that ultimately includes the solution, but digging it out is a bit painful as is the case with so many forum threads, so I’ll sum up here and just … more

  • Exporting Blog Content from Community Server

    I have some old blog content scattered around a few different sites, and it’s on my list for the near future to consolidate it as much as possible onto a single blog engine and domain – one blog to rule them all – at least for my own stuff.  I wasn’t sure how to get my content out of http://weblogs.asp.net/ but a quick email got me the answer, which I thought I’d share.  To export your content from weblogs.asp.net in BlogML format, just log into your dashboard and select Syndication Settings under Global Settings.  Then, click the Export button under “BlogML Export”, as shown here: That’s it.  That will open up as a big block of XML – simply save it to a file.  … more

  • Configuring a WCF Service to Run Via HTTPS

    Yesterday I wrote about how to wire up jQuery UI’s AutoComplete add-in to a WCF Service to create an autocomplete search/navigation control.  Today I deployed the resulting code to production but initially had some trouble getting things to work.  The only real difference between the two environments is that in production everything goes through HTTPS/SSL, so I figured that had to be the culprit.  A bit of searching led to this blog post describing WCF Bindings Needed for HTTPS.  I pretty much followed its advice exactly and things worked immediately.  Here’s my code: 1: <system.serviceModel> 2: <behaviors> 3: … more

  • Optimizing Data Feeds for Stir Trek

    I wrote a couple of weeks ago about using Visual Studio 2010’s Performance and Load Testing tools to analyze and correct some performance concerns with the Stir Trek Conference web site (which, by the way, is 2 weeks from today!).  I realized, though, that there are a bunch of mobile applications that are set up to use the site’s XML and JSON data feeds, and I hadn’t measured or tuned these at all.  It’s likely that more traffic on the day of the event will come via these feed URLs than through the actual web site, since I expect most attendees to be using their phones rather than full computers to access the site’s data (there being no WiFi at the theater, nor any tables on which … more

  • Creating an Autocomplete Redirect Navigation Control using jQuery UI

    On an application I’m working on, there’s was an ASP.NET DropDownList used for jumping to a particular account.  This, when enhanced with the AJAX Control Toolkit’s ListSearchExtender, provided an awesome user experience for quickly navigating to a particular account.  Just click the control, and either scroll, or better, type in the first few characters of the name of the account, and it was instantly selected.  Tab or enter from there, and you’re done. Unfortunately, as often happens, the applicability of this solution to application has changed with time.  Where once the DropDownList had one or two hundred records, now it has thousands, and unfortunately its existing … more

  • Creating a Bot for the Rock Paper Azure Contest

    The Windows Azure team is holding a contest, and The Code Project is helping to support it.  As part of this contest, you can get free Azure compute time by signing up with the code CP001 here.  The contest is simple – Rock, Paper, Scissors, with bots, and with 2 new moves: Dynamite, which beats Rock, Paper, or Scissors, and Water Balloon, which beats Dynamite.  The catch: you only have a limited supply of dynamite. Get Started Here: My bot placed 4th out of about 50 in last week’s contest (look for ardalis, the same as my twitter handle).  I’m hoping to be in the top 3 this week.  I thought I’d share some tips to help you get started. Countering an Expected … more

  • Create a Windows Service in .NET That Can Also Run as Console Application

    I’m creating a simple windows service using Visual Studio 2010 and .NET 4.  I want to be able to easily test it by simply running the resulting exe without the need to install the service.  I did some research on this topic and found three helpful articles: HybridService: Easily Switch between Console Application and Service (on CodeProject) Run Windows Service as a console program Creating a windows service in visual studio 2010 (in VB) I found that the first article was a bit more work than the second.  In the end, I pretty much combined the latter two articles’ approaches and created a simple template (in C#) that can be used as a starting point for any … more

  • Installing ASP.NET MVC 3 Tools Update

    Phil Haack has a post introducing the ASP.NET MVC 3 Tools Update that you probably should read.  This is my own experience installing the update and upgrading an existing MVC 3 project to use the new tooling.  First, you’ll want to install the MVC 3 Tools Update, using one of these options: Web Platform Installer for ASP.NET MVC 3 Tools Update Download Page for ASP.NET MVC 3 Tools Update And then you can read the Release Notes as well. I’m not going to talk about what’s new with the Tools Update, except to re-emphasize the fact that MVC 3 didn’t change at all – only the tooling has changed.  So, don’t worry about whether your application will need upgraded or will be … more

  • Real World Performance and the Stir Trek Web Site

    I recently joined the board responsible for organizing the Stir Trek conference in Columbus, Ohio.  This is a great conference I’ve spoken at the last couple of years that’s held in a movie theater on opening day of a new great movie.  The first one, two years ago, was held for the opening day of Star Trek (hence the name), and last year was Iron Man II.  This year’s movie is Thor, which looks to be pretty awesome.  Here are some badges promoting the event: You can find more here. The site opened for registration a few weeks ago and sold out very quickly.  However, there were some issues with the web site that were troubling.  The site basically died under … more