"Forgiveness is easier than permission" only makes sense when you know what you're doing and understand the consequences. (IE, paying taxes a little late in the US is okay because the fine is roughly the same as the interest of holding the money in the bank.)

In the case of solar panels, I'm going to assume the OP is talking about something like a grid-scale solar farm instead of rooftop solar production:

1: You need an agreement with "the grid" to get payment for the electricity you generate.

2: Feeding electricity into a power grid is a very dangerous thing, at a minimum the grid operator needs to make sure you aren't going to cause a fire or otherwise break their equipment.

---

That being said: If you're a homeowner trying to set up a small solar installation, you can pair the panels with batteries and skip feeding into the grid.