Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

Preupgradecheck operation - Missing web part simulation

$
0
0

Hi. 

I have task to find out how preupgradecheck works and why it knows if any web part was missed.

Firstly, I decided to create an artificial situation of missing webpart.

I created class library in VS, inherited WebPart, overrided Render method. After that I put assembly in /VirtualDirectories/port#/bin, add Safecontrol node in web.config. After I created web-part in Web-Part gallery, inserted web part into test page.

At the first time I removed my assembly Savecontrol node, ran stsadm with preupgradecheck operation attribute, but no missing web parts were found.

So, I removed assembly from bin, restarted iis and ran stsadm again. The result was same.

Could anybody advice what I should make to have any negative result in preupgradecheck log.

I suppose that preupgrade checker uses an internal GuidToSafeControlTable Dictionary property in SafeControlsList class which filled with each child assembly information in SafeControls section. This dictionary is compared with information from WebParts table in Sharepoint Content Database (tp_WebPartTypeId field list). If dictionary doesn't contain guid from row in the list is marked as missing. But my first step to check this information  points to another results.


Viewing all articles
Browse latest Browse all 21070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>