A
Andranik
I am very new to the entire Sharepoint arena, and I am having some
difficulties. I am attempting to add some project server web parts to my
sharepoint portal 2003. I have created the safe controls, added the dll to
the gac and attempted to upload the webparts. I am now getting an error of
"Cannot edit this Web Part's properties. The zone this Web Part is in does
not allow property changes". I have no clue where to begin. I got the
webparts from the "Microsoft Office 2003 SDKs" donwload from Microsoft.
I added this line to the web.config in the safe control section (as per
instructed by the tutorial):
<SafeControl Assembly="PWAWebParts, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=dd8403f09dd2b43b" Namespace="PWA" TypeName="*" Safe="True" />
I also have a security policy setup here as well...not sure if this is what
is blocking me:
<securityPolicy>
<trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\config\wss_mediumtrust.config" />
<trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\config\wss_minimaltrust.config" />
</securityPolicy>
I had to create a webpart (according to the instructions) that I am assuming
would some how point to the other webparts. This is the code for
thPWAWebPArts.dwp file I created (I just copied the code from the example, as
I was instructed)
<?xml version="1.0" encoding="utf-8" ?>
<!-- _lcid="1033" _version="11.0.5510" _dal="1" -->
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
<Assembly>PWAWebParts, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=dd8403f09dd2b43b</Assembly>
<TypeName>PWA.PWAPart</TypeName>
<Title>PWA Web Part</Title>
<Description>Used for viewing PWA information</Description>
<PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>
</WebPart>
If, however, I try to import any of the Project web parts that came with the
sdk, I get this error message" "The page cannot be found
The page you are looking for might have been removed, had its name changed,
or is temporarily unavailable. "
Here is the code for the Tasks.dwp:
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Project Timesheet</Title>
<FrameType>Default</FrameType>
<Description>Project Timesheet</Description>
<PartImageLarge>/_layouts/images/pswebprt.gif</PartImageLarge>
<FrameState>Normal</FrameState>
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<IsVisible>true</IsVisible>
<Assembly>Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"
/>
<Content
xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[
<script language="JScript">
var sLoc = window.location.toString();
if(typeof(L_Menu_BaseUrl) == 'undefined')
var sPostUrl = sLoc.substr(0, sLoc.lastIndexOf('/')) +
"/_layouts/pwainc/getprop.aspx";
else
var sPostUrl = L_Menu_BaseUrl + "/_layouts/pwainc/getprop.aspx";
var sRequest = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
sRequest += "<XMLFormData>";
sRequest += " <READONLY>1</READONLY>";
sRequest += "</XMLFormData>";
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", sPostUrl, false);
xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xmlhttp.send(sRequest);
var sResult = xmlhttp.responseXML;
if(sResult.childNodes.length > 0)
{
var sMSPWAURL = sResult.selectSingleNode("//PWAURL").text;
var sMSPROJID = sResult.selectSingleNode("//PWAPROJID").text;
document.write("<iframe src=\"" + sMSPWAURL +
"Tasks/TasksPage.asp?GanttView=0&AllTasks=0&SimpleUI=109\" width=100%
height=100%></iframe>");
}
</script>
]]></Content>
<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"
/>
</WebPart>
Thanks for any help you can offer inadvance. I have been slaving over this
for several weeks, and I still have not come up with a resolution.
-Andy
difficulties. I am attempting to add some project server web parts to my
sharepoint portal 2003. I have created the safe controls, added the dll to
the gac and attempted to upload the webparts. I am now getting an error of
"Cannot edit this Web Part's properties. The zone this Web Part is in does
not allow property changes". I have no clue where to begin. I got the
webparts from the "Microsoft Office 2003 SDKs" donwload from Microsoft.
I added this line to the web.config in the safe control section (as per
instructed by the tutorial):
<SafeControl Assembly="PWAWebParts, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=dd8403f09dd2b43b" Namespace="PWA" TypeName="*" Safe="True" />
I also have a security policy setup here as well...not sure if this is what
is blocking me:
<securityPolicy>
<trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\config\wss_mediumtrust.config" />
<trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\config\wss_minimaltrust.config" />
</securityPolicy>
I had to create a webpart (according to the instructions) that I am assuming
would some how point to the other webparts. This is the code for
thPWAWebPArts.dwp file I created (I just copied the code from the example, as
I was instructed)
<?xml version="1.0" encoding="utf-8" ?>
<!-- _lcid="1033" _version="11.0.5510" _dal="1" -->
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
<Assembly>PWAWebParts, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=dd8403f09dd2b43b</Assembly>
<TypeName>PWA.PWAPart</TypeName>
<Title>PWA Web Part</Title>
<Description>Used for viewing PWA information</Description>
<PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>
</WebPart>
If, however, I try to import any of the Project web parts that came with the
sdk, I get this error message" "The page cannot be found
The page you are looking for might have been removed, had its name changed,
or is temporarily unavailable. "
Here is the code for the Tasks.dwp:
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Project Timesheet</Title>
<FrameType>Default</FrameType>
<Description>Project Timesheet</Description>
<PartImageLarge>/_layouts/images/pswebprt.gif</PartImageLarge>
<FrameState>Normal</FrameState>
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<IsVisible>true</IsVisible>
<Assembly>Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"
/>
<Content
xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[
<script language="JScript">
var sLoc = window.location.toString();
if(typeof(L_Menu_BaseUrl) == 'undefined')
var sPostUrl = sLoc.substr(0, sLoc.lastIndexOf('/')) +
"/_layouts/pwainc/getprop.aspx";
else
var sPostUrl = L_Menu_BaseUrl + "/_layouts/pwainc/getprop.aspx";
var sRequest = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
sRequest += "<XMLFormData>";
sRequest += " <READONLY>1</READONLY>";
sRequest += "</XMLFormData>";
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", sPostUrl, false);
xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xmlhttp.send(sRequest);
var sResult = xmlhttp.responseXML;
if(sResult.childNodes.length > 0)
{
var sMSPWAURL = sResult.selectSingleNode("//PWAURL").text;
var sMSPROJID = sResult.selectSingleNode("//PWAPROJID").text;
document.write("<iframe src=\"" + sMSPWAURL +
"Tasks/TasksPage.asp?GanttView=0&AllTasks=0&SimpleUI=109\" width=100%
height=100%></iframe>");
}
</script>
]]></Content>
<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"
/>
</WebPart>
Thanks for any help you can offer inadvance. I have been slaving over this
for several weeks, and I still have not come up with a resolution.
-Andy