Inherit from Microsoft.Office.Project.PWA.WebParts.ProjectCenterPa

Y

Yaron

Hi All,

Project 2007 & sharepoint 3 question:

I am creating a web part that inherit from
Microsoft.Office.Project.PWA.WebParts.ProjectCenterPart
and override the virtual property call AvailableViews

My problem is that when I am trying to add the web part to my page i am
getting the following error:
"The default namespace 'http://schemas.microsoft.com/WebPart/v2' is a
reserved namespace for base Web Part properties."

Although i a configure non default namespace to my web part class as follow:

[XmlRoot(Namespace = "Yaron.CustomizedView.WebPart"),
XmlTypeAttribute("CustomProjectCenter.CustomProjectCenterWP", Namespace
= "Yaron.CustomizedView.WebPart")


The weird thing is that i found a workaround to solve it:
I am changing the web part to inherit from
Microsoft.SharePoint.WebPartPages.WebPart
and then add the web part to my page
and then replace the web part dll with the dll that inherit from
Microsoft.Office.Project.PWA.WebParts.ProjectCenterPart
In this way the web part WORKS !!!

But this workaroung is not good, i need to replace between the DLL's every
time that i want to add the web part.


What i suppose to do ?


Regards,
Yaron Pri-Gal,
MCPD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top