How to fix the Entity Framework error “could not be set to a ‘Int16’ value. You must set this property to a non-null value of type ‘Boolean’.”
The Problem You are writing a lovely Entity Framework web application and all of a sudden you get the following error: The ‘Status’ property on ‘SomeTable’ could not be set to a ‘Int16’ value. You must set this property to a non-null value of type ‘Boolean’. You go ahead and set the Status Property type […]
How to fix problems with Visual Studio 2010 Click Once publishing
The Problem So, you’re trying to publish a desktop app via the Visual Studio 2010 Click Once publishing, and you’re having problems with Visual Studio 2010 Click Once publishing? Are you getting errors like the part below Following errors were detected during this operation. * [2/22/2012 1:45:21 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) – Downloading https://www.Domain.com/PublishFiles/SomeApp/Application Files/ReportingApp_1_0_0_8/App_Data/Reporting.sdf.deploy […]
How to fix problems the Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering error
The Problem: You are trying to send an email in C# from your website (using Exchange as the email server), but you get the error message Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering. whenever you send the email. It is clearly not spam. The Cause: You are triggering […]
How to Fix Missing records in Linq to Entities
The Problem You are attempting to use Linq to Entities in the standard way, your linq model does not seem to have any records attached. You have missing records in Linq to Entities. You look in the database, and the proper record is there. You do a context.MyEntry.Count().ToString() and it tells you there is one […]
ASP.Net MVC 3 In Review – One Year Later
It’s been a little over a year since I’ve devoted myself to Asp.net MVC 3 and on the whole I’m quite impressed. Microsoft seems to have picked a definite direction for the web (the Microsoft Web Platform Installer makes a nice guide for it), and I like it. Here is my broad review, please bear […]
How to fix more problems with ASP.net MVC 3 RouteValues
The Problem You want to create urls that look something like https://SomeSite.com/Categories/Industrial/Fasteners/3.8-MM-Titanium-Wrench-Bolts/ so your site can rank extra high when people search for those profitable 3.8 MM Titanium Wrench Bolts. And in natural, RESTful fashion, your site and database is structured so that the Wrench Bolts are in a subcategory of Fasteners, which are part […]
Stronico gets absorbed by Digital Tool Factory
I am giving up the ghost on Stonico.com, and I will soon be shutting down the site and moving 200+ posts from the Stronico blog over here to the Digital Tool Factory blog so they can be part of an actively updated site (thank you 301 redirects). I expect that to happen slowly over the […]
How to fix problems with Linq to Xml Namespaces
The Problem You are trying to read data out of a standard xml file. I found a great Linq to Xml tutorial here. You get code that looks something like this XDocument data = XDocument.Load(HttpContext.Current.Server.MapPath("~/Invoices.xml")); List<Invoice> lst = new List<Invoice>(); lst= (from c in data.Descendants("invoice") select new Invoice { ClientName = c.Element("client").Value, InvoiceDate = Convert.ToDateTime(c.Element("date").Value), }).ToList(); and you get nothing but object type no found errors. Why? You have problems with linq […]
Make Sure to Claim Your About.Me Page
A new service has arisen lately that claims to be a yellow pages for people on the internet. A page that is about, well… me. Unlike all previous efforts to create such a thing, About.Me might actually work. You can see my profile here. It differs from Facebook in that About.Me is a public site, […]
How to fix alignment problems in IE 9
The Problem You have a beautiful, syntactically valid piece of html that SHOULD be aligned center in all browsers, and is aligned center in FireFox and Chrome, but refuses to align center in IE 9. The Cause I encountered this when I built the WordPress theme for this very blog. The cause of alignment problems […]