Skip to main content
Planview Customer Success Center

Specified cast is not valid error appearing in several pages (V2012/V2014)

Symptoms
Following pages fail with error in both 2012 SP1 and 2012 environments, after the installation of 2012 SP1 environment:

- Project edit page,
- Engagement treeview
- User Setup page (System Manager and Enterprise)

Error/warning messages
Changepoint Event log and Application Event Log may contain the following error:

========
Exception type: InvalidCastException
Exception message: Specified cast is not valid.
========

The error may be occuring on any of the pages below:

• /core/projects/dcProject.aspx
• /Core/TreeViews/tvEngagementOpportunity.aspx
• /Core/TreeViews/tvCustomerContact.aspx
• /Core/TreeViews/tvTimeExpense.aspx
• /Admin/Resource/deResource.aspx

Reason
2012 and 2012 SP1 environments are using the same AppFabric cache, which is not a supported configuration.


Resolution
Distinct AppFabric caches need to be used for each Changepoint installation.

Follow the instructions in page 36-38 of your installation guide in order to reconfigure AppFabric as well as the individual test environments.

Additional notes
If you are adding Changepoint instances to an existing Changepoint environment, for example to add testing and training environment instances, run the following Powershell commands at the Caching Administration Windows Powershell prompt:

Use-CacheCluster -Provider XML -ConnectionString \\YourAppFabricServerURL\cacheConfig
New-Cache -CacheName CPTestInProcess -NotificationsEnabled True -Eviction LRU -TimeToLive 60 -Expirable True
New-Cache -CacheName CPTestOutOfProcess -NotificationsEnabled False -Eviction LRU -TimeToLive 60 -Expirable True