Re: Reference page cast not working
- From: thestatsguy@xxxxxxxxx
- Date: 23 Nov 2005 06:46:19 -0800
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
.
- Follow-Ups:
- Re: Reference page cast not working
- From: thestatsguy
- Re: Reference page cast not working
- Prev by Date: Re: Newbie Question - Using Static (from VB.net) in C#
- Next by Date: Re: how to run multiple instances of a windows service
- Previous by thread: Re: some c# questions!! please send me the answer
- Next by thread: Re: Reference page cast not working
- Index(es):