|
-
Sep 26th, 2021, 12:02 PM
#1
Could Not Load File Or Assembly
I'm getting this exception in designer code for one case. The file it can't load is System.XmlSerializers.
This has no impact on anything, and since I don't write Settings.Designer.vb, this is code generated by VS, and they appear to deal pretty well with this exception, and the program runs fine. The code that throws this exception is this:
Code:
Get
Return CType(Me("FishTips"),Global.System.Collections.Specialized.StringCollection)
End Get
Which is just the getter of a setting.
So, if the program runs, and this exception isn't causing me any trouble, why am I asking, and what am I asking for? Well, this is a nuisance. If I break when exceptions are thrown by the runtime, which is pretty useful, at times, then the program always halts on this exception when it is thrown, because it is thrown every time the program starts. It's a very minor nuisance, but I thought I might ask in here to see whether anybody has a solution.
In the short term, I can turn off breaking when that type of exception is thrown, because that type of exception is very unlikely to be thrown from anything else in the program. However, exceptions tend to take a noticeable amount of time to process. Sure, it's a BARELY noticeable amount of time, but the startup on this program, which has to do a LOT of initialization of graphics and the like, is already pretty slow, so I sure don't need to have more.
Is there a way to avoid having this exception even thrown?
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|