Click here to Skip to main content
16,004,991 members
Home / Discussions / C#
   

C#

 
GeneralRe: System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' Pin
Grimolfr19-May-04 8:21
Grimolfr19-May-04 8:21 
GeneralRe: System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' Pin
Dave Kreskowiak19-May-04 8:23
mveDave Kreskowiak19-May-04 8:23 
GeneralDropdownlist Pin
chhayaparekh19-May-04 6:56
chhayaparekh19-May-04 6:56 
GeneralRe: Dropdownlist Pin
pankajdaga19-May-04 8:02
pankajdaga19-May-04 8:02 
GeneralSerialization Problems Pin
Brian Delahunty19-May-04 6:38
Brian Delahunty19-May-04 6:38 
GeneralRe: Serialization Problems Pin
Heath Stewart19-May-04 6:49
protectorHeath Stewart19-May-04 6:49 
GeneralRe: Serialization Problems Pin
Brian Delahunty19-May-04 6:53
Brian Delahunty19-May-04 6:53 
GeneralRe: Serialization Problems Pin
Heath Stewart19-May-04 8:48
protectorHeath Stewart19-May-04 8:48 
Brian Delahunty wrote:
What do you mean?

Why don't you just serialize the entire object graph? Serialize your class's members, include the ArrayList. The runtime serialization framework will serialize the ArrayList, which will serialize BasicClass. Then you just take all that and save it in the DB.

Brian Delahunty wrote:
I though that was the problem myself (I had the same issure in the past) so I disabled the automatic versioning, wiped clear any objects stored in the DB, and started again, to see if it was the issue but it didn't make any difference at all.

The InvalidCastException you're getting indicates that the classes are indeed not the same. I would check with the debugger to find out the full Type of the object and compare with what it should be.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Serialization Problems Pin
Brian Delahunty20-May-04 3:12
Brian Delahunty20-May-04 3:12 
GeneralRe: Serialization Problems Pin
Heath Stewart20-May-04 3:20
protectorHeath Stewart20-May-04 3:20 
GeneralRe: Serialization Problems Pin
Brian Delahunty20-May-04 3:30
Brian Delahunty20-May-04 3:30 
GeneralRe: Serialization Problems Pin
Heath Stewart20-May-04 3:42
protectorHeath Stewart20-May-04 3:42 
GeneralSample C code for Socket Connect timeout Pin
rcheaito19-May-04 6:22
rcheaito19-May-04 6:22 
GeneralRe: Sample C code for Socket Connect timeout Pin
Heath Stewart19-May-04 6:51
protectorHeath Stewart19-May-04 6:51 
Generala problem with file management Pin
oneflyingstars19-May-04 5:49
oneflyingstars19-May-04 5:49 
GeneralRe: a problem with file management Pin
Heath Stewart19-May-04 6:07
protectorHeath Stewart19-May-04 6:07 
GeneralProblem with regular expression Pin
spyforcer19-May-04 4:29
spyforcer19-May-04 4:29 
GeneralRe: Problem with regular expression Pin
Heath Stewart19-May-04 4:37
protectorHeath Stewart19-May-04 4:37 
GeneralRe: Design Time Property Window Pin
Neil de Weerdt19-May-04 4:13
Neil de Weerdt19-May-04 4:13 
GeneralVS.NET Style Options Dialog Form Pin
Mister Slacker19-May-04 3:58
Mister Slacker19-May-04 3:58 
GeneralRe: VS.NET Style Options Dialog Form Pin
Heath Stewart19-May-04 4:32
protectorHeath Stewart19-May-04 4:32 
GeneralRe: VS.NET Style Options Dialog Form Pin
Mister Slacker19-May-04 6:17
Mister Slacker19-May-04 6:17 
GeneralRe: VS.NET Style Options Dialog Form Pin
Roman Rodov19-May-04 16:40
Roman Rodov19-May-04 16:40 
QuestionDummies Question: Access to StatusBar from SubClass? Pin
Ariadne19-May-04 3:49
Ariadne19-May-04 3:49 
AnswerRe: Dummies Question: Access to StatusBar from SubClass? Pin
Stefan Troschuetz19-May-04 4:19
Stefan Troschuetz19-May-04 4:19 

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.