How to fix 404 errors in asp.net web api 2
So – you’ve tried everything and you’re still getting weird 404 errors in asp.net web api 2. You’ve tried the 4 main ways of fixing it, and you still get nothing – that was what I did anyway. Finally I started a new project in the solution, and noticed that the problem only occured […]
How to fix the Compiler Error Message: The compiler failed with error code 255 error
Recently I was deploying some sites, and got the error “Compiler Error Message: The compiler failed with error code 255.” – which looks like this after some research the cause of, and solution to was all in the nuget package manager. I had recently added a new project to the solution and some of the […]
How to fix the The type initializer for Emgu.CV.CvInvoke threw an exception problem when deploying to azure web apps
I’ve been doing a little Facial Recognition lately – then came across the following error “The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception.” after I deployed to azure web apps. Everything was working fine locally. After doing more digging I realized that the actual .exe files for open cv were not being included in the […]
How to set the zoom level in Visual Studio 2015
This is non-intuitive, but all you have to do is click in the zoom area – type in the value (in my case 90%) and then click enter, NOT TAB OUT. That just threw me for ten minutes.
How to fix the System.InvalidOperationException: The property ‘PropertyID’ is part of the object’s key information and cannot be modified problem
Often times when you are using Entity Framework and trying to update objects using the handy db.Entry(useableProperty).CurrentValues.SetValues(property); Method you will encounter the error InvalidOperationException: The property ‘PropertyID’ is part of the object’s key information and cannot be modified problem After lots of thought I came across the remarkably simple answer, to wit – the PropertyID […]
How to fix an odd problem with autonumeric.js
So, you’re using the standard autonumeric.js jquery plugin on your html 5 site – you set up the initialization properties and nothing happens – what is wrong? First check to make sure that your textbox is of type “text” and not type “number” – that threw me for about ten minutes today.
How to fix problems with FoolProof Validation in asp.net mvc
For some reason the otherwise delightful nuget Package FoolProof Validation does not work with modern version of the entity framework – rather, the validation works just fine, but it chokes when you try to update the database with entity framework. The workaround I found was to validate on a view model – and then translate […]
How to fix problems with Jquery Validate and dynamically generated forms
I recently came across the problem of validating dynamically generated forms with the jquery.validate plugin – everything worked well with the original form, but when there were multiple forms available I got peculiar syntax errors. A quick googling told me to simply add the following code $(“form”).validate(); to the javascript and everything would be fine. […]
How to use query strings in framesets with asp.net mvc 5 routing
The problem – I was working on a project that required frames – and I was trying to pass a querystring value to the frameset, as in /FramePage/?page=/SomePageOffSite.aspx – my first thought was to just pass the url of one of the frames to the frameset page as a string. I made the model for the […]
How to web deploy to a virtual directory or web application in IIS and Visual Studio 2013
For whatever reason you cannot directly deploy (using Visual Studio WebDeploy) to a virtual directory in IIS. This threw me for a bit until I created both the virtual directory, a separate website, and pointed them both to the same directory. Then you just deploy to the otherwise unused website, and your web application shows […]