VtkLibrary : Porting to 9.1 from 5.8

I am working on a project which was previously working with vtk5.8 . I have replaced header files and libraries in my project. Build is successful but when I try to switch to 3D mode I get following error. Please guide me about this error.

ERROR: In C:\VTK\VTK-9.1.0.rc2\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 668
vtkCompositeDataPipeline (19F77C08): Input port 0 of algorithm vtkDataSetMapper(04786590) has 0 connections but is not optional.

Any help will be appreciated!!

Some of the examples using vtkDataSetMapper may be of use to you, as a start, look here.

I also wanted to ask that was vtkmdiview.cpp part of vtk libraries before?

Never used it, but I think it has been around for a long time > 9 years. I would doubt if it has been maintained since then.

thanks for the help!