SharePoint error: “Cannot import Web Part”

前端 未结 11 1437
青春惊慌失措
青春惊慌失措 2021-02-08 02:33

I have a web part that I\'ve developed, and if I manually install the web part it is fine.

However when I have packaged the web part following the instructions on this w

11条回答
  •  时光说笑
    2021-02-08 02:57

    I had a problem very similar to this, but Guids weren't the problem: my webpart didn't have the CLSCompliannt attribute set to false. Like so:

    namespace MyNamespace
    {
    
        [CLSCompliant(false)]
        [Guid("...")]
        public class MyWidget : MyWebPartBaseClass
        {
    
        }
    }
    

提交回复
热议问题