You should be injecting NameService inside providers array of your AppModule's NgModule metadata.
@NgModule({
providers: [MyService]
})
and be sure import in your component by same name (case sensitive),becouse SystemJs is case sensitive (by design). If you use different path name in your project files like this:
main.module.ts
import { MyService } from './MyService';
your-component.ts
import { MyService } from './Myservice';
then System js will make double imports