+ Start a Discussion
Vivek ViswanathVivek Viswanath 

Error On Page while deploying the controller

Hi,

I am getting an error on page while deploying the controller. I have test calsses and all except one controller has above 90% and the one has about 80% yet when I try to deploy it I get an error saying Error on page.

The only thing is that my visual force pages are outside the package and the controller is inside it.

Any ideas on this.

Regards

Vivek Viswanathan


Message Edited by Vivek Viswanath on 08-28-2008 09:05 AM
JonPJonP
You've identified the problem correctly.  The workaround for now, until Winter '09 when Visualforce Pages become packageable, is to define a stub page in your destination environment before you deploy.  This way, your controller will find the page reference it requires to compile (the stub), and then the stub can be overwritten by the page (which requires the controller to exist first).