How to fix problems with IIS caching, OWIN authentication, Visual Studio and application names
The Setup I was running painfully low on disk space on my C drive and was working with a Visual Studio solution containing 12 projects. A compilation / build got hung up on something, I cancelled the build tried again. That build worked. So far just business as usual. However, I noticed that while I […]
How to fix problems with entity framework migrations
First – backup the __MigrationHistory table in the database Get rid of old migration files add-migration using the usual syntax, but with nothing modified Remove all of the “Create Table”, etc – the migration should look like public partial class domorenow : DbMigration { public override void Up() { from there do the update-database -script […]
How to fix problems with jquery data tables and a list of objects from ASP.net Web API
The main problem is that data tables does not expect a list of objects, instead it wants a differently formatted json object, something like data: {“Property”: Value} etc Instead it’s getting a pure list, like this [ {“Name”:”Value}, {“Name”:”Value}, {“Name”:”Value}, {“Name”:”Value}, {“Name”:”Value}, ] Solution – list out the values in the columns property of the […]
How to fix irritating problems with TFS and Visual Studio 2017
Update – I did some more Googleing and found this page Whereupon it says to In your Team Explorer panel, click on Home > Projects > New Team Project… Actually you have to click on Home to do it but that gives you Create from there Due to a variety of circumstances I’m creating new […]
What to do when intellisense stops working in java script files in Visual Studio 2015
Recently I was working on a project and noticed that none of my jquery code extension were working in Visual Studio 2015. After much rending of garments and gnashing of teeth I discovered that the jquery code snippet plug just doesn’t work with jquery 3 – I downgraded to the most recent version of 2.0 […]
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 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 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 […]