Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am unable to add a web part to a publishing page. I am seeing the following in the ULS:

File 0f4c91df-ccde-48e9-9c80-3612e95fa849 has length 889, but corresponds to Features\Components\BannerModule\BannerModule.webpart (version 4; LCID 1033) with length 882

SharePoint Foundation Web Parts tkqm High WebPartAdder_ItemCannotBeAddedULS

I have four other webparts in the same Feature and all work fine.

Any insights as to why the file sizes would differ?

share|improve this question

1 Answer 1

Had to use Reflector's debugger to determine that a property getter was throwing a null reference exception. Breakpoints on my ctor were never hit...

Also, the object in question was changed from List to Collection at the suggestion of FxCop. The List object was not null.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.