I've got some web part pages which are being setup programatically. I want to be able to refresh those pages, i.e. delete all webpart on them and recreate the content from scratch. When I try this, the following exception is thrown:
The transformer type "Microsoft.SharePoint.Portal.WebControls.TransformableFilterValuesToEntityInstanceTransformer" is not allowed to be used on this page.
The exception comes from the following line:
newConnection = wpmngr.SPConnectWebParts(providerWebPart, providerConnection, consumerWebPart, consumerConnection, transformer);
So I thought "let's delete the page and then just recreate it". Doesn't work either, same exception is thrown. I have no idea why this code would work the first time, but doesn't work a second time. It seems like something get's stuck preventing the
same action twice, but I have no clue what to look for.
MCTS in Web Application Development in .NET 2.0
View Complete Post