PaulGoldstein-4693 avatar image
0 Votes"
PaulGoldstein-4693 asked XingyuZhao-MSFT commented

Could not load file or assembly 'Microsoft.Xna.Framework.dll' or one of its dependencies

To whom it may concern,
I have a VS 2019 (VB) application that uses a microphone to record *.wav files…using the XNA Framework.
I have been using the application for over 5 years with no problem on the target machine.
I had to install the program on a new machine (hard-drive failure) and when I launched the form that had the XNA/Microphone references, I received the “Could not load file or assembly 'Microsoft.Xna.Framework.dll' or one of its dependencies” error message…System.IO.FileNotFoundException.

I checked the “Application Files” folder of the installation package, and it does contain: Microsoft.Xna.Framework.dll.deploy.
I also checked the destination folder in the Users\<username>\AppData\Local\Apps\2.0\… folder, and it contains: Microsoft.Xna.Framework.cdf-ms, Microsoft.Xna.Framework.dll, and Microsoft.Xna.Framework.manifest.

I also read some previous discussions on this and it said to check that the Target is for x86…it is.
I also checked the Prerequisites, and Microsoft XNA Framework Redistributable 4.0 is checked…as is Create setup program to install prerequisite components.

I’m not having a problem with the execution of the Build, it’s just not configuring the location of the XNA dll for the installed program to find.

Any assistance would be greatly appreciated.

Paul Goldstein

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PaulGoldstein-4693 ,
Try to reinstall 'Microsoft.Xna.Framework.dll'.
This reference point out that the question may related to XNA Redistributable.
Besides, you can also consider posting your question on this forum for more help.

0 Votes 0 ·

0 Answers