Given the differential equation:
\[(e^y + 1) \cos x \, dx + e^y \sin x \, dy = 0\]
This can be rewritten as:
\[\implies d \left( (e^y + 1) \sin x \right) = 0\]
Integration yields:
\[(e^y + 1) \sin x = C\]
The solution passes through \( \left( \frac{\pi}{2}, 0 \right) \). Substituting \( x = \frac{\pi}{2} \) and \( y = 0 \):
\[e^0 + 1 = C \implies C = 2\]
For \( x = \frac{\pi}{6} \):
\[(e^y + 1) \sin \frac{\pi}{6} = 2\]
\[\implies \frac{e^y + 1}{2} = 2\]
\[\implies e^y = 3\]
Therefore, \( e^{y \left( \frac{\pi}{6} \right)} = 3 \).