P0505 IACV/AAC Valve
Just to confirm that you have checked all resistances and cleaned things per these instructions.
http://home.swipnet.se/e-solutions/IdleTech.html
Disconnect the battery. You should be able to disconnect the FICD, AIC and Air Regulator, and the ECM connector to test harness wire continuity. Cleaning/some dielectric grease on the contacts, before you reconnect them, would also be a good idea. If there was moisture in/on the ECM, there may also be corrosion on the connector. Make sure ground connections are good too.
Obviously the wiring harness is just wires bound together and only one or two of them is probably the source of your problem, in the form of an open or shorted connection (permanent or intermittent).