Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3622596
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:16:47+00:00 2026-05-18T23:16:47+00:00

Possible Duplicate: XmlSerializer giving FileNotFoundException at constructor I received the first chance exception when

  • 0

Possible Duplicate:
XmlSerializer giving FileNotFoundException at constructor

I received the first chance exception when I used XMLSerializer,

XMLSerializer xml = new XMLSerializer(typeof(A))

A first chance exception of type
‘System.IO.FileNotFoundException’
occurred in mscorlib.dll

Additional information: Could not load
file or assembly ‘A.XmlSerializers,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null’ or one of its
dependencies. The system cannot find
the file specified.

It is OK, but it is annoying when debugging. What is the reason?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:16:47+00:00Added an answer on May 18, 2026 at 11:16 pm

    First chance means the program hasn’t been able to deal with it yet, the debugger comes first. When you let it through, the app will deal with it nicely, so you don’t get errors.

    In this particular case, the thing is that XMLSerializer can use assemblies with compiled schema information in them. So it tries to load the assembly just in case it exists. If not, it’s not a problem, but if it does, it will use that and it will be faster. When you compile your project in release mode, you often get XMLSerializer assemblies.

    You should set up Visual Studio to ignore thrown (1st chance) exceptions, and only break on unhandled ones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Replacement for XML Serialization Is something new besides old XmlSerializer on the
Possible Duplicate: XmlSerializer: remove unnecessary xsi and xsd namespaces I'm generating some XML using
Possible Duplicate: Python : how to append new elements in a list of list?
Possible Duplicate: Deserializing XML, how do I access attributes? I am deserializing the following
Possible Duplicate: Opening url in new tab while i am doing window.open(), my page
Possible Duplicate: how to delete a file? My application first reads the fields in
Possible Duplicate: How to (xml) serialize a uri To my knowledge Uri implements ISerializable,
Possible Duplicate: What is the fastest XML parser in PHP? I still need to
Possible Duplicate: Why do I get a null pointer exception from TabWidget? I have
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.