Save yourself from pulling your hair and reading countless pointless/useless/incorrect posts on similarly useless Google results by following the following simple step: XmlIgnore and ScriptIgnore do not work for JSON.net serialization (using version 5.0) within the ASP.net Web API. You must use the [JsonIgnore] attribute. /// <summary> /// Gets or sets the model action state [...]
As a visual learner I think this tool is absolutely fantastical. It takes in a RegEx string and renders it out into a visual railroad diagram, giving a developer a quick and easy way to visualize what exactly the RegEx string is looking for. I highly suggest you check out RegExper to help debug those [...]
We recently ran into an issue at work where our custom MVC4 error handler, which utlizes the global.asax Application_Error event, stopped firing on our remote IIS 7 web server. It didn’t appear to be a code change that caused the issue so I searched for a good hour trying different fixes across the Internet. It was [...]
Forgive my brevity on this post but I am writing to you today from my cell phone. You may run into the problem I just had and I wanted to let you know what the issue was and how I solved it. Suppose you have the following code: DECLARE @decimalValue1 decimal = 5 DECLARE @decimalValue2 [...]
This is amazing. Microsoft has made the inner workings of their IL compiler open to everyone by exposing the inner workings through an API. As the Overview describes, they’ve rewritten the IL compiler in managed code and in doing so have un-boxed the black box that was once the best IL compiler for Windows. It [...]