You shouldn't use View. Instead, use rootView.
mSpinner = (Spinner) rootView.findViewById(R.id.spinnervdc);
Update
Your class extends Fragment class, not an Activity class. Therefore when you use this, it causes the second error you mentioned.
You need to give the activity as parameter to the arrayadapter constructor; just as Raghunandan suggests.
adapter=new ArrayAdapter<String>(getActivity(),android.R.layout.simple_spinner_item,name);
Update 2
This might be helpful to others who get similar errors. You cannot benefit more from anything else than looking at the class references.
Here, in the document, it says that the first parameter had to be a Context. Your way is not included in any overloaded versions of the constructor. That is why you get the undefined constructor error.