Knock on wood, I've had great luck with portable electric goat fence netting (solar charged battery). Premier1 is the brand, but Gallagher's supposed to be pretty good, too. Some stuff just isn't worth it.
My primary outyard is in a remote, wooded area, and on several occasions we've found bear poo near the yard.
The trick is to bait the fence, to teach the bear that it's electrified. Or, you run the risk of them charging right through. My technique is one of three:
1. Wrap oily sardines in foil, molding hooks out of the foil. Before hanging on the fence (bear nose level) poke some holes in the sardines with a nail.
2. Simply poke holes in a small sardine can, and hang from a wire from the fence.
3. Wrap raw bacon around the fence (easiest by far).
With all three, you run the risk of attracting yellowjackets, but you all keep wasp traps out anyway, dont'cha? And be sure to refresh the bait every few weeks, especially in early Spring.
And by the way--these fences pack way more of a punch than your typical horse hotwire. Ask my boyfriend. And the neighbor's dog. And...the neighborhood bear.