Project Server Error after provisioning PWA

I have just been through the process of provisioning a Project Server 2010  instance on a new server and hit a problem I’ve never encountered in all the install/configs I’ve performed in the last couple of years.

When I tried to create the Project Web App Service Application within Central Administration and received an error indicating that the Project Application Service was not started. After starting this I returned to the Service Applications page and created the Project Web App Service Application. Next I went to the Manage Project Web App Sites page on the newly created service application and  created a Project Web App site. After the provisioning had completed with no apparent problems I attempted to browse to the newly created Project Web App site but received and error when trying to hit both the default.aspx page and the projects.aspx page.  When I looked up the correlation id for the fault in the logs I found the following:

xmnv    Medium      Name=Request (GET:http://x.com:80/ProjectServer/projects.aspx)    05054a32-48f2-41bf-b7b6-897654d81ea7
05/09/2012 09:59:23.04     w3wp.exe (0x243C)                           0x1D20    SharePoint Foundation             Logging Correlation Data         

xmnv    Medium      Site=/ProjectServer    05054a32-48f2-41bf-b7b6-897654d81ea7
05/09/2012 09:59:23.04     w3wp.exe (0x243C)                           0x1D20    SharePoint Foundation             Monitoring                       

b4ly    High        Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=30.8825981867184    05054a32-48f2-41bf-b7b6-897654d81ea7
05/09/2012 09:59:23.04     w3wp.exe (0x243C)                           0x1D20    SharePoint Foundation             Runtime                          

tkau    Unexpected    System.InvalidOperationException: Could not get the application proxy object    at Microsoft.Office.Project.Server.Administration.RoutingContext.InternalGetProxy(Guid siteUid)     at Microsoft.Office.Project.Server.Administration.RoutingContext.InternalGetRoutingContext(String address, String& endpointUri, Guid siteUid)     at Microsoft.Office.Project.Server.Administration.RoutingContext.GetRoutingContext(String address, String& endpointUri, Guid siteUid)     at Microsoft.Office.Project.Server.AuthenticationHelper.AuthenticateUserByName(String userName, Guid siteId)     at Microsoft.Office.Project.PWA.PJContext.AuthenticateUserForPWA(Boolean needToValidateUser, String username, Guid siteId)     at Microsoft.Office.Project.PWA.PJContext.AuthenticateUserForPWA(Boolean newCookie)     at Micro…    05054a32-48f2-41bf-b7b6-897654d81ea7
05/09/2012 09:59:23.04*    w3wp.exe (0x243C)                           0x1D20    SharePoint Foundation             Runtime                          

The key indicator of what was causing the problem was the text  “System.InvalidOperationException: Could not get the application proxy object”. A bit more investigation turned up what seemed like the same problem mentioned on a TechNet post along with a potential solution. The problem is that for some reason the application service proxy wasn’t created when the Project Web App Service Application was created. I confirmed this by looking on the Service applications list and whilst the Project Server PSI Service Application existed the Project Server PSI Service Proxy didn’t. This problem was probably related to the fact that the Project Application Service was not started when I attempted to create the new service application.

The solution to the problem was to go to the Manage Project Web App Sites page and delete the newly created Project Web App site. Once this was gone I then deleted the Project Web App Service Application. Next I started the creation and provisioning process from scratch and this time confirmed that the Project Server PSI Service Proxy was created along with the Project Server PSI Service Application. After creating the Project Web App site I was able to access new PWA with no issues.

Advertisements

Leave a comment

Filed under Project Server 2010, SharePoint 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s