473,408 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Interpreting the error message?

Hi all,

I have a webform containing about 9 web user controls, these primarily are
just html in a control thats used as the template etc..

A colleague has given me another control for our secure login, alas he's not
around to ask for help at the moment, but since adding his control I get an
error and I simply cannot decipher what it means, therefore I cannot find
where I need to look, the only thing I can confirm is that before I added
his control everything was fine (and I've not added any other since or made
any other changes since) - if I remove his control (and the associated code
in the html view) then my app works fine again....bit stuck...

I am receiving the following error message but I have no idea where to start
looking - any help is apprecated :)
Server Error in '/eNotifications' Application.
----------------------------------------------------------------------------
----

Input string was not in a correct format.
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.FormatException: Input string was not in a correct
format.

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:

[FormatException: Input string was not in a correct format.]
Microsoft.VisualBasic.CompilerServices.DecimalType .Parse(String Value,
NumberFormatInfo NumberFormat) +207
Microsoft.VisualBasic.CompilerServices.LongType.Fr omString(String Value)
+94

[InvalidCastException: Cast from string "/enotifications/notification.asp"
to type 'Long' is not valid.]
Microsoft.VisualBasic.CompilerServices.LongType.Fr omString(String Value)
+206
Microsoft.VisualBasic.CompilerServices.LongType.Fr omObject(Object Value)
+711
Microsoft.VisualBasic.CompilerServices.ObjectType. BitAndObj(Object obj1,
Object obj2) +880
eNotifications.SessionCheck.Page_Load(Object sender, EventArgs e) in
C:\Documents and
Settings\MeadeR.UBHT_NT.000\VSWebCache\avondev\eNo tifications\Secure\Session
Check.ascx.vb:31
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731

Regards

Rob
Nov 18 '05 #1
2 1584
The problem is that you are send a string to a function that expects a
number, but the string is not a number. See my comments below...

"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message news:<Oq**************@TK2MSFTNGP12.phx.gbl>...
Hi all,

I have a webform containing about 9 web user controls, these primarily are
just html in a control thats used as the template etc..

A colleague has given me another control for our secure login, alas he's not
around to ask for help at the moment, but since adding his control I get an
error and I simply cannot decipher what it means, therefore I cannot find
where I need to look, the only thing I can confirm is that before I added
his control everything was fine (and I've not added any other since or made
any other changes since) - if I remove his control (and the associated code
in the html view) then my app works fine again....bit stuck...

I am receiving the following error message but I have no idea where to start
looking - any help is apprecated :)
Server Error in '/eNotifications' Application.
----------------------------------------------------------------------------
----

Input string was not in a correct format.
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.FormatException: Input string was not in a correct
format.

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:

[FormatException: Input string was not in a correct format.]
Microsoft.VisualBasic.CompilerServices.DecimalType .Parse(String Value,
NumberFormatInfo NumberFormat) +207
The above line says that it was trying to parse a string value into a
Decimal type.
Microsoft.VisualBasic.CompilerServices.LongType.Fr omString(String Value)
+94

[InvalidCastException: Cast from string "/enotifications/notification.asp"
to type 'Long' is not valid.]
Above, it tells you the string contains the value
"/enotifications/notification.asp" and it is trying to convert it to a
long, which won't work. Change the value of the string to a number
and you will be on your way.
Microsoft.VisualBasic.CompilerServices.LongType.Fr omString(String Value)
+206
Microsoft.VisualBasic.CompilerServices.LongType.Fr omObject(Object Value)
+711
Microsoft.VisualBasic.CompilerServices.ObjectType. BitAndObj(Object obj1,
Object obj2) +880
eNotifications.SessionCheck.Page_Load(Object sender, EventArgs e) in
C:\Documents and
Settings\MeadeR.UBHT_NT.000\VSWebCache\avondev\eNo tifications\Secure\Session
Check.ascx.vb:31
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731

Regards

Rob

Nov 18 '05 #2
"nfedin" wrote ...
The problem is that you are send a string to a function that expects a
number, but the string is not a number. See my comments below...


Many thanks for your reply nfedin.

Regards

Rob

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: r6uji7 | last post by:
hello, i am new to PHP programming and wondered if u could help. lets say i have the following files: 1. error.php: that is routed to for all errors. this page should display proper and...
0
by: Nick Leeson | last post by:
Hi, I am using the DDD front-end to debug a program I wrote in C. I got the following error message... --------------------------------------------------------------- Program received signal...
3
by: Roger Sherman | last post by:
I'm using CYGWIN g++. I'm having trouble making an API call the WindowFromPoint function. Here is my code. FILE: t.cc #include <windows.h> int main () { POINT p;
3
by: Chris Saunders | last post by:
I am attempting to write and interface from another language to some C code. I am having some difficulty interpreting a declaration. int (*SSL_CTX_get_verify_callback(SSL_CTX...
3
by: Chris Saunders | last post by:
Hope this question is appropriate here. I'm writing an interface to some C code for the language Eiffel. I have come across this macro and am having difficuly interpreting what it returns: ...
7
by: Greg Buchholz | last post by:
I'm wondering if anyone has advice for figuring out error messages produced by g++. The programs below works fine, until I uncomment out the two "transform" lines. Then it points me to line 24...
0
by: holysmokes99 | last post by:
I have a VB.Net (1.1) that uses SQL-DMO via COM Interop to create a linked server. The code throws an exception, as it should, when the linked server I am trying to create already exists on the...
14
by: brett | last post by:
I have an ASP.NET 2.0 web application that runs fine on my local machine. However, once I upload it, I get this error: Parser Error Description: An error occurred during the parsing of a...
6
by: mikemtnbikes | last post by:
Hello, I'm a biologist who does a fair amount of hack programming. I'm not really formally trained so perhaps this question is a bit basic. My problem is that I'm trying to understand some...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.