Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Exchange 2013 - upgrade from CU1 to CU2 - "Specified cast is not valid"

Posted on 2013-10-24
3
Medium Priority
?
1,333 Views
Last Modified: 2013-10-25
Today I ran Setup for the CU2 update to Exchange 2013 on a standalone server which previously had CU1 installed.  And - mea culpa - I didn't do as much pre-install reading as I should have done.  I double-clicked on Setup and followed the wizard, but it failed with an error "Specified Cast is Not Valid".

I found the following pages that looked relevant:

http://social.technet.microsoft.com/Forums/exchange/en-US/01edef61-5b10-44aa-9096-73798143992f/microsoft-exchange-2013-cu2-update-fails-on-mailbox-rolemailbox-service-error-exchange-now?forum=exchangesvrdeploy

http://edwardvbs.wordpress.com/2013/07/13/exchange-2013-cu1-to-cu2-upgrade/


The second of these states that before running the GUI setup for CU2:

a) You need to run a Schema Update
b) You need to run an AD Update
c) Best practice to put the servers into Maintenance Mode.


I didn't do any of these, I just ran the GUI setup.


So now I have a completely non-functional production Exchange server, which is a major problem.  

Looking for advice, please, on how I can move from the current situation to a working server with the CU2 update installed.
0
Comment
Question by:wakatashi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 2000 total points
ID: 39599698
You don't need to run the ad and schema updates manually unless it is a multiple domain forest. If it is single domain forest, then setup.exe would be fine.

First thing I would do is download a fresh copy of the CU2 update file and see if that resolves things.

Simon.
0
 
LVL 1

Author Comment

by:wakatashi
ID: 39599733
Thanks Simon - I'll give that a try, and re-run the setup.

I've been having a look through the Exchange setup log, and the last thing logged is:

"Error occurred while uninstalling Search Foundation for Exchange.System.Exception: Cannot determine the product name registry subkey, neither the 'RegistryProductName' application setting nor the 'CERES_REGISTRY_PRODUCT_NAME' environment variable was set".

I found a TechNet blog post that dealt with this:

http://blogs.technet.com/b/manjubn/archive/2013/08/27/exchange-2013-upgrade-uninstall-fails-while-uninstall-search-foundation-for-exchange.aspx

However, if I try "Get-ChildItem Env:" in Powershell, the CERES_REGISTRY_PRODUCT_NAME environment variable is set to "Search Foundation for Exchange" as per the blog post, so this doesn't seem to apply.

Cheers,
Dave
0
 
LVL 1

Author Closing Comment

by:wakatashi
ID: 39599954
Running setup with a fresh copy of the download did the trick.  I don't know whether the original was corrupted or whether I could have just re-run setup with what I had, but the main thing is IT'S WORKING!

Thanks a million, Simon.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
New style of hardware planning for Microsoft Exchange server.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
how to add IIS SMTP to handle application/Scanner relays into office 365.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question