3 deleted 92 characters in body
source | link

Try following

                var adminSession = engine.GetSession();
                var comp = new Component(adminSession, new TcmUri("tcm:11-108-2)); //folder id
                comp.Schema= new Schema(new "tcm:11-10-8));
                comp.Title = "tom component";
// set other fields
                comp.Save();  
            comp.CheckIn(true);

By default tom.net is readonly in templating, please Make sure templating is not readonly via ensuring setting from following link(login required)

Try following

                var adminSession = engine.GetSession();
                var comp = new Component(adminSession, new TcmUri("tcm:11-108-2)); //folder id
                comp.Schema= new Schema(new "tcm:11-10-8));
                comp.Title = "tom component";
// set other fields
                comp.Save();  
            comp.CheckIn(true);

By default tom.net is readonly in templating, please Make sure templating is not readonly via ensuring setting from following link(login required)

Try following

var adminSession = engine.GetSession();
var comp = new Component(adminSession, new TcmUri("tcm:11-108-2)); //folder id
comp.Schema= new Schema(new "tcm:11-10-8));
comp.Title = "tom component";
// set other fields
comp.Save();  
comp.CheckIn(true);

By default tom.net is readonly in templating, please Make sure templating is not readonly via ensuring setting from following link(login required)

2 added 4 characters in body
source | link

Try following

                var adminSession = engine.GetSession();
                var comp = new Component(adminSession, new TcmUri("tcm:11-108-2)); //folder id
                comp.Schema= new Schema(new "tcm:11-10-8));
                comp.Title = "tom component";
// set other fields
                comp.Save();  
            comp.CheckIn(true);

By default tom.net is readonlyreadonly in templating, please Make sure templating is not readonly via ensuring setting from following link(login required)

Try following

                var adminSession = engine.GetSession();
                var comp = new Component(adminSession, new TcmUri("tcm:11-108-2)); //folder id
                comp.Schema= new Schema(new "tcm:11-10-8));
                comp.Title = "tom component";
// set other fields
                comp.Save();  
            comp.CheckIn(true);

By default tom.net is readonly in templating, please Make sure templating is not readonly via ensuring setting from following link(login required)

Try following

                var adminSession = engine.GetSession();
                var comp = new Component(adminSession, new TcmUri("tcm:11-108-2)); //folder id
                comp.Schema= new Schema(new "tcm:11-10-8));
                comp.Title = "tom component";
// set other fields
                comp.Save();  
            comp.CheckIn(true);

By default tom.net is readonly in templating, please Make sure templating is not readonly via ensuring setting from following link(login required)

1
source | link

Try following

                var adminSession = engine.GetSession();
                var comp = new Component(adminSession, new TcmUri("tcm:11-108-2)); //folder id
                comp.Schema= new Schema(new "tcm:11-10-8));
                comp.Title = "tom component";
// set other fields
                comp.Save();  
            comp.CheckIn(true);

By default tom.net is readonly in templating, please Make sure templating is not readonly via ensuring setting from following link(login required)