Click here to Skip to main content
15,892,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: connection string problem Pin
The Man from U.N.C.L.E.1-Dec-09 2:08
The Man from U.N.C.L.E.1-Dec-09 2:08 
GeneralRe: connection string problem Pin
souidi abderrahman1-Dec-09 5:37
souidi abderrahman1-Dec-09 5:37 
GeneralRe: connection string problem Pin
S. Brozius1-Dec-09 2:11
S. Brozius1-Dec-09 2:11 
AnswerRe: connection string problem Pin
Vimalsoft(Pty) Ltd1-Dec-09 3:45
professionalVimalsoft(Pty) Ltd1-Dec-09 3:45 
QuestionUnable to serialize the session state when session mode is SqlServer Pin
Kuricheti1-Dec-09 0:20
Kuricheti1-Dec-09 0:20 
AnswerRe: Unable to serialize the session state when session mode is SqlServer Pin
Abhishek Sur1-Dec-09 0:40
professionalAbhishek Sur1-Dec-09 0:40 
GeneralRe: Unable to serialize the session state when session mode is SqlServer Pin
Kuricheti1-Dec-09 22:29
Kuricheti1-Dec-09 22:29 
GeneralRe: Unable to serialize the session state when session mode is SqlServer Pin
Abhishek Sur2-Dec-09 20:28
professionalAbhishek Sur2-Dec-09 20:28 
To have a good code, please dont put any complex objects in Session.
Dont put DataSets, DataTables, List etc in session. I dont know why do you require this?

If you see what a dataset serializes to, you will find there are lots of unnecessary properties and objects which it serializes. That means you will very easily eat up all the server memory within seconds.

It is always recommended to put premitive types, structures in Session. If you are creating a Serializable type, always use NotSerialisable attribute for unnecessary public members.

Why dont you put the id in session. It is a good technique to call database when needed for WEB environment rather than putting huge data into session.

The only possibility to have corrupted session object is because of issues on Serialization. Check each object you put in session. There must be something.

Rose | [Rose]

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

GeneralRe: Unable to serialize the session state when session mode is SqlServer Pin
Abhishek Sur2-Dec-09 20:29
professionalAbhishek Sur2-Dec-09 20:29 
AnswerRe: Unable to serialize the session state when session mode is SqlServer Pin
Abhijit Jana1-Dec-09 0:54
professionalAbhijit Jana1-Dec-09 0:54 
Questionhow we generate Tally XML file Pin
lrsalunkhe30-Nov-09 21:37
lrsalunkhe30-Nov-09 21:37 
AnswerRe: how we generate Tally XML file Pin
Abhijit Jana30-Nov-09 21:50
professionalAbhijit Jana30-Nov-09 21:50 
GeneralRe: how we generate Tally XML file Pin
lrsalunkhe30-Nov-09 21:58
lrsalunkhe30-Nov-09 21:58 
AnswerRe: how we generate Tally XML file Pin
dan!sh 30-Nov-09 22:04
professional dan!sh 30-Nov-09 22:04 
AnswerRe: how we generate Tally XML file Pin
Dinesh Mani30-Nov-09 22:35
Dinesh Mani30-Nov-09 22:35 
AnswerRe: how we generate Tally XML file Pin
Abhishek Sur1-Dec-09 0:27
professionalAbhishek Sur1-Dec-09 0:27 
GeneralRe: how we generate Tally XML file Pin
Shyam Bharath1-Dec-09 8:01
Shyam Bharath1-Dec-09 8:01 
GeneralRe: how we generate Tally XML file Pin
Abhishek Sur1-Dec-09 8:27
professionalAbhishek Sur1-Dec-09 8:27 
QuestionSend Email Using My gmail Account Pin
Thilina.madush30-Nov-09 20:22
Thilina.madush30-Nov-09 20:22 
AnswerRe: Send Email Using My gmail Account Pin
sashidhar30-Nov-09 20:24
sashidhar30-Nov-09 20:24 
AnswerRe: Send Email Using My gmail Account Pin
Abhishek Sur30-Nov-09 20:45
professionalAbhishek Sur30-Nov-09 20:45 
GeneralRe: Send Email Using My gmail Account Pin
souidi abderrahman1-Dec-09 5:43
souidi abderrahman1-Dec-09 5:43 
GeneralRe: Send Email Using My gmail Account Pin
Abhishek Sur1-Dec-09 8:31
professionalAbhishek Sur1-Dec-09 8:31 
GeneralRe: Send Email Using My gmail Account Pin
souidi abderrahman1-Dec-09 20:55
souidi abderrahman1-Dec-09 20:55 
GeneralRe: Send Email Using My gmail Account Pin
Abhishek Sur2-Dec-09 20:33
professionalAbhishek Sur2-Dec-09 20:33 

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.