I want To Load webExtension in Word Document

I Have One document .Using below snippest I want to add my web extension taskpane to it so whenver I open that document again then document open with my web extension taskpane.
but when I open that document after run this snippest

my task pane stuck on loading screen.

Here is my code:

static void Main(string[] args)
    byte[] bytesectionData = File.ReadAllBytes(@"data.docx");
    using (MemoryStream ms = new MemoryStream(bytesectionData))
        Aspose.Words.License licWord = new Aspose.Words.License();
        string strLicenscePath = "E:\\ConsoleApp\\ADDTaskPaneinOneDrive\\Resource\\Aspose.Words.lic"; //Aspose Word lic path
        Aspose.Words.Document doc = new Aspose.Words.Document(ms);
        Aspose.Words.WebExtensions.TaskPane mypane = new Aspose.Words.WebExtensions.TaskPane();
        mypane.DockState = TaskPaneDockState.Right;
        mypane.IsVisible = true;
        mypane.Width = 300;
        mypane.IsLocked = true;
        mypane.Row = 1;
        Aspose.Words.WebExtensions.WebExtension webExtension = mypane.WebExtension;

        webExtension.Reference.Id = "";//here I write my webextension ID
        webExtension.Reference.Version = "";
        webExtension.Reference.StoreType = Aspose.Words.WebExtensions.WebExtensionStoreType.ExCatalog;
        webExtension.Reference.Store = CultureInfo.CurrentCulture.Name;
        webExtension.IsFrozen = false;
        webExtension.Properties.Add(new Aspose.Words.WebExtensions.WebExtensionProperty("Office.AutoShowTaskpaneWithDocument", "true"));
        webExtension.Properties.Add(new Aspose.Words.WebExtensions.WebExtensionProperty("MyScript", "MyScript Math Sample"));
        webExtension.Bindings.Add(new Aspose.Words.WebExtensions.WebExtensionBinding("MyScript", Aspose.Words.WebExtensions.WebExtensionBindingType.Text, "104380646"));

        using (MemoryStream ms1 = new MemoryStream())
            doc.Save(ms1, Aspose.Words.SaveFormat.Docx);
            ms.Seek(0, 0);
            bytesectionData = ms1.ToArray();
        File.WriteAllBytes(@"NewBytesOutput.docx", bytesectionData);

@Jayshiv1408 sorry I cant reproduce your issue, this is the code that I use:

Document doc = new Document();

// Create task pane with "MyScript" add-in, which will be used by the document,
// then set its default location.
TaskPane myScriptTaskPane = new TaskPane();
myScriptTaskPane.DockState = TaskPaneDockState.Right;
myScriptTaskPane.IsVisible = true;
myScriptTaskPane.Width = 300;
myScriptTaskPane.IsLocked = true;

// If there are multiple task panes in the same docking location, we can set this index to arrange them.
myScriptTaskPane.Row = 1;

// Create an add-in called "MyScript Cite Reference Sample", which the task pane will display within.
WebExtension webExtension = myScriptTaskPane.WebExtension;

// Set application store reference parameters for our add-in, such as the ID.
webExtension.Reference.Id = "WA104382081";
webExtension.Reference.Version = "";
webExtension.Reference.StoreType = WebExtensionStoreType.OMEX;
webExtension.Reference.Store = CultureInfo.CurrentCulture.Name;
webExtension.Properties.Add(new WebExtensionProperty("MyScript", "MyScript Cite Reference Sample"));
webExtension.Bindings.Add(new WebExtensionBinding("MyScript", WebExtensionBindingType.Text, "104380646"));

// Allow the user to interact with the add-in.
webExtension.IsFrozen = false;

// We can access the web extension in Microsoft Word via Developer -> Add-ins.

// Remove all web extension task panes at once like this.

Please make sure that your extension is available.

When I use OMEX standard and use Reference ID for that It’s working properly
but for ExCatalog standard , I use this same that only change reference id that time its stuck on loading .

@Jayshiv1408 can you please post a simplified version of your code showing what are you doing?

Are you able to load your web extension if add it using MS Word? If possible, please attach the documents with sample web extensions produced by Aspose.Words and MS Word, so we can compare and determine what is the difference.