Duck -Day 3

You can’t get too complacent in this game, I had a terrible day today, I have created 1 entity model Entities.edmx generated from the SQL db and that had been fine all day.

Suddenly it stops working and I’m getting the error:

MetadataException: Unable to load the specified metadata resource

I tried deleting and recreating the edmx file, no change. Renaming it then changing the code, still nothing. I checked the connection string, it was creating and it looked fine:

connectionString=”metadata=res://*/Entities.csdl|res://*/Entities.ssdl|res://*/Entities.msl;provider=System.Data.SqlClient;provider connection string="data source=xxxx;initial catalog=ctl;multipleactiveresultsets=True;application name=EntityFramework"” providerName=”System.Data.EntityClient”

It wasn’t looking good, so off to Google and Stackoverflow et al. I eventually came across this:

http://stackoverflow.com/questions/689355/metadataexception-unable-to-load-the-specified-metadata-resource

The answer that worked for me was to simply enter the assemblyname to replace the * in the connection string I then deleted and regenerated the same name edmx file in the wizard and ignored the generated connection string, but I suspect it would of worked as is and was probably just superstitious at the time.

Not sure how the problem happened, it might of been when I was regenerating the entity model.

I used to delete the model and regenerate it after a significant amount of stored procedure changes have occurred, but from now on I will only do a refresh for table changes and remove and re-add stored procedures to get the latest ones. My previous method messed up TFS anyway.

Good to see the code working again… good night.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
Posted in Coding Tagged with: ,

Duck Hunt – Day 2

Started putting the app. together, using code first even though I have some legacy SQL Server tables I’d like to include, lets do this right!

I’ve got a basic wish list of modules I think are essential to finish before I can get beta testers near the code:

Registration
Login and password management
Invoicing
Expenses
Customers
Timesheets
Projects

Sounds like a lot at the moment, but if I can get the bulk of it done it will have been worth it.

I’m not sure how much detail to put in here as I’ve no idea who my audience is or will be (or if there even is one) So apologies if this is too technical or not technical enough.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
Posted in Coding

Duck Hunting

logo

Ok, I’m not really hunting ducks!

Let me explain further, I am a developer and I’m about to undertake a 30 day experiment in order to fast forward the application I want to develop.

This application is called business duck (I know, sounds silly but please read on) It is a service that will help people manage their businesses and hopefully stay afloat during that all important first year.

I am a commercial freelance developer and when I’m working on contract for someone 9-5 I know a month goes by very quickly; but here I will not obey 9-5 and hopefully I’ll get a lot more done this way.

So I left the wife and kids, the cat and all the client work behind in London and moved up North to my Dad’s house for the next 30 days. I will try and get as much functionality working on Business Duck as possible; hence the title. I will be keeping a diary of how I get on here.

The tools

I will be building the app. with visual studio 2015, c#, MVC5, jQuery, Entity Framework 6 and SQL Server.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
Posted in Coding Tagged with: , ,

insanely great

Steve Jobs dies, it’s taken a few days for what this means to me to sink in. I guess I’m more empathetic to say Steve Wozniak or maybe Bill Gates than Steve jobs, as they are more technical, I can still admire Steve Jobs communication skills and vision.

Years ago in the late 80s I was a Mac developer (not working for Apple directly) up until 1993/4 when I bought my self a PC and learned VB. You had to be in that scene in order to realise how bad Apple had become over the 10 years of Steve Jobs absence. It was slow and we held on as long as we could but Apple sucked big time when Steve returned in 1996.

Having said that I queued up for the first iMac. But stayed with PC development long enough to see it become web development. Now I use a PC and Mac and develop on all sorts of platforms. It really is a great time to be a developer.

But what was Steve? Unlike some rubbish I’ve heard he wasn’t an engineer or even a designer, he did have a great sense of what people wanted and seems to push technical people to create very highly engineered products and systems. So well thought out and almost magical to use. Visionary is the best word I can think of.

My Dad is 89 and uses an iPad, he was struggling with his laptop (the screen, the keyboard and the lack of speed) and so he got the iPad on my advice. he loves it and is rarely without it. It empowers he’s communication, facebook, email, web is so accessible and quick.

I really hope that Apple can learn what Steve was about and keep doing it in his absence. I believe they can but then again I kept believing that last time too.

One more thing… Here is a great advert voiced by Steve himself.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
Posted in advertising, Internet, iPhone, Marketing, Retro

iPad 2 cover – Japanese bath

I must admit having a Japanese girl friend and going to Japan many times I did have a laugh at the new iPad’s cover and it’s amazing similarity to a domestic Japanese bath.

So much so I wanted to blog this so that people that didn’t realize it could join in.

I googled Japanese bath and got numerous images of the iPad. It looks like I joined the iPad/Japanese bath debate too late :-(

Anyway all is not lost I found a great site:

http://nihongoup.com/blog/totally-looks-like/

Which have a classic example of the comparison.

iPad2 / japanese bath comparison

iPad2 / japanese bath comparison

Rie and I joked about the idea of having a picture of an indignant sumo in a bath looking up as the welcome screen… hilarious!

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
Posted in Internet Tagged with: