The space of weak connections in general dimensions