Removing a lock on a file with process explorer

15. January 2014 14:44 by Chris in   //  Tags:   //   Comments (0)

I'm sure to have to look this up again, largely care of:

Process Explorer (ex Systernals) is good for troubleshooting/ resolving file locks.

You can download it from Microsoft

Use the icon that resembles a pair of binoculars... or use the Hotkey Ctrl+F(find).

Type the name of the file... it will show you which process is presently running and has locked the file for use.

You can then release the lock should you so wish.

In the case which prompted this quick post the issue was actually the locking level in use with log4net but maybe next time ... ;)


ASP.NET on Windows 8.1/ IIS 8.5 (trials and tribulations)

15. January 2014 13:32 by Chris in dev, IT Pro, Windows 8  //  Tags:   //   Comments (0)

When I upgraded my main dev laptop from Win7 to Win8 (then 8.1) I had problems with ASP.NET under IIS. I put off sorting the issue out as I had IIS Express working adequately for development but this was never going to be a long term solution. Hopefully the issue arose due only to my upgrade path but it has come time to sort this out and surely this path must be fairly common?

My first issue was a HTTP Error 500.19 which helped with - as per one contributor I had to set Modules also to Read/Write instead of ReadOnly. Next though the site wasn't picking up my default aspx document and, digging further, even though ASP.NET was apparently installed (2.X and 4.X) handler mappings for aspx were notable by their absence (MIME type mappings are not required nowadays as these are just for static types). Oh, as an aside as well the .NET installers don't work on windows 8.1 (the solution google liked) - you must instead enable the Windows feature, not that this worked fully in my case.;( 

To reinforce this with a little detail, the next google hit was i.e. manually installing ASP.NET

I tried running 
aspnet_regiis.exe -i
But I instead received the message that this wasn't supported in this version of windows and that I should instead try one of: turning windows features on and off, the server management tool (N/A) or the dism.exe command line tool.
So in lieu of the command line option I next tried uninstalling and installing again (2.X and 4.X) - the thought did occur that this might be just an ASP.NET 3.5 problem, as that was the version of my test site. No joy.  Next, brute force approach and I tried adding all features under ASP.NET under windows features. Still no joy. Then I happened across a response someway down in which referred to Windows 8 and hence possibly my problem as there was remarkably little from google on such Windows 8.X/ IIS 8.X issues. This referred to an additional 3.5 setting  within Application Development Features. I had to google again as this is several levels down in the config:
Got there in the end and it worked for 3.5 though as I'd broken a few things along the way I'm not sure if I'm ready to try 4.X as well!
Microsoft sure don't make life easy sometimes!

Welsh / Cymraeg Support in Windows Phone 8

12. December 2013 15:29 by Chris in   //  Tags:   //   Comments (0)

I'm writing a Welsh app and I suddenly wondered whether Windows Phone 8 would support entering Welsh language text and I'm thinking primarily accents here. Google told me that if I held down the onscreen key while entering text I'd get the accented versions of the characters. Well I got some more common ones but no ŵ, for example. I investigated the phone language setting options: 

  • Phone language: there was a general "English" setting (nothing UK/ GB specific) and a English (US). I was set to the default "English"
  • Country/ region: UK here; no Wales/ Cymru so left this at UK
  • Regional format: there was a UK (Welsh) option here so I tried this (it did require a phone restart)

Was I then able to enter the accented characters as are required of the Welsh language?

No. This did seem to change my UI language to Welsh though differences were minimal; I guess it is up to app developers to ensure they support the regional formats.

However, if I then went to Outlook and tried to enter a few Welsh words with accented characters - no joy ... I couldn't enter ŵ or ŷ but then again I'm not sure how to enter them in the web UI I'm using to write this blog entry!

Interestingly indicates 'On iOS devices Welsh accented characters such as ŵ, ŷ, ô and ï are available by pressing and holding the characters on the virtual keyboard, and the Calendar can also be shown in Welsh.' and 'On Android devices, user-created keyboards can be used' though I've not checked either option out.

Next step is to ask Microsoft if I can enter accented characters at all?






Setting up Skydrive alongside Skydrive Pro

29. August 2013 12:58 by Chris in ForTheRecod, IT Pro  //  Tags:   //   Comments (0)

I imagine many people will be in a similar position to me - they have a main computer which they use for both personal and professional activities. A few less perhaps will have an Office365 account for work they would like to sync their work documents with, whether as another element to their backup strategy or so they can access these same documents from other computers/ devices. Now we all probably know there is the free Microsoft Skydrive service offering for syncing files to the 'cloud' (an overused term but we'll run with it). What some may not know is that their is also Skydrive Pro, which seems to be confusingly named as it is not really the same thing as Skydrive at all but rather ties in with Office 365 SharePoint. Importantly it offers more storage as well (currently 25GB), unsurprisingly as it is a paid for service. Saying that, the free 7GB of Skydrive isn't too shabby and should be ample if you are not storing video up there, which is probably not a good idea for your bandwidth utilisation anyway!

So you could sync all your files to the cloud via Skydrive but if  you in the same situation as me you might prefer the tidy, logical separation of syncing work files to the Microsoft business offering (Skydrive Pro) and personal files with the Microsoft consumer offering (Skydrive).

Here's how I did it:

  • Firstly Skydrive syncs to a folder on your C: drive by default and however much space I allow on my C: drive partition I always seem to start running out of space in the end so before I moved even more docs there I split out my work and personal files (yes, some did overlap - make a call) and created directories on my d: drive for them. Note that my focus was on documents and images (I'm a web developer), not photos or other media - that may come later but I currently have a distinct backup mechanism for these.
  • I had set up Skydrive previously and what was being synced in my Skydrive was legacy from way back when I first set up my "windows live/ Hotmail/ whatever it is called now" account. There is some old spurious stuff in there but I'll leave for now and tidy up in the future. What I needed to do was add my later personal files.
  • I had installed Skydrive before and I needed to repoint at my new folder on D:. Google was my friend and pointed me at reference 1 below - the Skydrive icon in the system tray exposes settings where you can unlink Skydrive. If you then select your existing Skydrive folder it restarts it's setup process and you can repoint it at another location - my new folder.
  • Skydrive is all well and good now, what about Skydrive Pro. Well I found this very confusing in comparison. As Paul points out in his article (2 below) you install and run the client and it comes up with an obtuse dialog asking 'what library do you want to sync?'. What on earth does this mean? Well, as Paul explains (thanks!):

 'If you’re lucky, someone in IT has explained what URL you need there, or maybe you’re just particularly technical. But if not, no worries. There’s a very simple way to get this configured properly. Simply sign into Office 365 on the web and navigate to that SkyDrive link in the toolbar. In the SkyDrive Pro web interface, you’ll see a SYNC button in the upper right corner.' (2)

  • When you press that button it configures your client with the correct URL - yes, your Skydrive Pro storage mechanism is a SharePoint library.
  • You are then given the opportunity to sync to a different directory to the default, which I again chose to keep things tidy on d:. What you don't get is the little clouds icon of the consumer offering replacing the folder icon. The other icons seem to be the same/ similar however.
  • You'll see just the 'Shared with Everyone' folder unless you were using your personal SharePoint library already - which obviously you will want to take care with.
  • I then copied my work documents in to my Skydrive Pro folder and my personal documents into my Skydrive folder.
  • Finally I configured my local Libraries with quick links into both locations.

So great, now any changes are being synced in case of a disaster as well as being available on other devices I own. "What about performance Chris?" Yes, I have my concerns - two extra services pumping data up to the cloud. Seems OK so far but will report back here if I have any issues.

A few hours later I'm back. I'm having problems. I've been through the following cycle a couple of times now:




So I then restart and the Cache then offers to recover the files that were queued by SkyDrive Pro, to which I made the mistake of saying yes a couple of times and my C: drive was filled with GBs of recovered files which are only going to be pushed up to the cloud again by SkyDrive from the local repository. Let's see how many more times I need to go through this loop to get the 7GB of documents up to the server.


OK, this isn't going well - every time I reboot to clear the Office Upload Centre error it is eating up GBs of my C drive, so much that I am having to reclaim the space. Perhaps there was a better way to push the files up to start with rather than rely on upload centre which seems to be introducing significant overhead.

Ah, others have encountered this issue with the Office Upload Center - see the comments at: I think maybe I'll give up and dump Skydrive Pro until it is a more mature product. Last straw for me was that one of the listed fixes was only available in Office 2013 and I have 2010 on this machine.










Further adventures with localisation of resources

19. August 2013 09:29 by Chris in dev  //  Tags:   //   Comments (0)

You may recall from that I was successfully able to get intellisense working for local resource files in visual studio 2012 with MVC4. More recently I wanted to get this working in a webforms project but this is proving problematic as the access modifier option is greyed out in Visual Studio (2012): 

 and, perhaps consequently, the normal properties of the resource file I would expect are not exposed: 

I tried in a previous version of Visual Studio as well as on another machine. For expediency I am now giving up and resorting to the standard, out of the box access mechanism but am popping this records here a) for my reference and b) in case someone can assist. 



(bit of a filtered google view, sorry)





Multiple identities found matching workspace name [Team Foundation Service/ Visual Studio 2012]

16. August 2013 13:11 by Chris in dev, ForTheRecod  //  Tags:   //   Comments (1)

I received the following error trying to check in code to a newly created TFS project: 


The solution ... close VS and try again. Sometimes things are that simple. In fact, quite often with VS ,,, ;)

