Click here to Skip to main content
16,006,065 members
Home / Discussions / C#
   

C#

 
Questiondataset filter Pin
arkiboys1-May-07 6:21
arkiboys1-May-07 6:21 
AnswerRe: dataset filter Pin
Tarakeshwar Reddy1-May-07 7:02
professionalTarakeshwar Reddy1-May-07 7:02 
QuestionUrgent Reflection / Casting issue Pin
Program.X1-May-07 6:15
Program.X1-May-07 6:15 
AnswerRe: Urgent Reflection / Casting issue Pin
Ian Shlasko1-May-07 8:29
Ian Shlasko1-May-07 8:29 
GeneralRe: Urgent Reflection / Casting issue Pin
Program.X1-May-07 8:39
Program.X1-May-07 8:39 
GeneralRe: Urgent Reflection / Casting issue Pin
Ian Shlasko1-May-07 8:57
Ian Shlasko1-May-07 8:57 
GeneralRe: Urgent Reflection / Casting issue Pin
LongRange.Shooter1-May-07 10:27
LongRange.Shooter1-May-07 10:27 
GeneralRe: Urgent Reflection / Casting issue Pin
LongRange.Shooter1-May-07 10:29
LongRange.Shooter1-May-07 10:29 
Oops, I replied with this info to the wrong person. If you're running in ASP or not -- here are some things to consider.

If you are doing this in ASP, then you might have an older definition of the class sitting around in the IIS compile cache. You may have to try clearing that out and see if it helps. I've had these issues before....and it always is something that I've done or another developer has done. In one case, my test class worked perfectly. But it turned out a web developer created reference to a hard dll location instead of Project Output and the ASP code was executing my code to get the object then using the old reference in the web app for casting. Grrrrrr. Mad | :mad:

Unfortunately, this is not something that is quick to fix if your solution is huge. Clean out the solution, make sure the dll isn't in any bin or obj folder, make sure there is only a single instance of pubic class ObjectType (sorry I forgot the object name you were erring out on) by doing a solution level Find and also by doing a file-level search with a search string.

I cannot find on my machine where ASP.NET caches the compiles. Maybe someone else here can help.
GeneralRe: Urgent Reflection / Casting issue Pin
Program.X1-May-07 10:44
Program.X1-May-07 10:44 
GeneralRe: Urgent Reflection / Casting issue Pin
Program.X2-May-07 0:24
Program.X2-May-07 0:24 
GeneralRe: Urgent Reflection / Casting issue Pin
Program.X2-May-07 0:43
Program.X2-May-07 0:43 
AnswerRe: Urgent Reflection / Casting issue Pin
DavidNohejl1-May-07 11:11
DavidNohejl1-May-07 11:11 
Questionadd a control to DataGridView Pin
Mohammed Elkholy1-May-07 6:11
Mohammed Elkholy1-May-07 6:11 
AnswerRe: add a control to DataGridView Pin
LongRange.Shooter1-May-07 10:30
LongRange.Shooter1-May-07 10:30 
GeneralRe: add a control to DataGridView Pin
Mohammed Elkholy1-May-07 10:39
Mohammed Elkholy1-May-07 10:39 
GeneralRe: add a control to DataGridView Pin
LongRange.Shooter1-May-07 10:48
LongRange.Shooter1-May-07 10:48 
GeneralRe: add a control to DataGridView Pin
Keshav V. Kamat1-May-07 23:32
Keshav V. Kamat1-May-07 23:32 
QuestionFailed Assertion??? Pin
Justin Perez1-May-07 5:51
Justin Perez1-May-07 5:51 
AnswerRe: Failed Assertion??? Pin
CPallini1-May-07 7:21
mveCPallini1-May-07 7:21 
GeneralRe: Failed Assertion??? [modified] Pin
Justin Perez1-May-07 10:35
Justin Perez1-May-07 10:35 
GeneralRe: Failed Assertion??? Pin
CPallini1-May-07 12:34
mveCPallini1-May-07 12:34 
GeneralRe: Failed Assertion??? Pin
Justin Perez1-May-07 12:42
Justin Perez1-May-07 12:42 
QuestionHow to format a double to a desired format? Pin
meng@codeProject1-May-07 5:31
meng@codeProject1-May-07 5:31 
AnswerRe: How to format a double to a desired format? Pin
Guffa1-May-07 5:40
Guffa1-May-07 5:40 
GeneralRe: How to format a double to a desired format? Pin
PIEBALDconsult1-May-07 19:02
mvePIEBALDconsult1-May-07 19:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.