Unable to Mount Database

We have an exchange server 2010 and the mailbox databases will not mount.  Here is the error message:

Error code: An active manager operation failed.  Erorr the database action failed.  Erorr: operation failed with the message: MapiExecptionAccess unable to mount database. hr=0x8007005, ec=-2147024891

The server is also a hyper v server running on 2008R2 enterprise.  The server also runs dns, dhcp, and AD
Who is Participating?
PcolaITConnect With a Mentor Author Commented:
Ok, got everything working!  The databases were a permissions issue that didn't carry over.

Then activesync and owa was not working.  I saw an error in event log that pointed to asp.net and "invalid directory"  

I checked the directory and there was a .dll file that was missing.  To fix this I had to right click on My computer, advanced, then environmental variables and check the Temp and TMP locations under the system variables.  They were pointing to E:\Temp and E:\TMP, which referred to a partition that was deleted before I migrated the servers.  I changed the directories to %Windir%\Temp and %Windir%\TMP and restarted IIS and activesync and owa began working!  

Thank you all for your help and suggestions!  I'm going to comb over the event logs to make sure there are no other problems.  Looks like worst is over (I hope!)
Do you have any backups of the database ?

Take a look at the restore step by step at the link below:

Pay specific attention to step 2 if you have not been backing up the DB and multiple log files might be present.
Cliff GaliherCommented:
Your error code is missing a digit. But I can guess it is 80070005. That is a permissions issue. If you copied this database from another machine you'll have to update the permissions on the file so the exchange system services can read and write to it.
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

PcolaITAuthor Commented:
Yes that is the correct error code.  Sorry about that.  It looks like both folders have the correct permissions:

System Full Control (also owner of folder)
Organizational Management Full Control
View-Only Organizational Management Read & execute, list folder contents, Read
Administrators Full Control

What other permissions do I need to change?  What about inheritable permissions and child objects? Those are unchecked.
PcolaITAuthor Commented:
I got the databases mounted.  Had to go to adsi edit and grant full access to server in first administrative group.  However, I still see issues and mobile devices are not gettng email.  Here is the error I see:

Event ID 1310, Source ASP.NET 2.0.50727.0

Event Code 3007

event message: A compilation error has occurred.

Exception type:HttpComplieException

exception message(0) error: CS0016: Could not write to output file c:\Windows\Microsoft.Net\Framework64\............. 'The directory name is invalid'

I checked and the referenced .dll is missing in that folder.
Seth SimmonsSr. Systems AdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.