Home Blog Page 3

Finding bad Unicode inside an XML file – parse and validate XML


A quick note as to one resource for online validation of XML (UTF-8).  Paste your XML into the source field and hit validate. It may take a few minutes to process larger strings of text. Cut the text down to smaller chunks if it doesn’t process at all.


Example of an error message produced by the validator:
Character reference “&#xD83D” is an invalid XML character

The error you see above I had stumbled on when trying to figure out why a report that parsed XML from a file describing an Exchange user’s Inbox was crapping out. The report would tell you how many messages each user had, the size of the mailbox, etc. Except for one user, whose mailbox had in it an email with bad unicode in it. However, once the validator told me what to look for, I searched the XML for the bad character &#xD83D. I located it about in the middle of the file and along with some related elements, here is what that text looked like:

<emailmarker id=”EF000000198262C0AA6611CD9BC800AA002FC45A0600FC1D00000100000000001C650100000010356A95″>
<attachment name=”OutlookEmoji-&#xD83D;&#xDE0A;.png” type=”1″ extension=”png” size=”734″ compressedsize=”734″ mimetype=”image/png” link=””>

At this point I knew that I was dealing with a bad image, apparently an emoji. I set out to find that emoji!

First I had to take note of the last time the parsing program ran by looking at the emailed report. That report indicated that the “Newest Message” processed was 18-Oct-2015″ and by looking at subsequent reports I saw that “Newest Message” didn’t update until 15-Nov-2015. That left me looking through a month’s worth of emails, trying to identify one with an emoji in it. Which I was able to do without much trouble.

Delete the email and your problem goes away.

MAS90 unable to initialize viewer print preview


Known issue with older versions of MAS90 and high resolution screens, especially dual monitors.

Set resolution to 1680×1050 or less in order to restore functionality.

SSRS 2008 report error


User does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed.

  1. Start Internet Explorer as Administrator (Run as Administrator)
  2. Open url http://<Server name>/Reports this will take you to the “SQL Server Reporting Services” Home page
  3. Click on the “Folder Settings” button.
  4. Click on the “New Role Assignment” button.
  5. Add the Group or user name: DOMAIN\USER_NAME, and permissions you have logged in as.
  6. Click on Ok button.

City Council meeting video blank – Granicus


Quick tech note about IE 11 and the popular streaming platform Granicus.

With some setups you will hear the video, but you will see a black box where the video should be displayed. The controls are there because you can click on them, but you just can’t see anything. This assumes that you have already installed Flash and Silverlight.

The fix is Compatibility View. Goto View–>Compatibility View and add in “granicus.com” to the list of websites to make compatible. Close and reopen your browser and you should be able to see the video and controls for your video.

Windows 7 The User Profile Service failed the logon.


“The User Profile Service failed the logon.. User profile cannot be loaded.”
Also, you may be trying to login using a Domain User account and each time you get this error you notice that there is a folder for the %USERNAME% and a folder for %TEMP% created in the Users folder…If you try logging in multiple times you see %USERNAME.000% and %TEMP.000% etc…

Why did this happen?

Causes can include improper logoff and trying to logon when an Antivirus scan is running.

OK, so how do I fix it?

You’ve probably already searched several resources, including Microsoft’s knowledge base, you’ve saved your data from your profile (or don’t need it), you’ve tried the MS Fix It for this error, you’ve deleted the SSID for the offending profile from the ProfileList key in the Registry…to no avail.  Despite “starting over” with a new user profile, you have not been successful yet in actually logging back in to Windows 7…

If you’re at this point then you’re ready to try these instructions. Maybe they will help.

