AzureAD: The user or administrator has not consented to use the application with ID ''

I have recently been working on a Multi-tenant Web Application that makes use of delegated permissions. After developing the application for a while I found that I needed to add another delegated permission to the application which I did using the normal methods. However, when I tried to make use of the new delegated permission with the test user I had been using for a while I didn’t get prompted for the application’s consent as I did originally and I ran into the error:
Read more →

Public Internet IPv4 Prefixes

I have been struggling to find a published list of prefixes for public internet address spaces, therefore I have compiled my own using the documentation available from IANA (http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml). The prefixes below are a simplified version which doesn’t exclude the documentation use ranges as this added many extras that just weren’t needed for my purposes. Public Prefixes These are prefixes to all IP Addresses which are accessible across the public internet.
Read more →

BT Youview Remote & Hitachi 40HXT16U

Just incase anyone has an issue like this and can’t find anything on the internet to resolve and ends up pulling their hair out like me, the code to use for this TV is the one for Sharp not Hitatchi which was 4848… no idea why, finally figured out to try it by googling the code from the bottom of the TV remote and it came up as a Sharp remote.
Read more →

DS18B20 Showing 85000 Raspberry Pi

I’ve recently been trying to get a DS18B20 working with the Raspberry Pi, and although its well documented around the internet I ran into a bit of an issue where mine was always returning t=85000. Although alot of people claims this is wiring (which could be the case) for me it was actually to do with how it was reading the value in the kernel module. Originally in modules I had:
Read more →

Sending E-mail With PowerShell

Been looking for something like this in a while to test newly setup or existing SMTP setups for simple server notification or business applications e.g. SharePoint, as it saves you having to install telnet or putty in order to send a quick test email to make sure its not getting blocked somewhere i.e. spam: ## Update ## Just found out there’s an actual powershell Cmdlet for this: Send-MailMessage! $msg = new-object Net.
Read more →

Tracert: May the force be with you

Read more →

Exchange 2013 - Content Indexing during Migration

After the correct updates have finally been released last week (Exchange 2010 SP3 and Exchange 2013 CU1) it was time to get some Guinea Pigs… sorry, “Test Users” migrated over to Exchange 2013. Some of the very small mailboxes were fine, but when it came to a real users mailbox the progressed appeared awfully slow. After taking a look at the log, I found it was full of: The job is currently stalled due to ‘Content Indexing’ lagging behind on resource ‘CiAgeOfLastNotification()’
Read more →

SharePoint 2010: Classic to Claims Migration Gotcha

I’ve been migrating classic mode SharePoint 2010 sites to claims sites for a while now, so much that I even have a script to do it for me. However, for some reason I have never come across the problem I encountered today. The documentation on converting a classic mode web application to a claims based application I though was pretty solid on technet. Today I came across a strange issue where the site collection administrator was getting access denied in odd locations… or locations I thought were odd because SharePoint hadn’t security trimmed the links as I thought it would if access really was denied.
Read more →

Office Web Apps 2013 and SharePoint Issue relating to SSL

Came across and issue during the deployment of Office Web Apps 2013 when hooking up with SharePoint which caused some confusion. Issue: Error messages from the web apps when activating through SharePoint documents: Word Document : “Sorry, there was a problem and we can’t open this document. If this happens again, try opening the document in Microsoft Word.” Excel Document: “We couldn’t find the file you wanted. It’s possible the file was renamed, moved or deleted”
Read more →

SharePoint 2010 Development Machine with Office 2013

If your trying to setup or change the configuration of SharePoint on a development machines which has Office 2013 install you may encounter some strange errors relating to types such as: Failed to call GetTypes on assembly Microsoft.Office.InfoPath.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly ‘Microsoft.Office.InfoPath, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified. This is related to the way in which SharePoint is loading certain assemblies and struggles with the new assembly for InfoPath.
Read more →

SharePoint 2010 State Service Database

I recently found a small bug in the SharePoint 2010 PowerShell comlets for creating the state service database using “New-SPStateServiceDatabase”. You will receive the rather unhelpful error message “Operation is not valid due to the current state of the object”. I believe this is a generic WCF error as that’s all I was able to find when researching what may cause the problem. However, it later transpired that this was because I was trying to use a database alias (or potentially database server) which SharePoint isn’t currently aware of, as using the alias (or database server) that was used for the initial farm setup didn’t result in the same issue.
Read more →

Lync 2013 - Front End Server ‘Starting’

Upgrading Lync to 2013 recently I came across a problem where the front end service simply wouldn’t start but would get stuck in “Starting” mode. I spent quite a bit of time trying to figure out what the problem was and got caught up in some false information on the technet forums that it was related to Server 2012. In fact the problem was fairly simple if you know whats going on under the hood.
Read more →

SharePoint 2013 Pre-Requisites Configuration Error on Server 2012

As I started to configure our new SharePoint 2013 farm today I came across a problem when running the pre-requisites tool when it was attempting to install “Application Server and IIS Web Server roles” which resulted in very little in terms of error messages apart form “configuration error”. After much searching and reading on Technet I wasn’t able to find out exactly what roles and features needed to be install so I could do this step manually.
Read more →

