S
SandpointGuy
I have a masterpage named MasterpageController with a menu. In the
codebehind I have a method SetMasterMenu(<some parms>) to display the
appropriate menu items.
The content page, which has a MasterType directive, executes the method
using "this.Master.SetMasterMenu(<some parms>)". Runs fine for maybe 5-10
"start with/without debugging"'s, while I am in development mode in vs.net
2005, and then I'll start getting an "Unable to cast object of type
'ASP.masterpagecontroller_master' to type 'ASP.masterpagecontroller_master'"
when the content page attempts to execute the method. I have to restart IIS
to get the app to run correctly .. then a few starts later I get the
exception.
Any ideas on how to fix this?
codebehind I have a method SetMasterMenu(<some parms>) to display the
appropriate menu items.
The content page, which has a MasterType directive, executes the method
using "this.Master.SetMasterMenu(<some parms>)". Runs fine for maybe 5-10
"start with/without debugging"'s, while I am in development mode in vs.net
2005, and then I'll start getting an "Unable to cast object of type
'ASP.masterpagecontroller_master' to type 'ASP.masterpagecontroller_master'"
when the content page attempts to execute the method. I have to restart IIS
to get the app to run correctly .. then a few starts later I get the
exception.
Any ideas on how to fix this?