Why does my Sharepoint WebPart deploy (nominally), but is still not available for adding to a page/form? -
i've created , "deployed" latest web part (visual studio grins ear-to-ear, , tells me, "deploy succeeded").
but when go our sharepoint site, , "sandbox" page, , edit it, not see webpart. elements file shows, should available "financial affairs forms" category:
<?xml version="1.0" encoding="utf-8"?> <elements xmlns="http://schemas.microsoft.com/sharepoint/" > <module name="posttravelexpensewebpart" list="113" url="_catalogs/wp"> <file path="posttravelexpensewebpart\posttravelexpensewebpart.webpart" url="posttravelexpensewebpart.webpart" type="ghostableinlibrary" > <property name="group" value="financial affairs forms" /> </file> </module> </elements> however, category devoid of "posttravelexpensewebpart" expect (or @ least hope) see there:

what might omitting?
update
i went far to, while in edit mode on web page, expand "upload web part" section below "categories" after selecting 1 of "add web part" links. didn't know upload (when browsing file, file dialog doesn't clue in on file extension expects), i, on flayer, tried uploading posttravelexpense.ascx
it accepted without balking, not see anywhere (nor know why *.ascx file enough, again, file expect?) doesn't allow me upload entire project folder.
update 2
in response comment below, note project's assembly deployment target" property is set globalassembycache
by comparing working project one, able deploy without "a web part or web form control on page cannot displayed or imported. type not found or not registered safe." add-time error msg.
what had check every place in working project primary namespace referenced, , make sure corresponding namespace in previously-unworking project referenced in same places
this required not changing of files visible in visual studio's solution explorer treeview, 2 able load editor searching strings contained, specifically:
the ***.spdata** file, loaded searching "safecontrol" **assembly.info**, loaded searching "assemblytitle" that sure lot of hand-wringing , head-banging , pitiful whin[g]ing 1 think automatically taken care of ide - when namespace changes, make necessary changes, or at least notify coder , offer so! or, barring that, at least give him better clue "a web part or web form control on page cannot displayed or imported. type not found or not registered safe." when webpart plopped onto page proves unploppable.
Comments
Post a Comment