Coffee Break: Windows Server 2012 First Look

One of the key things I’m liking with Windows Server 2012, is the new Server Manager. The new version is alot more useful than that of Windows 2008 and Windows 2008 R2 in that it appears to work out of the box, where as the previous involved alot of “tweaking” to get WinRM working. This has a huge impact on the use of Server 2012 Core Edition, which unless you love doing everything on the command line or in PowerShell is pretty annoying to even get started with.
Read more →

Unable to use SQL Aliases in IIS Manager or Visual Studio

I Have always had a problem with IIS Manager using SQL Aliases when using the built in .Net membership providers (mainly cause its handy to test and setup the initial FBA user) but never managed to get down to the cause of the issue, just took it as one of those things. Luckily it was never really that important to resolve so it got left as specifying the alias in the web.
Read more →

New favorite PowerShell command

Everytime I have to open log file I always wished it would update on its own so I didn’t have to close it and open it again. I know applications like visual studio notify you when a file updates but its usually not a good idea to install it on the production machine and across the network access can be painful. In comes PowerShell to save the day… And its install on pretty much all modern windows servers these days as standard.
Read more →

SharePoint Issue: Possability of database corruption for whole site collection

Issue Summary There is a bug in SharePoint 2010 that can cause an entire site collection to become corrupt which can only be fixed by restoring a backup. This issue is only likely to occur with code in custom solutions as the equivalent manual actions through the web interface do not cause the same issue, therefore general SharePoint use is not affected. When does the issue occur When using the SharePoint Object Model or PowerShell to programmatically set permissions on a sub site (SPWeb) by first breaking role inheritance.
Read more →

SharePoint 2010 and SQL Server 2012

Read more →

Term Store Management missing on SharePoint site

If you have ever decided to make a blank site just because you know your going to start from scratch then find out that alot of the features your used to in a team site simply arn’t available or don’t work as they do in the team site? SharePoint has a number of hidden features which you can’t activate via the interface. If you have decided to use managed meta data and run into issues then its probably because the hidden “TaxonomyFieldAdded” feature isn’t available.
Read more →

SharePoint 3.0/2007 FBA - Unable to resolve users

Read more →

Office 2007: Cannot open file from SharePoint 2010

Read more →

SharePoint 2010 FBA: Security token username and password could not be validated

Note: if you are here looking for a guide on configuring FBA in SharePoint 2010 the following are good resources: http://technet.microsoft.com/en-us/library/ee806890.aspx http://blogs.technet.com/b/mahesm/archive/2010/04/07/configure-forms-based-authentication-fba-with-sharepoint-2010.aspx Although there are a number of possible reasons for this error in the Event Log (the obvious being an incorrect username and password), there are some that just baffle you as you believe it “SHOULD” be working and you have been over and over the instructions/walkthroughs. My experience on this matter after completing yet ANOTHER walkthrough to check was that I hadn’t realised the importance of the “ApplicationName” property.
Read more →

ADFS 2.0 (and IIS 7+) and Google Chrome

This one annoyed me for longer than I wish to share… If you are having problems using Windows Authentication on IIS (in particular with the ADFS 2.0 passive federation) where you can login fine with Internet Explorer but Google Chrome simply repeats asking for your login and password then this is for you! IIS has a new feature called “Extended Protection” for Windows Authentication. The appears to have an affect on Chrome but not IE, therefore to disable it do the following:
Read more →

SharePoint 2010 Multiple Upload and Explorer Disabled

Symptoms Multiple Upload is disabled along with the Explorer option on Document Libraries. Resolution This problem is usually caused by a mismatch with Office and Internet Explorer. If you are workign on a 64bit version of Windows you will have two Internet Explorer links, one which opens the 32bit version (x86) and another which will open the 64bit version. The client integration options will only be available in the version which matches your office bit version.
Read more →

SharePoint List Data Services: 500 error when adding an Item

Read more →

PowerShell Script: Get-SPHealthScore

The Get-SPHealthScore power shell commandlet is a simple commandlet that will query the value of the health score for any SharePoint 2010 URL (providing the header hasn’t been removed for security reasons which I will discuss in a later post). function Get-SPHealthScore([string]$url) { $request = [System.Net.WebRequest]::Create($url) $request.Method = "HEAD" $response = $request.GetResponse() if(($score = $response.Headers.Get("X-SharePointHealthScore")) -ne$null) { Write-Host $score } else { Write-Host 'The specified URL is not a SharePoint 2010 site or does not contain a health score' } } If you’re not familiar with the health score header, it is added to any SharePoint response for use by Microsoft Office applications in order for them to reduce their request rate if the server is particularly busy.
Read more →

Intermittent Networking Issues On Virtual Machines

After moving a few Windows Server Hyper-V hosts recently from one Virtual Machine Manager server to another, a couple of virtual machines started exhibiting some strange behaviour in regards to networking. So I break out trusty “ping” and it doesn’t report any problems. At that point the remote desktop session is working again so I lost interest assuming it to be “one of those things…”. After a couple of days this started happening more and more.
Read more →

