If you are trying to include Template File, Images, Layouts in Package. In Visual Studio 2010 will raise an error like “The deployment type "TemplateFile" of file "VideoUserControlUserControl.ascx" in Project Item "VideoUserControl" is not compatible with a Feature in a Sandboxed Solution.”
In my solution I am trying to add images to document library.
When i deploy the solution it shows the errors like this.
I am having the solution with name Video
Click on the solution properties Press F4
Change the sandboxed solution from true to false.
Now we can able to deploy with our this errors.