I made a custom search web part for SharePoint as described at:
http://msdn2.microsoft.com/en-us/library/ms551453.aspx
While developing, in number of occasions, I received an error: „Cannot import this web part". The error seemed to appear randomly.
As usual, the solution was simple. My SharePoint portal was extended to two sites.
Simple rule:
- If you are deploying web parts to SharePoint portals you need to deploy to each \app_bin folder
Recommendation:
- While you are developing web parts it is recommended that you deploy them to sites that are not extended. If you have an extended portal you will encounter numerous problems like the one mentioned above. Also, every time you rebuild your DLL you will need to remove all web parts from SharePoint pages and add them again.
About toni
My name is Toni Frankola and a work as Microsoft Team Leader at Perpetuum Mobile, Croatia. This blog delivers real life use case and my opinions about Microsoft products.
Summary:
IT consultant specialized in Customer Relationship Management (CRM) software – Microsoft Dynamics CRM, and IW solutions - Microsoft Office SharePoint.
Specialties:
- IT Project Management, Software requirements analysis and software architectures, IT Consulting, IT Sales and Marketing, Product positioning
- MCSD, MCAD, MCTS, MBSS, MCT
http://www.linkedin.com/in/tonifrankola