Same here, I'm using Mountain Lion.
they archive the thread since nobody in apple can fixed this.
Here's the fix:
On your Mac, open a Terminal window. In this window, type: cupsctl WebInterface=yes and press Enter.
Then in Safari on your Mac, enter http://127.0.0.1:631 and press Enter. This brings up the CUPS web management interface.
Click the Administration tab.
Under Server Settings, enable Allow printing from the Internet.
Under Server Settings, enable Allow remote administration.
Click Change Settings.
On your PC, run the Bonjour Printer Wizard again. Your USB-connected printer will appear and you will not get the error 1796 message.
I've waisted countless hours trying to print from a windows 7 laptop through a Mac (Mountain Lion) desktop to a shared printer --following lots of good thoughts on this thread and others --no luck. Keep getting the infamous Error 1796 ... UNTIL I connected the printer to the network, using a wi-fi connection, rather than "sharing" the printer through the Mac. Bingo! Works like a charm.
This only helps if the printer can be connected to the network; in my case with built-in wi-fi, but I could have also plugged the printer into a wireless router usb jack (available on my Airport). Hopefully this will save some frustration.
None of this explains why Bonjour, ML and Windows 7 don't work with printer sharing.