Tuesday, 23 August 2011

ILM07 - Creating an SPN

OK - I won't go into how to get up password sync in ILM07 - there are plenty of documents out there. But here's an interesting error I got and took a couple of hours to work out.
I had successfully created an SPN against the account I was using to run MIIS. But try as I might, I couldn't create a PCNS link - I just got:
"The service principal name you specified could not be found..."
Anyway - it seems that PCNSCFG is fussy about its slashes. When you use the /S option you need to put a forward slash between the SPN name and machine, NOT A BACKSLASH!
Oh well!

Tuesday, 22 February 2011

ASP.NET - w3wp crash

It's very frustrating when a server component fails and gives you no information about why. Especially when the asp.net code that fails on the server works just fine on the visual studio 2010 development server.

In this case, I had a function that called itself recursively. It scanned and table and generated another table looking for the least cost of all possible combinations of the first table.

It turns out that IIS is really conservative about stack space it allocates to a thread, but then doesn't tell you if you exceed that (which is really each with a recursive function) - it just doesn't return anything. A useless entry is recorded in the event log.

Anyway, the solution is to run your recursive function in it's own thread using threading.thread

In the NEW method, you have an optional parameter, stacksize, and you can set it to whatever you want. In my case, I upped it to 5Mb for the function, and hey presto, it all works properly.

Thursday, 6 January 2011

Exhange 2007 to 2010 Upgrade - "Reboot Needed"

Over Christmas we upgraded our old Exchange 2007 server (in which the public folder store was playing up) to Exchange 2010 SP1.

We hit a number of problems with this, and this is what we had to do.
  • The old server would not upgrade directly to 2010 - it needed to have SP2 on it first
  • It would not install SP2 because it "needed a reboot" first - and kept saying so after multiple reboots (yes, that it pretty typical with MS stuff, I know)
  • None of the normal places in the registry that make you think some action is needed after a reboot were populated - so it was something very obscure
  • We created a new Exchange 2007SP2 server instead and migrated the mailboxes to it. Regular readers will know we use VMWare here, so that wasn't hard (although time consuming)
  • We then removed the old 2007 server from the exchange environment and destroyed it
  • Now we created a new 2010SP1 server and migrated the mailboxes to it
The "new" 2007 server is still in the infrastructure at the moment, but will eventually be removed and replaced with another 2010 server to create a cluster. That will probably have to wait to the next college holiday at Easter, though.

N

Outlook 2007 - View Attachments on Context Menu Fails after Exchange 2010 Upgrade

Over Christmas we upgraded our exchange system to 2010SP1 from 2007 (more about that in another post!)

As users returned following the new year, an obscure bug in Outlook became apparent which caused "View Attachments" on the context menu (right click) for email messages to disappear for external messages (but still work for internal ones).

Microsoft have released a hotfix, http://support.microsoft.com/kb/2276479, which solves this problem.