General Tips

The property value is invalid. The value can't contain leading or trailing whitespace.

I have encountered this problem while setting up Microsoft exchange 2010. After jumping through all of the appropriate hoops, the installation process stops with an area that looks something like this: Organization Preparation Failed Error: The following error was generated when “$error.Clear(); $acceptedDomains = @{}; Get-AcceptedDomain | foreach { $domainName = $_.DomainName.ToString(); if ($acceptedDomains.Contains($domainName)) { Write-ExchangeSetupLog -Warning “Duplicate AcceptedDomain found. ‘$($acceptedDomains[$domainName])’ and ‘$($_.Name)’ both reference domain ‘$domainName'”; } else { $acceptedDomains.Add($domainName, $_.Name); }; }; function getSmtpTemplates ([string]$property) { $input | Select-Object -ExpandProperty $property | Where-Object {$_.PrefixString -eq “SMTP”} | Foreach-Object {$_.AddressTemplateString -replace “.*@”, “”}; } function addDomains ([Microsoft.Exchange.Data.Directory.SystemConfiguration.AcceptedDomainType]$domainType) { $domain = $null; $input | Where-Object {-not $acceptedDomains.ContainsKey($_)} | Where-Object {[Microsoft.Exchange.Data.SmtpDomainWithSubdomains]::TryParse($_, [ref] $domain)} | Foreach-Object {… Read More »The property value is invalid. The value can't contain leading or trailing whitespace.

MS CRM Rollup 8 and 9 fail with Invalid length parameter passed to the LEFT or SUBSTRING function.

While installing MS CRM Rollup 8 or MS CRM rollup 9, we received an error that looked like this: ————————— Microsoft Dynamics CRM 4.0 Update Rollup 9 ————————— Action Microsoft.Crm.Setup.Common.Update.DBUpdateAction failed. Invalid length parameter passed to the LEFT or SUBSTRING function. Cannot insert the value NULL into column ‘InvoiceNumber’, table ‘sdia_MSCRM.dbo.InvoiceBase’; column does not allow nulls. UPDATE fails. Invalid length parameter passed to the LEFT or SUBSTRING function. Cannot insert the value NULL into column ‘InvoiceNumber’, table ‘sdia_MSCRM.dbo.InvoiceBase’; column does not allow nulls. UPDATE fails. Invalid length parameter passed to the LEFT or SUBSTRING function. Cannot insert the value NULL into column ‘InvoiceNumber’, table ‘sdia_MSCRM.dbo.InvoiceBase’; column does not allow nulls. UPDATE fails. Invalid length parameter… Read More »MS CRM Rollup 8 and 9 fail with Invalid length parameter passed to the LEFT or SUBSTRING function.

DotNetNuke.Services.Exceptions.PageLoadException: Failed to load viewstate Problem Solved / Fixed

An error has occurred. DotNetNuke.Services.Exceptions.PageLoadException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. —> System.Web.HttpException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.… Read More »DotNetNuke.Services.Exceptions.PageLoadException: Failed to load viewstate Problem Solved / Fixed

Windows Live Messenger on Multiple Monitors System Windows 7

I have a system that has multiple monitors and we use a great little application called ultramon that allows you to have a desktop tray on all monitors. The idea being that the monitor with the application running on it will have a desktop try icon to control the application. This is good to allow you to control applications from the system try on the appropriate monitor. It has bugged me that the Windows Live Messenger is the only program I run that kept a system try icon on the primary monitor and duplicated another icon on the second monitor where the program was running. But there is a solution. 1. Close Windows Live Messenger… Read More »Windows Live Messenger on Multiple Monitors System Windows 7

Backup Exec could not find a Microsoft Volume Shadow Copy Services (VSS) software or hardware provider on the media server.

We setup a new job recently on our Backup Exec 12.5 server. One of the jobs had the following error: Backup Exec could not find a Microsoft Volume Shadow Copy Services (VSS) software or hardware provider on the media server. To use offhost backup, a VSS provider must be installed on both the media server and on the remote computer. The solution to the is actually easy. It was a mistake we made in setup of the Backup Job. All we had to do was un check the option in Advanced Disk-base Backup.   Hope this helps others.

flash content and z index

Just to set up the scene, a project I am working on requires a Flash navigation set. To tackle the obvious accessibility issues, I have created a run of the mill XHTML list of links that mirrors the Flash version exactly and hidden it from visual browsers using CSS. This is all fine. I have placed the Flash navigation set at the very bottom of theXHTML and positioned it back to the top of the page using CSS, so no major problems there. The problem really starts when I realise that the Flash content is overlapping two other elements of the page, namely a site wide search form and a logo which doubles as a link back to… Read More »flash content and z index

Exchange Server 2010 default domain set for outlook web access

We wanted to set the default domain for users logging into outlook web access on Exchange server 2010. By doing this, users would not have to enter the domain\username and would be free to enter just the user name. This is much easier for the typical user of email servers, who lets face it have trouble enough remembering their own name! To do this we performed the following steps. Go to Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\14.0.639.21\scripts\premium Browse to the 14.0.682.1 folder instead of you have the latest rollup. Open the flogon.js file in notepad ctrl + f and find the text clkLgn(){addPerfMarker after the “clkLgn(){” and before the “addPerfMarker” paste the following. Remember to change DOMAINNAME with… Read More »Exchange Server 2010 default domain set for outlook web access

Exchange Server 2010 Organization Prerequisites Forest Functional Level 2003

Today I was installing exchange server 2010 and found that the organisation pre-requisites failed with the following message. Organization Prerequisites Failed Error: The forest functional level of the current Active Directory forest is not Windows Server 2003 native or later. To install Exchange Server 2010, the forest functional level must be at least Windows Server 2003 native. Now I went in a look at the domain functionality level and found that the domain was already set to Windows server 2003, but what I never realised previously was that the forest functionality level is set separately. Instead of right clicking on the domain and selecting raise functionality level you click on the active directory domains and… Read More »Exchange Server 2010 Organization Prerequisites Forest Functional Level 2003

Microsoft Word 2007 Crashes – Why?

I have an otherwise stable work environment, yet today I discovered the root cause why I sometimes have to reinstall office 2007 to get MS Word to stop crashing. The symptoms are that word started and appears to work ok, but I cannot select any text either right click with mouse or left. If I close the program, the application crashes with all the normal bull crap about recovery and bla bla.. end result is that word remains broken. After much research and mucking around (save you all some time) I found that you have to reinstall. Repair is just a moving progress bar connected to nothing, as I have never seen the repair install… Read More »Microsoft Word 2007 Crashes – Why?