Virtual Machine Manager Localize Template

The sysprep automation within Virtual Machine Manger 2008 is a really nice feature which can help you deploy machines quickly and in a “set and forget” manner. If however you are unfortunate enough to not run your servers in the US locale you may have noticed that even if you change all the regional settings on your template target, after the sysprep has completed and produced a template any machine generated from it will be in the US locale.
Read more →

Unable to login to SharePoint sites on SharePoint server

Came across a problem recently while on site with a client which I have never come across before. If you are trying to test your SharePoint Server web applications locally on a SharePoint server and you find that it is refusing to accept the locally logged on user or another user who should have access to the site by asking for your credentials 3 times before telling you that you don’t have access, it is because of a security feature within IIS which will not allow the use of integrated security for a hostheader that is not the server’s hostname.
Read more →

SharePoint 2010: Change the name of the Administration Content Database

One of the things that annoys me about SharePoint is the way in which it automatically names the databases, even when you don’t use the wizard (don’t get me started on that). One thing you can’t do when you run the configuration wizard to create a brand new farm is to specify the database name for the central administration database. Instead you end up with something like “Content_Admin_abcdefg0093857378383”, if this annoys you as much as it does me then there is a solution.
Read more →

Error in SYS2.JCLLIB.CHGPWD Volker Bandke turnkey-mvs

If anyone has been using Volker Bandke’s turnkey-mvs trying to change their password using the provided job in SYS2.JCLLIB.CHGPWD and then noticed that they are unable to login, the provided job has a slight flaw in it that actually changes the username and not the password. Original Script (Lines 21-23) ACCOUNT CHANGE (_theuid) DATA(_thepass) END The job jcl should in fact be: ACCOUNT CHANGE (_theuid _curpass) DATA(_newpass) END This will then successfully change the password for the account, however please note that the target user will need to be logged off of TSO.
Read more →

Microsoft Lync Install, Migration and Configuration

Well i’ve been at it a couple of hours now and i’ve gotta say that Lync 2010 is WAY easier to install and setup compared with Office Communications Server 2007. Loving the new topology tool and the migration of users from one to another is seamless. The new control panel is awesome too, no longer do you need to use the manager and AD to get users into Lync and as an added benefit the management interface is all Silverlight and follows a similar model to Exchange where there are lots of uses of policy’s which can be moved up and down similar to exchange policy’s Microsoft.
Read more →

Microsoft Lync Launched

Read more →

Visual Studio Themes

Stumbled upon a great site today for anyone who prefer’s a slightly different editor theme in visual studio. Studio Styles is a website containing loads of colour themes for both VS 2008 and VS 2010 and also includes a ratings system. Even if your happy with the default colours I would recommend checking the site out just in case anything catches your eye. I prefer the low contracts themes these days as its just easier on the eye!
Read more →

Google Wave Scrapped

If anyone has seen any of the details for Google wave, or perhaps were invited to the Beta, Googles cancellation of the project may not come as such a surprise. In a nutshell, Google wave was described as an e-mail/instant messaging system with a touch of collaboration. In fact most of the content for Google wave compared it alot with e-mail however, this is primarily where I believe problem lay. Google wave improved on the E-mail de-facto that we still use today and had the potential to become email 2.
Read more →

The death of Windows Mobile?

Today when upgrading a products codebase from Visual Studio 2008 to Visual Studio 2010 I discovered that Microsoft have removed support for smart device projects in Visual Studio 2010. The decision to exclude support for smart device projects in Visual Studio 2010 appears to be a clear sign that Microsoft does not intend on continuing the Windows Mobile roadmap independently of Windows Phone 7. Windows Phone 7 is clearly targeted at the consumer space to complete with the likes of Apple iPhone and Google Android.
Read more →

SQL Express: Viable database for Application Development?

Microsoft SQL Express offers so much when evaluating a persistence store for your own applications, especially if you are targeting Windows and utilising the .Net framework. SQL Express offers pretty much most of the common features available in the full blown SQL Server which makes development and switching between SQL Server and SQL Express pretty seamless. However, there is one major factor which I would reccomend you consider… Deployment. You would expect the deployment of SQL Express to be as easy as installing say the .
Read more →

Message Queue Security under Server 2008 & Server 2008 R2

Message Queues are a great tool for interprocess communication if you need to ensure that a message is processed, regardless of the target process’s connectivity or runtime state. If you are developing with Microsoft’s .Net Framework you can take advantage of Windows Communication Foundations built-in support for Microsoft Message Queues. I have been using WCF with Microsoft Message Queues on a recent project, which as part of a back-end processor, the queues are automatically created in the event that they do not exist.
Read more →

Change the User Profile Sync Service assigned User Profile Service

If you’re working with larger SharePoint farms it’s conceivable that you may have a requirement for multiple User Profile Service Applications. This is completely supported, however one thing to be aware of is the fact that each User Profile Synchronization Service instance only supports 1 User Profile Service Application. Therefore it you need to run two User Profile Service Applications with Synchronization you will need at least two servers running the User Profile Synchronization Service, one for each.
Read more →