Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > CMSConnectionScope View modes: 
User avatar
Member
Member
roy.vanderploeg-gaprc - 6/1/2012 11:36:24 AM
   
CMSConnectionScope
We had a routine in our 5.5R2 global.asax that used the GeneralConnection to check some settings and do some things.

Now we are getting an error
"Unable to cast object of type 'CMS.DataProviderSQL.DataConnection' to type 'CMS.DataEngine.GeneralConnection'"

when trying to run that code.

Is there functionality that can perform these checks using the 'CMS.DataProviderSQL.DataConnection' instead of the 'CMS.DataEngine.GeneralConnection'.

This process is going through and updating the Procedure which takes the GeneralConnection type.

????

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 6/3/2012 3:58:59 AM
   
RE:CMSConnectionScope
Hi,

could you please share your code?

In 6.0 version were changes related to SQL connections. More information you can find here:
6.0 API changes

Best regards,
Ivana Tomanickova