How does the XmlSerializer work? What ACL permissions does a
process using it require?

Answer Posted / sweta kumari

The XmlSerializer constructor will generate a pair of classes derived from XmlSerializationReader and XmlSerializationWriter by analyzing the your class using reflection. It will create temporary C# files, compile the resulting files into a temporary assembly, and finally load that assembly into the process. Code gen like this is also relatively expensive. So the XmlSerializer caches the temporary assemblies on a per-type basis. This means that the next time an XmlSerializer for the your class is created, the cached assembly is used rather than a new one generated. For more details please refer "Leaking Unmanaged Heap Memory" secton of http://msdn.microsoft.com/en-us/magazine/cc163491.aspx. Hence the XmlSerialize will require full permissions (read/write/delete) on the temporary directory. This directory is the user profile temp directory for windows applications and the app specific folder under Temporary ASP.NET Files (in the framework directory) for ASP.NET applications

Read more: http://wiki.answers.com/Q/How_does_the_XmlSerializer_work_What_ACL_permissions_does_a_process_using_it_require#ixzz1FTVVIxab

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various ways to send content from one page to another?

524


What is sql data source control in asp.net?

573


What is difference between abstract class and an interface?

504


What is difference between view state and session state?

481


What are the Types of state management techniques

560






What is the importance of Global.asax in ASP.NET?

553


What does the orientation property do in a menu control?

533


Can we store object in viewstate?

537


Does web services support data reader like pom project?

532


Which of the following .NET framework supports Web API?

641


is gateway for sms continue connected for sending sms.how?

1833


what cut off mark for po's,what questions they asked for interview?

1422


Explain file-based dependency and key-based dependency.

573


How can we prevent browser from caching an aspx page?

531


What events will occur when a page is loaded?

576