Here in California, utility companies are "solving" this by instituting extremely high fees for the privilege of connecting your solar power to the grid. If I recall from the last time I ran the numbers, rooftop solar panels no longer make economic sense for the vast majority of residential customers - it costs more money to install me solar panels and pay the monthly connection fees then you'll save by producing energy over the lifetime of the solar panels.
Edit: I just googled and it looks like after public outcry the regulators pulled their really bad fee schedule to replace with a slightly less bad fee schedule. The system works!
Probably the one time in history PG&E tried to fix a problem ahead of time. ๐