Diesel costs - UK vs Europe

7. August 2013 15:31 by Chris in ForTheRecod, Holidays  //  Tags:   //   Comments (0)

We went for a diesel car recently, in part because of the better fuel economy but what's the deal with diesel in Europe being cheaper than petrol while here it is more expensive?

We were running late for the Ferry in France so didn't have the opportunity to save some hard earned 'pennies' in France but let's do the sums: 

  • On arrival in the UK we filled up in Tesco Dover - £40 @ £1.46 (just checking price online at meaning we stuck 27.4 litres into the car.
  • In France/ Germany/ Belgium/ Holland the prices seemed similar (I wasn't avidly checking every 5 mins!) around the 1.35-1.45 euro/L mark.
  • Taking the lower figure the same fuel would have cost 37 euros
  • Which equates to almost £32 - 20% cheaper if I've got my sums right, and it would be embarrassing if I hadn't!
  • So, the message is to fill up in Europe for the short term at least!


Twitter as a B2C communication tool

1. August 2013 06:48 by Chris in ForTheRecod  //  Tags:   //   Comments (0)

The call centre experience is commonly a poor one for customers. Companies are seemingly reluctant to additionally or alternatively utilise email effectively to increase customer satisfaction in resolving queries. Rather they are quick to 'jump on the bandwagon' and offer an alternative response path via twitter. Whatever the communication mechanism there is no point doing something unless you are prepared to invest in it and try and do it well. This means the company needs, the degree dependent on it's nature, to cater for both one way and two way communication between itself and it's customers. Further it is the latter which is key in delivering customer satisfaction.

Some do this badly, e.g. @CardiffCouncil either ignore incoming tweets or say they are passing them on to 'the correct department' and then nothing ever happens. They have taken the easy option and just pump out the same old tweets in rotation, whether this be about rubbish collection, council meetings or bike security. Admittedly this is a council/ public sector so I have very low expectations from the start.

Some do respond to customer tweets but badly. Two recent examples: @Nook_customercare chose to answer a completely different question from the one I asked(!) and I'm still waiting for a resolution to a query raised with @TMobileUK after 5 days and one chasing tweet. In the latter case this is particularly bad as my query is about a roaming issue and I am currently not in my native UK making the call centre communication path considerably more problematic! I live in hope - it's about four hours before I go off wifi for the remainder of my holiday. Chances? I should note that they did deal with a previous query effectively in the past so 1 from 2. I would also note that if the informational resources around their service and the service itself were better in the first place there would be less need for customer support!

Fortunately some get it right and restore your faith in twitter/ humanity. AJ from @AskNationwide corrected the damage done to the organisation's reputation by a particularly poor call centre experience by proactively dealing with my urgent query. It's a shame the service received via Twitter isn't always as good.

So today's winner is @AskNationwide. Round of applause please. The rest ... please do better. 

UPDATE: TMobile told me they had made the necessary config changes on 10/8. Unfortunately I was back in the UK by then and could not test! Hopefully all will work next time I'm abroad.

eReader Dictionaries

31. July 2013 17:38 by Chris in dev, Welsh  //  Tags:   //   Comments (0)

I just put this up on the SSIW forum:

Might be a long shot this one ... I've just downloaded a Welsh book to my Nook eReader from the "eBooks for Wales" website and the thought occurred that it would be very useful for Welsh learners such as myself to have integrated automatic translation from Welsh to English, similar to the English dictionary that is accessible where you just press on the word and see the definition. A quick google suggested only English dictionaries are supported but perhaps others here know better, or know of better support on other platforms/ devices?Currently I have Ap Geriaduron on my Nexus 7 by side by side with the Nook but I could do without the extra data entry!

I then came across this:

which refers to a project with which an aquaintance of mine is involved: Apertium.

Maybe I should just develop one myself using the opensource tools/ data available?!


Who owns your mobile network?

31. July 2013 15:31 by Chris in ForTheRecod  //  Tags:   //   Comments (0)

Perhaps it doesn't matter overly but often while abroad I see a brand I recognise from back in the UK and the thought occurs 'who owns them', particularly which is the company's country of registration. This may well be complicated by the fact that different parent organisations own a given brand in different countries. For example, C&A has long gone in the UK but seemingly going strong still in Germany.

Anyway, mobile is big business and this isn't going to change any time soon. I was surprised to discover a year or two back that I'd completely missed the fact that O2 brand had been sold abroad. Here's the list, as of the time of writing, of the main providers in the UK:

  • EE (Orange and T-Mobile) - EE is a 50:50 joint venture between Deutsche Telekom and France Télécom, formed in 2010 through the merger of their respective T-Mobile and Orange businesses in the UK
  • Vodaphone is British, being the Worlds 2nd largest mobile telecoms company
  • O2 is owned by Telefonica (Spanish)

Those are the main networks. My understanding is that any others are reselling the network services of the above. Correct me if I'm wrong!

About the author

I am Dr Christopher Sully (MCPD, MCSD) and I am a Cardiff, UK based IT Consultant/ Developer and have been involved in the industry since 1996 though I started programming considerably earlier than that. During the intervening period I've worked mainly on web application projects utilising Microsoft products and technologies: principally ASP.NET and SQL Server and working on all phases of the project lifecycle. If you might like to utilise some of the aforementioned experience I would strongly recommend that you contact me. I am also trying to improve my Welsh so am likely to blog about this as well as IT matters.

Month List