DotNetNuke Upgrade Error

The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

The EXECUTE permission was denied on the object 'GetPortalAliasByPortalID', database 'iasg2', schema 'dbo'.