.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

Why do I get errors when I try to serialize a Hashtable?

Posted By :Jegan R     Posted Date :November 03, 2010    Points :10   Category :.NET Framework 
XmlSerializer will refuse to serialize instances of any class that implements IDictionary, e.g. Hashtable. SoapFormatter and BinaryFormatter do not have this restriction.

You can also find related Interview Question to Why do I get errors when I try to serialize a Hashtable?  below: 

Which method is used to serialize an object into an XML document from Xmlserializer class?

  
The "Serialize" method is the first step of serialize process and used to create an XML document (More...)

Why HashTable is used?

  
It is a .NET class that allows an element to be accessed using a unique key. It is mainly used in database programming. (More...)

what is the difference between sortedList and Hashtable ?

  
Hash table and sorted list classes manage a collection of key value pairs the only difference between them is that in sorted list ,the values are sorted by keys and accesible by key as well as by index. (More...)

Real software is developing a speech-based user interface for blind people. However, speech based interface are difficult to design and time given by the client is short. To develop a functional interface without any errors, the company wants to first evaluate the prototype. They used the storyboard technique to demonstrate the functionality of the application. However, this technique was unable to demonstrate the interactive feature of the application. Analyze and provide solution for the above scenario?

  
1, The design team of Real software should have used the Sketching technique because storyboard technique would only provide the flow and features of the interface.

2, The design team of Real software should have used the Horizontal Prototyping because storyboard technique would only provide the flow of the interface.

3, The design team of Real software should have used the Wizard of Oz technique because storyboard technique would only provide the flow and features of the interface

4, The design team of Real software should have used the Vertical Prototyping because storyboard technique would only provide the flow of the interface.


Answer : 3 (More...)

Explain the ways to serialize the java object.

  
Object serialization could be used in different ways:

- Simple persistence of the object
- Reading from and writing to files
- RMI technology for communicating across hosts.

The encryption and decryption is left to the network transport. SSL or the like can be used when a secured channel is needed. (More...)

Is there any way to get the ORA error number (and/or description) for the errors that will fall into OTHERS?

  
Yes, you can use SQLCODE function to retrieve the error number and SQLERRM function to retrieve the error message.

For example, you could raise the error as follows:

EXCEPTION
WHEN OTHERS THEN
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
END;
(More...)

What's difference between HashTable and ArrayList ?

  
Array can be accessed using INDEX value. Hashtable provides way of accessing the index using a KEY value, thus removing the INDEX problem. (More...)

what is required to serialize an object?

  
Stream Object and Binary Formatter or SOAPFormatter (More...)

What is the Type of errors?

  
Configuration Errors
Parser Errors
Compilation Errors
Run-Time Errors (More...)

What are the types of errors?

  
Syntax error
Logic error
Runtime error
(More...)

What is the difference among Errors, Warnings and Messages which Visual Studio shows?

  
Errors are fatal error, which for, the ASP.Net page code is not getting converted to the MSIL code.

Warnings are non-fatal error which do not oppose ASP.Net page code to be converted to the MSIL, but if these warnings
could be resolved, then it would be perfect and Visual Studio can co-operate to resolve these warnings.

Messages are the text/string messages which IIS generates, at the time of page building which programmer can include in the page. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend