© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Jason

❔ 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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ published app not working
C#CC# / help
4y ago
WindowsForms
C#CC# / help
2y ago
dotnet 8 web api deployed on Azure App Service points to files on local machine
C#CC# / help
2y ago