473,750 Members | 2,292 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Must implement IConvertable?!

Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL
Server 2000... when I execute this in query anaylzer it works perfectly and
returns a ID number for the identity column MessageID... but when I run this
in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args e)
in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a
isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to
Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...
Nov 18 '05 #1
7 1750
I tested it using a String type to receive the result of your stored
procedure and it worked. You may want to try that.

Telmo Sampaio

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OX******** ******@tk2msftn gp13.phx.gbl...
Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL
Server 2000... when I execute this in query anaylzer it works perfectly and returns a ID number for the identity column MessageID... but when I run this in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args e) in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to
Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...

Nov 18 '05 #2
try the cast using Int64. If I remember correctly, that's what BigInt maps
back to.

--

W.G. Ryan, eMVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OX******** ******@tk2msftn gp13.phx.gbl...
Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL
Server 2000... when I execute this in query anaylzer it works perfectly and returns a ID number for the identity column MessageID... but when I run this in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args e) in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to
Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...

Nov 18 '05 #3
tried it like this

MessageID = DirectCast(cmdA ddMessage.Execu teScalar(), Int64)

still same error

"William Ryan eMVP" <do********@com cast.nospam.net > wrote in message
news:uB******** ******@TK2MSFTN GP09.phx.gbl...
try the cast using Int64. If I remember correctly, that's what BigInt maps back to.

--

W.G. Ryan, eMVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OX******** ******@tk2msftn gp13.phx.gbl...
Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL Server 2000... when I execute this in query anaylzer it works perfectly

and
returns a ID number for the identity column MessageID... but when I run

this
in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args

e)
in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a
isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573;

ASP.NET
Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...


Nov 18 '05 #4
doesnt work here... same IConvertable error
"Telmo Sampaio" <ts******@gmail .com> wrote in message
news:Ok******** ******@TK2MSFTN GP11.phx.gbl...
I tested it using a String type to receive the result of your stored
procedure and it worked. You may want to try that.

Telmo Sampaio

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OX******** ******@tk2msftn gp13.phx.gbl...
Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL Server 2000... when I execute this in query anaylzer it works perfectly

and
returns a ID number for the identity column MessageID... but when I run

this
in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args

e)
in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a
isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573;

ASP.NET
Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...


Nov 18 '05 #5
didn't work, same error
"Telmo Sampaio" <ts******@gmail .com> wrote in message
news:Ok******** ******@TK2MSFTN GP11.phx.gbl...
I tested it using a String type to receive the result of your stored
procedure and it worked. You may want to try that.

Telmo Sampaio

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OX******** ******@tk2msftn gp13.phx.gbl...
Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL Server 2000... when I execute this in query anaylzer it works perfectly

and
returns a ID number for the identity column MessageID... but when I run

this
in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args

e)
in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a
isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573;

ASP.NET
Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...


Nov 18 '05 #6
Try this:

///
sqlCommand1.Par ameters["@sender"].Value="1";

sqlCommand1.Par ameters["@subject"].Value="1";

sqlCommand1.Par ameters["@messagebo dy"].Value="1";

sqlCommand1.Par ameters["@hasAttachment s"].Value=0;

sqlCommand1.Par ameters["@sentTime"].Value=Convert. ToDateTime("1/1/2004");

sqlConnection1. Open();

try

{

decimal a = (decimal)sqlCom mand1.ExecuteSc alar();

MessageBox.Show (a.ToString());

}

catch (System.Data.Sq lClient.SqlExce ption ex)

{

foreach (System.Data.Sq lClient.SqlErro r se in ex.Errors)

MessageBox.Show (se.ToString()) ;

}

finally

{

sqlConnection1. Close();

}

///

Telmo

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OX******** ******@tk2msftn gp13.phx.gbl...
Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL
Server 2000... when I execute this in query anaylzer it works perfectly and returns a ID number for the identity column MessageID... but when I run this in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args e) in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to
Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...

Nov 18 '05 #7
found the error, someone was passing the sender object in as a paramater...
cant believe it was something that stupid... but so well hidden in code

"Telmo Sampaio" <ts******@gmail .com> wrote in message
news:O8******** ******@TK2MSFTN GP10.phx.gbl...
Try this:

///
sqlCommand1.Par ameters["@sender"].Value="1";

sqlCommand1.Par ameters["@subject"].Value="1";

sqlCommand1.Par ameters["@messagebo dy"].Value="1";

sqlCommand1.Par ameters["@hasAttachment s"].Value=0;

