SharePoint error "exception-Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException"

%3CLINGO-SUB%20id%3D%22lingo-sub-3207919%22%20slang%3D%22en-US%22%3ESharePoint%20error%20%22exception-Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3207919%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22%22%3EWe%20have%20a%20.NET%20code%20to%20create%20a%20tag%20on%20SharePoint%20but%20it%20is%20not%20creating%20when%20I%20tried%20to%20debug%20the%20code%20We%20are%20getting%20an%20error%20%22ServerLibraryVersion%20%3D%20'context.ServerLibraryVersion'%20threw%20an%20exception%20of%20type%20%22Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'%22.%20We%20also%20have%20an%20application%20which%20copies%20files%20to%20SharePoint.%20When%20tried%20the%20SharePoint%20code%20in%20that%20also%20there%20also%20we%20are%20getting%20the%20same%20error.%20Is%20it%20problem%20with%20SharePoint%20site%20or%20with%20the%20code.%20How%20to%20resolve%20this%20exception%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%220aeaa37f-f00e-42a9-9f3b-75f46c3119e7.png%22%20style%3D%22width%3A%20872px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350857i7ADEB6389D1B213B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%220aeaa37f-f00e-42a9-9f3b-75f46c3119e7.png%22%20alt%3D%220aeaa37f-f00e-42a9-9f3b-75f46c3119e7.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3207919%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

We have a .NET code to create a tag on SharePoint but it is not creating when I tried to debug the code We are getting an error "ServerLibraryVersion = 'context.ServerLibraryVersion' threw an exception of type "Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'". We also have an application which copies files to SharePoint. When tried the SharePoint code in that also there also we are getting the same error. Is it problem with SharePoint site or with the code. How to resolve this exception?

0aeaa37f-f00e-42a9-9f3b-75f46c3119e7.png

 

0 Replies