P
pdabak
Hello,
I had an ASP.NET application running on Windows 2003 machine and it was
all working fine. I upgraded the machine to Windows 2003 SP1 and now my
application is failing with "Specified cast is not valid" exception.
Here is the code snippet where the error comes from.
Object o=System.Activator.CreateInstance(t);
IMyInterface p = (IMyInterface)o;
I create an instance of type t and attempt to cast it to interface
IMyInterface. This was working fine till the moment I upgraded Windows
2003 SP1.
My belief is Window 2003 SP1 would have upgraded .NET framework 1.1 as
well and there must be some behavioral change in .NET framework SP1.
I found the following KB on Microsoft site which showed the similar
symptoms where Biztalk Server 2004 failed due to same reason after
applying .NET framework SP1.
http://support.microsoft.com/default.aspx?scid=KB;EN-US;875540
Although the KB talks about the hotfix for Biztalk server, it doesn't
talk about the underlying reason for this breaking after applying .NET
framework SP1.
Can anybody shade some light on this?
Thanks.
-Prasad
I had an ASP.NET application running on Windows 2003 machine and it was
all working fine. I upgraded the machine to Windows 2003 SP1 and now my
application is failing with "Specified cast is not valid" exception.
Here is the code snippet where the error comes from.
Object o=System.Activator.CreateInstance(t);
IMyInterface p = (IMyInterface)o;
I create an instance of type t and attempt to cast it to interface
IMyInterface. This was working fine till the moment I upgraded Windows
2003 SP1.
My belief is Window 2003 SP1 would have upgraded .NET framework 1.1 as
well and there must be some behavioral change in .NET framework SP1.
I found the following KB on Microsoft site which showed the similar
symptoms where Biztalk Server 2004 failed due to same reason after
applying .NET framework SP1.
http://support.microsoft.com/default.aspx?scid=KB;EN-US;875540
Although the KB talks about the hotfix for Biztalk server, it doesn't
talk about the underlying reason for this breaking after applying .NET
framework SP1.
Can anybody shade some light on this?
Thanks.
-Prasad