March 2010 Entries

WCF Data Service Error – Request Error

I’ve done this twice now and I know if I’ve done it others probably have as well.  Here’s the short story and the fix. Let’s say you create a new project to play around with a WCF Data Service to create some OData.  You add an entity framework model from an existing database and then add a WCF Data Service.  Things are going along nicely.  To get something up and running quickly you modify the WCF Data Service to look like the following.  All looks good. ...

WCF Service Cannot Be Activated Because of ASP.NET Compatibility

I just created a brand new solution in Visual Studio 2010 Release Candidate playing around with some new ideas on WCF Data Services. I launched the solution to test my service and I was greeted with this lovely error: The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode setting as 'Allowed' or 'Required'. This is a pretty easy fix but I thought I’d blog it...

My Visual Studio Color Settings

Several people asked me today what settings I use for Visual Studio after I twittered the following earlier today: Here’s what my environment looks like.  I use a dark theme.  I can’t tell you how important this was for me after I had eye surgery.  Still is, I can’t stand a lot of glare. And here is a web.config file view. Very simple color scheme. If you’d like to try this theme out then download the file below.  Within Visual Studio go to Tools->Import and Export Settings to import. ...

Help Me Connect the Southern Community

If you are reading this and you live in the South as a .NET developer or someone who is learning .NET or finds it interesting I need your help.  Head over to the following URL and join in with fellow developers and community within the South. http://southerndevs.groups.live.com UPDATE: Note that it asks for a reason *why* you want to join. I would turn that off but I can’t in the settings so put in whatever. Purpose of the group The purpose of the group is to break through the boundaries of the community.  To let it...

Refactoring CSS and Javascript using Coderush/Refactor

Did you know you can use the Visual Studio plugin CodeRush/Refactor in .ASPX pages as well as within JavaScript? It is something that isn’t demoed a lot but yes, it works! Here’s a sample of me highlighting some inline styles and pressing the refactor key (I have mine bound to ctrl+(num plus) key).  Creates this automatically by adding it to my styles. Press escape after you type in the name you want to jump back to the marker where you were. And you can also refactor JavaScript with Coderush/Refactor so...

«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910