Error 1 Could Not Find File Xmlserializers.dll
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Could not load file or assembly 'MyAssembly.XmlSerializers up vote 8 down vote favorite I took a memory dump of IIS and while analyzing i found the error that said 'Could not load file or assembly MyAssemblyName.XmlSerializers'. In my code i am using XmlSerializer class to serialize and deserialize xml contents from xml file to custom object. When the project gets build it only creates MyAssembly.dll and MyAssembly.pdb file but not the MyAssembly.XmlSerializers.dll. Does anyone know how to enable my project to create xmlserializers.dll file? Note: In project build tab, 'Generate serialization assembly is set to Auto. Thanks. c# visual-studio-2010 dll xmlserializer share|improve this question asked Jul 19 '13 at 21:10 sanjeev40084 2,276133871 1 possible duplicate of XmlSerializer giving FileNotFoundException at constructor –dave May 7 '15 at 21:04 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote There's an answer already here. Apparently this is "expected behaviour" that MS isn't going to fix. The first comment has a workaround: One of the possible ways to get rid of this problem is check "Just my code" option in Tools -> Options -> Debugging -> General options share|improve this answer answered Mar 27 '14 at 8:29 Bok McDonagh 587519 This was a great help! Who would have guessed that workaround. –Shahzad Qureshi Apr 23 '15 at 3:43 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privac
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up http://stackoverflow.com/questions/17755559/could-not-load-file-or-assembly-myassembly-xmlserializers FileNotFoundException in ApplicationSettingsBase up vote 24 down vote favorite 6 When debugging an application I always get the following error when break on exception is enabled in Visual Studio. This is really bugging me, since we work with break on exception. The funny thing is, that it still works when I continue (the StringCollection is loaded). The Message is: Could not load file http://stackoverflow.com/questions/3494886/filenotfoundexception-in-applicationsettingsbase or assembly 'System.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. Here is the code that is causing the exception (designer generated) [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public global::System.Collections.Specialized.StringCollection Mru { get { return ((global::System.Collections.Specialized.StringCollection)(this["Mru"])); } set { this["Mru"] = value; } } I tried to create an empty test application that shows the error, but the exception didn't occur. Our project is huge so it tough to find the cause. Maybe someone on this site has a clue how to solve this. c# application-settings applicationsettingsbase share|improve this question asked Aug 16 '10 at 15:53 testalino 3,28532039 add a comment| 3 Answers 3 active oldest votes up vote 45 down vote accepted +50 Just an explanation for why this exception is thrown. You can repro the exception with this sample Windows Forms app. Start by adding a setting named "Setting" of type StringCollection. Click the dots in the Value column and enter a couple of strings. Make the form class code look like this: public partial class Form1 : Form { public Form1() { InitializeComponent(); } protected override void OnFormClosing(FormClosingEventArgs e) { Properties.Settings.Default.Settin
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/934411/what-is-myassembly-xmlserializers-dll-generated-for this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error 1 What is MyAssembly.XmlSerializers.dll generated for? up vote 93 down vote favorite 12 I am working on a project which generates an assembly. I just noticed that an additional assembly *.XmlSerializers.dll is being generated. Why this file is auto generated and what it is used for? c# visual-studio-2008 xml-serialization share|improve this question asked Jun 1 '09 at 11:18 Hemant 9,7561572112 add a comment| 5 error 1 could Answers 5 active oldest votes up vote 74 down vote accepted In .NET implementation, the XmlSerializer generates a temporary assembly for serializing/deserializing your classes (for performance reasons). It can either be generated on the fly (but it takes time on every execution), or it can be pregenerated during compilation and saved in this assembly you are asking about. You can change this behaviour in project options (tab Compile -> Advanced Compile Options -> Generate serialization assemblies, Auto or On, respectively). The corresponding element in the project file is GenerateSerializationAssemblies, for example,