First, you should simply type Quit[] and execute, then copy and paste the code you gave us in a new notepad. Generaly when you're getting "protected errors" a variable has been definied already as something else.
If all else fails and you're not sure what's going on, try restarting :)
f[x_] := a*Sin[b*(x + c)] + d;
g[x_] := -1/10125*Exp[4]*x^3 + 17/1350*Exp[4]*x^2 - 79/135*Exp[4]*x +
90 + Exp[1] + (1343/162 + Log[2] - Log[3])*Exp[4];
h := 38;
Solve[{f[h] == g[h], f'[h] == g'[h], f''[h] == g''[h],
f'''[h] == g'''[h]}, {a, b, c, d}]
Using this code exactly gives me a solution....albeit a huge one with conditionals.
$$ \left\{\left\{a\to \text{ConditionalExpression}\left[\frac{1}{250} (-21) i \sqrt{33} e^4,c_1\in \mathbb{Z}\right],b\to \text{ConditionalExpression}\left[-\frac{1}{3} i \sqrt{\frac{2}{21}},c_1\in \mathbb{Z}\right],c\to \text{ConditionalExpression}\left[\frac{126 i \pi c_1-38 \sqrt{42}-126 \tanh ^{-1}\left(\frac{1}{3} \left(\sqrt{42}-\sqrt{33}\right)\right)}{\sqrt{42}},c_1\in \mathbb{Z}\right],d\to \text{ConditionalExpression}\left[\frac{21}{250} e^4 \sqrt{33} \sinh \left(\frac{1}{3} \sqrt{\frac{2}{21}} \left(38+\frac{126 i \pi c_1-38 \sqrt{42}-126 \tanh ^{-1}\left(\frac{1}{3} \left(\sqrt{42}-\sqrt{33}\right)\right)}{\sqrt{42}}\right)\right)-\frac{887 e^4}{750}+e+90+e^4 \log (2)-e^4 \log (3),c_1\in \mathbb{Z}\right]\right\},\left\{a\to \text{ConditionalExpression}\left[\frac{1}{250} (-21) i \sqrt{33} e^4,c_1\in \mathbb{Z}\right],b\to \text{ConditionalExpression}\left[\frac{1}{3} i \sqrt{\frac{2}{21}},c_1\in \mathbb{Z}\right],c\to \text{ConditionalExpression}\left[\frac{-126 i \pi c_1-38 \sqrt{42}+126 \tanh ^{-1}\left(\frac{1}{3} \left(-\sqrt{33}-\sqrt{42}\right)\right)}{\sqrt{42}},c_1\in \mathbb{Z}\right],d\to \text{ConditionalExpression}\left[-\frac{21}{250} \sqrt{33} e^4 \sinh \left(\frac{1}{3} \sqrt{\frac{2}{21}} \left(38+\frac{-126 i \pi c_1-38 \sqrt{42}+126 \tanh ^{-1}\left(\frac{1}{3} \left(-\sqrt{33}-\sqrt{42}\right)\right)}{\sqrt{42}}\right)\right)-\frac{887 e^4}{750}+e+90+e^4 \log (2)-e^4 \log (3),c_1\in \mathbb{Z}\right]\right\},\left\{a\to \text{ConditionalExpression}\left[\frac{21}{250} i \sqrt{33} e^4,c_1\in \mathbb{Z}\right],b\to \text{ConditionalExpression}\left[-\frac{1}{3} i \sqrt{\frac{2}{21}},c_1\in \mathbb{Z}\right],c\to \text{ConditionalExpression}\left[\frac{126 i \pi c_1-38 \sqrt{42}-126 \tanh ^{-1}\left(\frac{1}{3} \left(\sqrt{33}+\sqrt{42}\right)\right)}{\sqrt{42}},c_1\in \mathbb{Z}\right],d\to \text{ConditionalExpression}\left[-\frac{21}{250} \sqrt{33} e^4 \sinh \left(\frac{1}{3} \sqrt{\frac{2}{21}} \left(38+\frac{126 i \pi c_1-38 \sqrt{42}-126 \tanh ^{-1}\left(\frac{1}{3} \left(\sqrt{33}+\sqrt{42}\right)\right)}{\sqrt{42}}\right)\right)-\frac{887 e^4}{750}+e+90+e^4 \log (2)-e^4 \log (3),c_1\in \mathbb{Z}\right]\right\},\left\{a\to \text{ConditionalExpression}\left[\frac{21}{250} i \sqrt{33} e^4,c_1\in \mathbb{Z}\right],b\to \text{ConditionalExpression}\left[\frac{1}{3} i \sqrt{\frac{2}{21}},c_1\in \mathbb{Z}\right],c\to \text{ConditionalExpression}\left[\frac{-126 i \pi c_1-38 \sqrt{42}+126 \tanh ^{-1}\left(\frac{1}{3} \left(\sqrt{33}-\sqrt{42}\right)\right)}{\sqrt{42}},c_1\in \mathbb{Z}\right],d\to \text{ConditionalExpression}\left[\frac{21}{250} e^4 \sqrt{33} \sinh \left(\frac{1}{3} \sqrt{\frac{2}{21}} \left(38+\frac{-126 i \pi c_1-38 \sqrt{42}+126 \tanh ^{-1}\left(\frac{1}{3} \left(\sqrt{33}-\sqrt{42}\right)\right)}{\sqrt{42}}\right)\right)-\frac{887 e^4}{750}+e+90+e^4 \log (2)-e^4 \log (3),c_1\in \mathbb{Z}\right]\right\}\right\}$$