PC Review


Reply
 
 
=?Utf-8?B?Q2hyaXMgS3JhbWFubg==?=
Guest
Posts: n/a
 
      21st Jan 2004
Hi

I copied my .NET Application from a W2K SP4, SQL2000 to a W2K3, SQL2000 Server.
When i try to run the application, i get the following error:
-------------------------------------------------------------------------
Server Error in '/ApplicationName' Application.
Specified cast is not valid
Description: An unhandled exception occured during of the
current web request. Please review the stack for more .....
Exception Details: System.InvalidCastException: Specified
cast is not valid.
-------------------------------------------------------------------------

On the old Server everything works fine.
Any idea?

Thanks a lot
Chris


 
Reply With Quote
 
 
 
 
Ryan Trudelle-Schwarz
Guest
Posts: n/a
 
      22nd Jan 2004
"Chris Kramann" <(E-Mail Removed)> wrote
> Hi
>
> I copied my .NET Application from a W2K SP4, SQL2000 to a W2K3, SQL2000

Server.
> When i try to run the application, i get the following error:
> -------------------------------------------------------------------------
> Server Error in '/ApplicationName' Application.
> Specified cast is not valid
> Description: An unhandled exception occured during of the
> current web request. Please review the stack for more .....
> Exception Details: System.InvalidCastException: Specified
> cast is not valid.
> -------------------------------------------------------------------------
>
> On the old Server everything works fine.
> Any idea?


Did the server move also move it from .net 1.0 to .net 1.1? It is possible
that this is related to one of the breaking changes.


 
Reply With Quote
 
=?Utf-8?B?Q2hyaXMgS3JhbWFubg==?=
Guest
Posts: n/a
 
      22nd Jan 2004
Yes, the server moved from .net 1.0 to .net 1.1.

But what could be the problem?
 
Reply With Quote
 
Ryan Trudelle-Schwarz
Guest
Posts: n/a
 
      22nd Jan 2004
"Chris Kramann" <(E-Mail Removed)> wrote

> Yes, the server moved from .net 1.0 to .net 1.1.
>
> But what could be the problem?


Can you post the full error message? It should tell you what is actually
causing the problem.


 
Reply With Quote
 
=?Utf-8?B?Q2hyaXMgS3JhbWFubg==?=
Guest
Posts: n/a
 
      23rd Jan 2004
Here is the full error message:

Server Error in '/Timesheet' Application.
--------------------------------------------------------------------------------
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Specified cast is not valid.]
System.Web.Configuration.HttpCapabilitiesEvaluator.Evaluate(HttpRequest request) +493
System.Web.Configuration.HttpCapabilitiesBase.GetConfigCapabilities(String configKey, HttpRequest request) +43
System.Web.HttpRequest.get_Browser() +143
System.Web.UI.WebControls.BaseValidator.DetermineRenderUplevel() +68
System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +27
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1489
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
 
Reply With Quote
 
Ryan Trudelle-Schwarz
Guest
Posts: n/a
 
      23rd Jan 2004
"Chris Kramann" <(E-Mail Removed)> wrote
> Here is the full error message:
>
> Server Error in '/Timesheet' Application.
> --------------------------------------------------------------------------

------
> Specified cast is not valid.
> Description: An unhandled exception occurred during the execution of the

current web request. Please review the stack trace for more information
about the error and where it originated in the code.
> Exception Details: System.InvalidCastException: Specified cast is not

valid.
> Source Error:
> An unhandled exception was generated during the execution of the current

web request. Information regarding the origin and location of the exception
can be identified using the exception stack trace below.
> Stack Trace:
> [InvalidCastException: Specified cast is not valid.]
> System.Web.Configuration.HttpCapabilitiesEvaluator.Evaluate(HttpRequest

request) +493
>

System.Web.Configuration.HttpCapabilitiesBase.GetConfigCapabilities(String
configKey, HttpRequest request) +43

Would appear to be a config file problem. I'd try comparing your web.config
file to a fresh v1.1 config file. I know there were a few changes, but I
cannot find documentation on them and no longer remember what they were.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
explicit operator cast --> Specified cast is not valid Peter Microsoft C# .NET 1 24th Aug 2011 09:06 AM
CAST conversion error: Syntax Error missing operator Azzna Microsoft Access Form Coding 4 24th Jan 2007 05:24 PM
Error migrating to .NET 2.0 : OracleCommand DBCommand cast error eclypse@pandora.be Microsoft ADO .NET 1 20th Jan 2006 09:43 PM
checking for valid cast before cast is called? =?Utf-8?B?d2dpbGxpbg==?= Microsoft Dot NET Framework 1 27th Jun 2005 10:29 PM
XSD.Exe error: Error generating classes for schema 'xxxxxxx'. - Specified cast is not valid. eSapient Microsoft C# .NET 1 1st Jul 2004 01:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 AM.