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
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