The way Windows works is, when a new user logs on, Windows sets up a profile for them using the Default profile. Sometimes, the security settings on that profile’s folder “C:\Users\Default” get corrupted (in conjunction with the corruption of the user profile you want to use I suspect) and it has trouble creating new profiles . To fix this, we must reset the security settings for that folder.

  1. The C:\Users\Default folder is hidden, so unhide hidden files first
  2. Right-click the folder and select Properties, then select Security tab
  3. Make sure “Everyone” and Users” have (Read & execute, List folder contents, Read)
  4. Make sure SYSTEM and Administrators have (Full Control)
  5. Click Advanced. On the Permissions tab click Change Permissions, then check off “Replace all child object permissions with inheritable permissions from this object” and press OK
  6. On the Owner Tab, Edit and change to Administrators. Make sure you check off “Replace owner on subcontainers and objects” then press OK
  7. Keep pressing OK until you’re out of those windows.
  8. Create a user account for the new user (Control Panel–>User Accounts–>Manage User Accounts). If it’s already there then Remove it and then Add it back in.
  9. Make sure you check the Registry to make sure the SSID isn’t there already because that will prevent you logging on. The SSID is in its own key at HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\PROFILELIST
  10. Removing the offending profile SSID from this area is especially necessary if you have been deleting the bad profile folders from C:\Users manually (instead of using the System Properties–>User Profiles settings dialog box.
  11. Anyway, after you create that new user from Step 8 you should be able to log off and log back on and it will recreate the folder.

– If you do not see a ProfileList key at all then you are probably in the “HKLM\SOFTWARE\MICROSOFT\WINDOWS” folder, not the WINDOWS NT folder…
– When editing the security properties for the Default profile, make sure you are editing the “C:\Users\Default” folder, not the “C:\Users\Default User” folder

Microsoft Word document print preview blank!


Such a simple issue, and yet it made me scratch my head for a full minute…

The user was trying to print a doc consisting of a list of headlines. They had the Paragraph markers displayed and while everything looked good onscreen, when you printed or ran Print Preview, the doc looked like a single blank page and nothing was there to print.

It turns out all those lines of text were formatted as HIDDEN TEXT. Somehow they managed to turn it on before they started or formatted the text that way and so Word thought that it was supposed to skip printing well basically everything in the document. The solution was to highlight all and format the text removing the Hidden Text attribute. For good measure (because I know the user doesn’t use hidden text in general) I also turned on the option to Print hidden text under Word Options. That way if this issue happens again it won’t disrupt them.

Win 7 Pro Prompting for activation after moving to larger hard drive


This is just a little tech note for myself:

I did a fresh install of Windows 7 Pro with VLK (volume license key) and activated it via the slmgr /ipk, ato commands. Shortly after install I realized the user needed a larger hard drive so I imaged the drive (Partition Wizard 7) and swapped to the new larger drive. This worked for a while (probably 30 days since that’s how long the initial product lasts before prompting for activation) and then it started having pop-ups to Validate the product to make sure it’s Genuine.  Tried reactivating, still go that message the next morning. I tried deactivating so I could reactivate, but I wasn’t able to make the deactivate stick. I ran the /dlv command, followed by /upk (at which point I saw the System screen didn’t have anything listed under Windows Activation), rebooted and checked the System screen again and it had reverted back to saying the product was properly activated. So that was a no go.

After that I called Microsoft:

If you ever need to contact MS beware…clicking on the wrong set of links or options and you’ll find yourself staring at a prompt to enter in your CC in order to buy a support ticket for $499. I don’t remember all the rules, but I’m pretty sure they offer free support (I didn’t pay anything this time) for Activation-related support requests. If you’re calling on a Volume License Key they have their own support line. You can Google “Volume License Support Center Worldwide” and you should get a list with phone numbers on it. The number I used was United States toll-free 888-352-7140 x4. The agent had me read off my Installation ID, then redirected to an automated service to read me off the Confirmation ID. In order to get to the place where I could enter in that Confirmation ID, I went to START and entered “slui 4” and ENTER. That brought up the Offline Activation wizard. I entered in the Confirmation ID and clicked Next and it was successful.

Exchange logs full



  1. You should have created a large placeholder file on the Logs drive. Delete it and mount the Mailbox stores.
  2. Figure out why the logs did not clear. Chances are  your Backup software didn’t backup the Exchange server…
  3. If you did not create a placeholder file, then quickly Find your .edb files. Open Command Prompt, run “eseutil /mh edb.edb” and look for the STATE line. If it was a clean shutdown then you can remove all old log files, none are needed. If it was a dirty shutdown then you need to look for the line that says “log required” and it will tell you which you need to keep. Move the others to another partition temporarily. Mount the stores. Then figure out what happened. If all is functioning properly then delete the unneeded logs.

Red screen of death and FBI Error


IMG_9328[Solved] You probably need to plug in a PS/2 keyboard and/or mouse before install.

So, a while back I had some HP Compaq 6000 Pro machines to upgrade to Windows 7 (via the included Restore disks) and the install was failing after loading the disks and initializing Windows for the first time…it would pop a Red Screen of Death with an (initially) alarming message “FBI Error!” which it turns out is merely the HP File Based Installer failing..

The solution in my case was to plug in PS/2 peripherals. If you don’t have any lying around then you may have a problem (easily solved by a trip to your local 99 cent store or Goodwill or even via Ebay).

Another thing you can try which several people swore by was disconnecting the NIC cable during install.
Also check and make sure you don’t have multiple monitors connected during install…only use the onboard VGA if possible.

Whatever you do, avoid fancy workarounds… If the install process isn’t clean like the manufacturer designed it to be then you could be setting yourself up for problems further down the road.

iFrames for websites


Here is some code for iFrames which I have used before to give the page I’m bringing in a seamless look.
If you have better code, please leave it below!

<script type="javascript">
 function jumpScroll() {
 window.scroll(0,0); // horizontal and vertical scroll targets
 <iframe id="iframeName" style="border-top: 0px
 solid; border-right: 0px solid; border-bottom: 0px solid; margin: 0px;
 border-left: 0px solid" height="900"
 src="http://www.example.com/samplepagetobringin.asp" frameborder="0" width="100%"
 name="iframeName" seamless="seamless">Your browser is not supported. Please
 use another browser.