New Pico W not connecting to my router

What I’m trying to do:
Follow the tutorial about how to connect an Anvil app to the Pi Pico W

What I’ve tried and what’s not working:
Downloaded the UF2 file to the Pico. I see the boot.py and main.py files on my PC’s file manager for the removable drive PICO_W. I configured the boot.py file for the name and password of my router, but I never get a solid LED on the Pico indicating a connection. I tried my other router with the same results. I’m not sure how to troubleshoot this further.

I did generate the Server Uplink Key and entered it in the main.py file.

If I run the app in my browser, I get this error:
anvil.server.NoServerFunctionError: No server function matching “pico_fn” has been registered
I assume this is because the Pico is not connected to the network.

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 

My Anvil code follows the tutorial.

Clone link:

After trying a generic Micro Python WIFI test without getting connected to my WIFI, I bought a new Pico W card and now everything works as expected, including the Anvil Pico W demo. The original Pico WIFI was dead out of the box.