LocalUI.dll Errors When Setting Up a Printer Port

If Windows opens Add Printer but closes or throws an error when you choose a local port, stop before removing the existing queue. Find out whether Windows can already send a test page to that printer. Record the printer name, model and connection type. A broken port configuration dialog, a missing printer and a stuck print job are separate problems.
Start with the symptom
- The printer is already installed.
- The error appears while adding a local printer.
- You need to verify the queue after repair.
What LocalUI.dll does
The Windows file inventory calls LocalUI.dll the Local Monitor UI DLL. A report naming the module while opening a local port dialog is useful evidence. The same printer can appear under more than one queue, and each queue can use a different connection. Identify the specific queue or setup step before deciding which part needs repair.
1. Check the existing printer and queue
- In Windows 11, open Settings → Bluetooth & devices → Printers & scanners. In Windows 10, open Settings → Devices → Printers & scanners. Select the entry with the exact name. If you see a Manage button, use it to reach the queue options.
- If Printer properties opens, record the printer model associated with the queue and the selected port on the Ports tab if available. Read the current settings without changing them. Ask your administrator if the printer is configured through a server or work policy.
- Send a Windows test page from the General tab if that option is available. Microsoft’s printing troubleshooting guide shows the test-page route. Check that the page comes out of the device you expected. If it does, keep the working queue while you troubleshoot any configuration dialog.
Example. A USB label printer still outputs a Windows test page, but its port configuration screen closes. Capture the screen name and latest failure details for its publisher. Treat the setup dialog as its own issue. If ordinary jobs keep printing, use the working queue while you investigate the specific action that fails.
2. Check the documented connection before adding a port
- Identify whether the printer is connected by USB, is a network device or is provided as a server share. Compare this with the model’s setup instructions. A queue shared by a server usually has its own approved installation path. See the shared-printer troubleshooting guide for that case.
- For a printer you manage, try the supported add-printer route from Microsoft’s installation guide or the manufacturer’s documentation. Keep any existing queue until the new or repaired one has passed a test. If the printer is managed, ask IT to use the approved setup.
- If the same dialog crashes, search Start for View reliability history. Find the latest failure at the time of your attempt and record the application, module and error if available. Note whether manual setup or ordinary printer discovery was the step that failed.
Example. Automatic discovery finds a printer, but someone previously tried adding it through a local port dialog and got an error. Compare the printer’s supported connection with the discovery result. If the approved setup creates the intended queue, print a test page from that queue before retrying the old method. Report the dialog failure only if you still need that specific configuration.
If you need help restoring the printer, give support the exact model, the Windows edition and the documented connection type. Include both the existing selected port and the stage where the new setup fails when you can read them safely. A manufacturer package can expose options that a generic driver does not. Ask the publisher which approved driver and connection route apply to your model before replacing settings. If a print job is already sitting in the queue, preserve its state and use the print spooler troubleshooting guide as a separate branch.
Verify the original dialog and the test page
Before changing the port, check which printer the app actually selected. A document may remember a queue from another location even when Windows shows the correct default printer. Compare the queue name in the app’s print dialog with the name used for the Windows test page. If the Windows test page goes to the right printer and the document uses a different queue, correct the app’s selection and print a disposable page before revisiting the port dialog.
A failure before the port list opens gives support different evidence from a failure that occurs after you select a port and save. Record the last screen you saw and whether the dialog closed, froze or displayed an error. If another printer’s properties open on the same PC, note that working comparison too. It can help the manufacturer limit the repair to one driver package or connection workflow. If the printer belongs to another site, ask IT to confirm its queue name before removing anything.
After the approved repair, reopen the original printer settings and check that the expected options are visible. Then send one plain test page and confirm it reaches the intended printer. If the original failure returns only after a restart, repeat the same check after a normal restart. Keep the tested queue and latest failure time for support. Browse the DLL Library for related printing components.