Re: Reference page cast not working




R Reyes wrote:
> Same thing happened again. The exact code has been working for the past half
> hour and when I reloaded the page I received this error:
> Unable to cast object of type 'ASP.JobDirectory_aspx' to type 'JobDirectory'.
>
> Note that this is for a different page with the same exact code:
> // Create an instance of the page reference class to get incoming values
> clsJobDirectory = (JobDirectory)Context.Handler;
> getJobProfile(Strings.ConvertToInt(clsJobDirectory.JobIDValue));
>
> Anyone know what's going on here? Please help as this issue holds me back
> from development whenever it pops up... Thank you!

No idea here, but I wanted to add some depth to the discussion. I am
seeing the same problem periodically since I started upgrading to VS
2005 and ASP.NET 2.0. So maybe this is really an issue for an asp.net
forum.

-- Chris

.