For simplicity, let $X=\mathbb{R}$ and $K=[0,1]$. Consider $I_K:\mathbb{R}\to \{0,+\infty\}$ given by $I_K(x)=0$ if $x\in K$ and $+\infty$ otherwise. What is the subdifferential (in the sense of convex analysis) of $I_{K}$?
Since $R\simeq R^{*}$ it is easy to see that for every $x\in K$ we have $\partial I_{K}(x)=0$. Let's take $x_{0}\notin K$. Then
$$\partial I_{K}(x_{0})=\{x\in \mathbb{R}:x\cdot(v-x_{0})\le I_K(v)-I_K(x_0)\,\mbox{for all}\, v\in \mathbb{R}\}=\emptyset.$$
Will the same result hold if I consider $X$ being abstract Banach space with $K$ being convex and closed?