❔ WindowsForms published app works on local machine but not Azure Virtual Desktop instance
I've got an application that makes use of Selenium as a webdriver / DOM. It works as intended on my local machine both as debug and release modes in VS, as well as a standalone published application using WindowsForms. However, I cannot get it to open from within a Windows 11 image inside an Azure Virtual Desktop instance.
The error I get is: System.IO.FileNotFoundException: The system cannot find the file specified. (0x80070002). Looking this error up, I see a lot of people have this problem with their local machine. Oftentimes the solution is simply updating Windows but I've seen some other "solutions" people pose that end up breaking the OS, so I don't want to try them.
What I have tried is:
1. Update Windows inside VM
2. Install a .Net 7 runtime inside the VM (since the application is a WindowsForms)
3. Double check that the directory is the same (it is) making use of a C drive, Local folder, Temp folder, etc (all of which the application stores libraries / dependencies inside of)
I suspect the issue might have to do with something called "dual configuration" which the VM through Azure might be doing, but I don't know how to confirm that. I don't know what else the problem could be.
1 Reply
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.