Click here to Skip to main content
15,909,615 members
Home / Discussions / C#
   

C#

 
AnswerRe: ultragrid update sql server???? Pin
Dave Kreskowiak25-Oct-07 7:38
mveDave Kreskowiak25-Oct-07 7:38 
QuestionPlacing tabs on main menu. Pin
cooltuxxx25-Oct-07 4:22
cooltuxxx25-Oct-07 4:22 
AnswerRe: Placing tabs on main menu. Pin
Judah Gabriel Himango25-Oct-07 4:32
sponsorJudah Gabriel Himango25-Oct-07 4:32 
QuestionHow to display build version on your form... Pin
TheMattster25-Oct-07 4:17
TheMattster25-Oct-07 4:17 
AnswerRe: How to display build version on your form... Pin
Judah Gabriel Himango25-Oct-07 4:31
sponsorJudah Gabriel Himango25-Oct-07 4:31 
QuestionSerialization Pin
lokeshgm725-Oct-07 3:26
lokeshgm725-Oct-07 3:26 
AnswerRe: Serialization Pin
mav.northwind25-Oct-07 3:43
mav.northwind25-Oct-07 3:43 
GeneralRe: Serialization Pin
lokeshgm725-Oct-07 3:51
lokeshgm725-Oct-07 3:51 
Thanks for reply Mav. I had tried that before with

foreach (object obj in group1.serializedhashtable)
{
myarray.Add(obj);

}

But then when I try to serialize the arraylist I get an error "There was an error generating the XML document.".Here is the code snippet



// 'Open a filestream to write the contents
FileStream filest = new FileStream("newhashtable.txt", FileMode.Create);
XmlSerializer xs = new XmlSerializer(typeof(ArrayList), new Type[] { typeof(System.Int32), typeof(System.DateTime), typeof(System.String), typeof(System.TimeSpan) });
xs.Serialize(filest, myarray);
filest.Close();


Here are the exception details.

--------------------------------------------------------------------------------------------
System.InvalidOperationException was unhandled
Message="There was an error generating the XML document."
Source="System.Xml"
StackTrace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o)
at Module1.serialize() in D:\Project\actual csharp solution\Program.cs:line 96
at Module1.Main() in D:\Project\actual csharp solution\Program.cs:line 42
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
--------------------------------------------------------------------------------------------------------


Thanks you,

Lokesh


GeneralRe: Serialization Pin
lokeshgm725-Oct-07 4:04
lokeshgm725-Oct-07 4:04 
QuestionDetecting Hybernation Pin
gmarappledude25-Oct-07 3:15
gmarappledude25-Oct-07 3:15 
AnswerRe: Detecting Hybernation Pin
leppie25-Oct-07 3:48
leppie25-Oct-07 3:48 
GeneralRe: Detecting Hybernation Pin
gmarappledude25-Oct-07 3:54
gmarappledude25-Oct-07 3:54 
QuestionHas somebody made a surveillance thread which doesn't die? Pin
Klive825-Oct-07 2:44
Klive825-Oct-07 2:44 
AnswerRe: Has somebody made a surveillance thread which doesn't die? Pin
sujithkumarsl25-Oct-07 2:55
sujithkumarsl25-Oct-07 2:55 
GeneralRe: Has somebody made a surveillance thread which doesn't die? Pin
Klive825-Oct-07 3:23
Klive825-Oct-07 3:23 
AnswerRe: Has somebody made a surveillance thread which doesn't die? Pin
mav.northwind25-Oct-07 3:48
mav.northwind25-Oct-07 3:48 
QuestionProblem with moving picturebox with Cursor on Mouse_Move event. Pin
Chintan.Desai25-Oct-07 1:50
Chintan.Desai25-Oct-07 1:50 
AnswerRe: Problem with moving picturebox with Cursor on Mouse_Move event. Pin
Christian Graus25-Oct-07 1:55
protectorChristian Graus25-Oct-07 1:55 
GeneralRe: Problem with moving picturebox with Cursor on Mouse_Move event. Pin
Chintan.Desai25-Oct-07 22:59
Chintan.Desai25-Oct-07 22:59 
AnswerRe: Problem with moving picturebox with Cursor on Mouse_Move event. Pin
Abhijit Jana25-Oct-07 2:34
professionalAbhijit Jana25-Oct-07 2:34 
QuestionHow to store and retreave a word document in sql server data base using c#.net Pin
bobin scaria25-Oct-07 1:39
bobin scaria25-Oct-07 1:39 
AnswerRe: How to store and retreave a word document in sql server data base using c#.net Pin
Pete O'Hanlon25-Oct-07 1:46
mvePete O'Hanlon25-Oct-07 1:46 
Questioncustom control Pin
Tauseef A25-Oct-07 1:17
Tauseef A25-Oct-07 1:17 
AnswerRe: custom control Pin
Martin#25-Oct-07 1:40
Martin#25-Oct-07 1:40 
QuestionRe: custom control Pin
Tauseef A25-Oct-07 2:01
Tauseef A25-Oct-07 2:01 

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.