ISP with ATTINY

So I have a project that requires an ATTINY85 to be flashed before operation. I thought that I could use pins that were being occupied for other functions, but now im not so sure.

When I try to upload my code, I get an initialization error. Can anyone tell me the proper way to set this up so I can solder up the board and flash the chip?

Here is the schematic of the portion of the project i am talking about:

Are you using 5-6-7 for MOSI-MISO-SCK?

I see MOSI on another pin as well. Are you using the right pin?
You may have MISO getting dragged a lot by the relay coil as well.

cterjesen:
So I have a project that requires an ATTINY85 to be flashed before operation. I thought that I could use pins that were being occupied for other functions, but now im not so sure.

When I try to upload my code, I get an initialization error. Can anyone tell me the proper way to set this up so I can solder up the board and flash the chip?

Here is the schematic of the portion of the project i am talking about:

Hi. You seem to have MOSI in two places? Don't NEVER EWER have some "other" things, (relay, led....), connected to the pin's whilest flashing your core, you 100% "fry" something, propably your programmer. I have as an exersice to "allways" having them MOSI, MISO, SCK... coming to the breakout board via a resistor say 220~330R to protect the programmer.