Goal
You are trying to install/upgrade Business Portal for Dynamics SL 7.0. You do the install and get no error messages. You try to open business portal and no error message shows you get that Error. An Unexpected Error has occurred. You turn off simple HTTP errors and still you get the same nondescript error.
You look at %temp% (Hit Start, then run and type %temp% in the command line) and all the install logs (place you should always start with a problem in installing BP), but find no errors you can see. You also check the logs under Application and Security and nothing is there. SharePoint runs fine but you can’t find what the actual error is in BP. IT just won’t run.
Environment
Dynamics SL 7.0. Windows Server 2003 Enterprise SP 2. SQL 2008 SP 1.
Issue
First Trick, when you are getting errors that don’t tell you anything and nothing is logged, Open IIS Manager. Right mouse on the site and select browse. In this case drill down to the BusinessPortal Virtual Directory and browse. When you do this you get the actual error which is: “Cannot open database ‘System Database Name’ requested by the login. Login failed. Login failed for user ‘BusinessPortalUser’. Sounds Simple enough! You go into SQL Enterprise Manager and log in as BusinessPortalUser. You make sure you can get in see the system database and the application. If you cannot get in then the password is different then you thought and in the upgrade you told SL the wrong password. Change the password in SQL by double clicking under Security and Logins and BusinessPortalUser. Type new password twice then hit ok.
If you had to change or not, then search for the pcconfigure.exe. It should be in port 80’s virtual directory. Double click and enter the server, system database, BusinessPortalUser and the password.
9 times out of 10 even if you do this, you will still get the error. This happens to me a lot so you are bound to see it. Ergo this post.
Resolution
Business Portal has a registry key that it keeps login information for the business portal user. If the owner of the Business Portal does not have proper rights to the registry then it will fail with the error. The Key is the PMA key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Portal\PMA So you go into RegEdit, drill down to the key. Right mouse on PMA and select security. Assign the owner of the businessportal to have read rights. To find the owner, look in IIS under the Business Portal virtual Directory then go to the application pool for it and assign it to the identity in that application pool.
There is a chance that the Capicom.dll is the wrong version. I have only seen this once or twice but know a that you may have to check that if its not fixed.
Conclusion
A common error in BP can be better diagnosed by browsing in IIS and then fixed by assigning registry rights to the owner of BP.