microsoft / XmlNotepad

XML Notepad provides a simple intuitive User Interface for browsing and editing XML documents.
https://microsoft.github.io/XmlNotepad/
MIT License
966 stars 206 forks source link

Crash upon launching #357

Closed cmartel2 closed 3 months ago

cmartel2 commented 6 months ago

Despite uninstalling and reinstalling more than once, XML Notepad either crashes upon launching, or crashes when trying to open an XML file (I've tried drag and drop, using the Open file, or using the Open with directly from the file directory).

lovettchris commented 6 months ago

Sorry to hear that, can you tell me which installer you used? ClickOnce, Standalone or winget?

Also XML Notepad now depends on .NET Framework 4.8 can you make sure you have that version installed?

If the crash provides any popup message or details can you include that information also, thanks.

cmartel2 commented 6 months ago

I have tried both the ClickOnce and the Standalone. And the .NET Framework 4.8 is installed.

Unfortunately, there are no pop up messages or details to provide! The app just closes.

lovettchris commented 6 months ago

That's unfortunate. You could try deleting these files if they exist:

Last time I saw anything like this it seemed to be related to windows defender not recognizing my signing certificate and booting the app out for that reason. More likely if you are running on a machine that is managed by a corporation. If you are familiar with the Windows Event Viewer and if you can find any relevant errors there that might be helpful. If you are a software developer and you can launch the app in the Visual Studio debugger and find the load time exception that would be super helpful.

cmartel2 commented 6 months ago

I am indeed on a corporate machine. I will reach out to IT as soon as my workload decreases a bit to see if I can troubleshoot with them, using the information that you have provided so far. Thank you!

lovettchris commented 6 months ago

Ok, good luck.

cmartel2 commented 5 months ago

With IT help, I am finally able to open the app, but as soon as I try to upload my XML, the app crashes. I can open other XMLs.

My XMLs are stored on Box, and there are spaces in the path... but from reading through past issues, I thought that was resolved...

Any thoughts on how I could take it to the next step? TIA!

lovettchris commented 5 months ago

Great, I have not used it with Box, but when I point it to a file on a One Drive folder it works. Does Box have a concept of "keep files on this device" that you could try to force Box to pre-download the files before trying to open them in XML Notepad?

lovettchris commented 5 months ago

I just installed Box Drive for windows and it shows my Box account as a new windows drive, and I put the XML notepad samples up there.
image

I was then able to double click the xml files and open them in XML notepad: image

I could also shift+right+click a file and select "Copy as path" and paste that into the XML notepad address bar and open files from my Box folder that way: image

So can you try following these steps?