Type initializer error and Unable to get the client policies for specified resource