sqlCommand1.Par ameters["@sentTime"].Value=Convert. ToDateTime("1/1/2004");

sqlConnection1. Open();

try

{

decimal a = (decimal)sqlCom mand1.ExecuteSc alar();

MessageBox.Show (a.ToString());

}

catch (System.Data.Sq lClient.SqlExce ption ex)

{

foreach (System.Data.Sq lClient.SqlErro r se in ex.Errors)

MessageBox.Show (se.ToString()) ;

}

finally

{

sqlConnection1. Close();

}

///

Telmo

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OX******** ******@tk2msftn gp13.phx.gbl...
Hi, I am doing the following stored procedure

CREATE PROCEDURE [dbo].[RSMN_AddMessage]
@sender varchar(50),
@subject varchar(400),
@messagebody text,
@hasAttachments bit,
@sentTime DateTime
AS
insert into messages(sender name, subject, messagebody, hasattachments,
senttime)
values (@sender, @subject, @messagebody, @hasAttachments , @sentTime)

select scope_identity( )
GO

which, the ID field of it (MessageID bigint) is a bigint data type in SQL Server 2000... when I execute this in query anaylzer it works perfectly

and
returns a ID number for the identity column MessageID... but when I run

this
in VB.NET with this code

database.OpenCo nnection()
MessageID = CInt(cmdAddMess age.ExecuteScal ar())
database.CloseC onnection()

it comes back with this on my asp.net page as the error...
Server Error in '/' Application.
Object must implement IConvertible.
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.InvalidC astException: Object must implement
IConvertible.

Source Error:

Line 88: database.OpenCo nnection()
Line 89:
Line 90: MessageID = CInt(cmdAddMess age.ExecuteScal ar())Line 91:
Line 92: database.CloseC onnection()
Source File: c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b Line: 90

Stack Trace:

[InvalidCastExce ption: Object must implement IConvertible.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteScala r()
hpsql.Compose.b tnSendMessage_C lick(Object sender, ImageClickEvent Args

e)
in c:\inetpub\wwwr oot\SecurePages \Compose.aspx.v b:90
System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)

System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R a
isePostBackEven t(String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.432 2.573;

ASP.NET
Version:1.1.432 2.573

what in the world is causing this? thanks! i also tried direct casting to Int64 and Int32 and both failed the same way... BigInt should be a 64bit
integer from what ive heard...


Nov 18 '05 #8

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

Similar topics

4
2447
by: wesley | last post by:
Hi, Why must abstract classes implements all the methods/property in the interface it implements? Since it's an abstract class it shouldn't be able to be instantiated and the child classes are those that should implement the interface. However in .Net I have to implement the interface in the abstract class as well. Why is this so?
2
11368
by: Bill Cart | last post by:
This is a question from a confused newbe.I have an oldDbCommand component called oleDbCmdAddDemoReq and an oldDbConnection called oleDbConDemoReq on a web form. I have the following code: oleDbConDemoReq.Open(); oleDbCmdAddDemoReq.ExecuteNonQuery(); oleDbConDemoReq.Close(); I get this error message:
4
2144
by: charleswesley | last post by:
I think the problem is with the strPrice variable in the AddToCart() sub. I've been messing with it all morning and can't seem to figure it out. Any ideas? +++++++++++++++++++++++++++++++++++++++++++ + EXCEPTION + +++++++++++++++++++++++++++++++++++++++++++ Object must implement IConvertible. Description: An unhandled exception occurred during the execution of
7
1261
by: Brian Henry | last post by:
Hi, I am doing the following stored procedure CREATE PROCEDURE . @sender varchar(50), @subject varchar(400), @messagebody text, @hasAttachments bit, @sentTime DateTime AS
5
19599
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was having a problem in the calling program. I searched online and found suggestions that I return an Array instead so I modified my code (below) to return an Array instead of an ArrayList. Now I get the message when I try to run just my webservice...
8
14756
by: fniles | last post by:
I have a collection inside a class, sometimes when I add to the collection, I get the error "At least one object must implement IComparable". What does the error mean ? Thanks. Public Class SessionClass Private Quotes As Collection = New Collection Sub NewQuote(ByVal Message As String) Dim swError As StreamWriter
11
1900
by: Bob Altman | last post by:
Hi all, I want to write a generic class that does this: Public Class X (Of T) Public Sub Method(param As T) dim x as T = param >3 End Sub End Class
0
8999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9338
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6803
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6080
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4712
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2223
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.