Export-SPWeb qhia kuv "InvalidData” Tab sis, cov ntaub ntawv no Valid

Kuv yog in the process of sau tau ib tsab xov xwm no rau cov neeg nyob zoo www.sharepointbriefing.com thiab nws yuav deploying rau ib daim ntawv los ntawm ib tus neeg ua liaj ua teb txoj kev loj hlob mus rau ib tus neeg ua liaj ua teb ntau lawm.  Kuv tseem ua accustomed rau koj siv cov stsadm thiab xav tau lov tus cwj pwm, raug rho tawm no, kuv haujlwm txog lub SharePoint 2010 Kev tswj cov plhaub thiab ua si ib ncig uas siv Export-SPWeb mus ua backup kuv sau.  Cas ib feeb nyuaj uas proved tau!

Kuv khaws tau qhov no yuam kev:

image

Qhov yuam kev, "InvalidData: (Microsoft.Share...CmdletExportweb"") tug uas kuv.  Kuv yuav nyob ntev npaum li cas kuv struggled nrog qhov txaj muag.

Kuv twb muaj khiav mus ua ib lub phab ntsa nrog PowerShell thiab muab stsadm kom tau ib ncig nws.  Kuv sim nws dua no lub sij hawm thiab kuv tau mus kev tau zoo.

Kuv siv sij hawm fiddling nrog lub –Identity xaiv ntau thiab ntawd los thaum kawg nrog –ItemURL.  Nws puv ntawm cov kev xaiv ItemURL kom ib daim ntawv qhia txog kab ntawm daim ntawv teev/qiv koj  xav export tsis muaj ntawm http://neeg rau zaub mov ntsis.  Li ntawd, txawm tus fact lub keeb neeg cav taw mus rau ib subsite, tus ItemURL yog ntu ntawm taw tsis tab sis ntu hauv qhov chaw sau ntawv.

Nws yuav tau zoo rau lub cmdlet qhia rau kuv paub yog dab tsi txhob siv tau (cov neeg nyob rau hauv cov ntaub ntawv no) thiab ua li cas yog invalid (ItemUrl).  Tej me kev touches pab neeg khaw cov khoom.  Tsis muaj loj ding tiv thaiv SharePoint, but a little one at least 🙂

Hopefully no ncej yuav tseg tau ib tug neeg me ntsis kev tu siab yav.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ua hauj lwm nrog cov TreeNodeBinding hauv lub ASP.NET Treeview Control

Kuv twb tau ua hauj lwm rau dab tsi kuv vam yuav muaj sai-tso CodePlex teg num npaaj zoo integrated me ntsis ntawm cov Web site qhov neb sib tham tsis tau ntawm tus neeg zov me nyuam los muab siv sib txuas lawv kawm ua ib qhov chaw SharePoint nyob rau hauv daim npog.  (Qhov no yeej tau tau ua ntej, tab sis qhov no yog kev kawm project ntau li ntau dabtsi ntxiv).  Qhov no yog meant yuav ib daim tuaj hloov rau lub qhov rais explorer saib ntawm SharePoint 2010 daim ntawv qiv.

Cov cai no muaj li ib txwm recursive hu mus rau nram lub SPWeb thiab SPLists tus zauv pib taw tes.  Cov kwv yog cov ntawd traversing leem tus hlua XML uas zoo li tej yam zoo li no:

<sitecollection url =’http://demo2010a:9090′>
 
<Web site
     Title = 'Nyob zoo ntiaj teb Sandbox' 
     Template =' tus kawm ntawv nrog ceev nrooj miv, sau, thiab muab lus qhia, BLAH BLAH BLAH'>

     <sau
        Title ='BCC_Health_Services_FAQs’
        Template ='CustomList’
       
listid =’http://demo2010a:9090/helloworldsandbox[delim]1e02b001-3cb2-4f17-b63d-7809e86b4174′>
    
</sau>

     <sau
        Title = 'BCC_Notifications' 
        Template = 'CustomList' 
        listid =’
http://demo2010a:9090/helloworldsandbox[delim]5a5a13d1 - 877c - 41c 0-9063-b9612be80d5e’>
     </sau>

  </Web site>

</sitecollection>

Kuv mam los ntxuav tu uas XML ua ntej txhua yam yog hais thiab ua.

Kuv xav kom thaum kawg tau cov lus qhia ntawd mus thiab mus ua tus Treeview tswj.  Tsis raws nraim earth shattering khoom.

Kev xwb yuab kuv muab rau koj yog coj mus cuag cov ntoo pom los tiv thaiv XML tej ntaub ntawv los siv manually tsev li kuv treenodes raws li kuv traverse rau tsob ntoo.  Kuv puas no tej vim kuv tabtom txhob txwm tshaj tawm ua tej yam nyuaj rau kuv tus kheej (qhov no nws yog ib qhov project rua suav) thiab tej vim kuv muaj qhov vague notion uas tsev nce ntoo o li tsob ntoo traverse kuv tsis yog ib lub tswv yim zoo rau lub sij hawm ntev.

Qhov teeb meem nrog cov kauj yog tias cov Treeview tswj tsis paub txog qhov zoo muab rau hauv cov ntshav nthuav xws li "sau" los yog "Web site" kom nws pom tias cov zis no los vim:

 

image

Yog tsis pab.  Qhov no yog qhov chaw rau cov hoob kawm TreeNodeBinding pab.  Kuv siv tau qhov no qhia rau cov tswj Treeview li cas yuav tsum txhais rau XML.  Ntawm no yog ib qho piv txwv:

tnb = TreeNodeBinding tshiab();
tnb.DataMember = "sau"; // Qhov no nws yog cov ntawv sau nyob hauv lub xml rau ib qhov chaw.
tnb.TargetField = "listid";
tnb.ValueField = "title";
tnb.ToolTipField = "Template";

No losis tswvyim dabtsi qhia rau treeview tias thaum nws pom ib tug <sau> ntawm nyob rau hauv cov XML, siv cov nabkaus rau TargetField, ValueField thiab ToolTipField.  Nyob hauv ntuj app, cov map raws li nram no:

  • TargetField: Thaum ib tug neeg clicks nyob rau ib cov nqi ntawm, qhov no yog koj yuav tau dab tsi rau SelectedNode.Value.  Yog li no tsis yog tsis meej pem nrog...
  • ValueField: Qhov no yog dab tsi koj xav qhov Treeview los tso saib kom tus neeg siv.
  • ToolTipField: Tus nqi ntawm cov XML uas koj xav ua ib Tooltip.

Ntxiv tias TreeNodebinding ntoo pom cov DataBindings thiab koj tau output li no:

 

image

Kuv mam muaj ntau rau txhua yam no ntxiv rau peb tes num thiab nws thiaj li muab qhov no rau Codeplex.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Nrhiav poj SharePoint txuj ci

Ntawm no yog ib tsab xov xwm kuv sau tau rau cov neeg nyob zoo SharePoint theem yus "nrhiav poj SharePoint txuj ci". Tsab xov xwm nws muab ib co tswv yim pab nrhiav neeg yeej zoo thiab kom txog tej thaum uas koj nyob nraum nrhiav lwm tus neeg ua hauj lwm koj yuav ua li cas.

Ntawm no yog ib teaser:

Teaser

Xyuas.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Thaub qab-SPSite cmdlet twj ywm tsis thaum tuav cov tibneeg Permissions

Yog ib tug neeg rau zaub mov thiab khiav hais kom ib tug boring chaw sau backup ua nrog cov thaub qab-SPSite powershell cmdlet thiab txais qhov yuam kev no:

Thaub qab-SPSite : Yuav nrhiav tsis tau ib tug kwv SPSite Id los URL: …  (tag nrho cov lus sam rau nram qab no)

image

Kuv twb muaj tej teeb meem no neeg rau zaub mov thiaj li ua kuv xav tias cov neeg rau zaub mov raug mob los yog ib yam dab tsi.  Kuv switched rau cov laus stsadm thiab lub sij hawm no kuv tau txais ib qho yuam kev lawm nyias:

Cov sijhawm ua haujlwm no yuav tau rau ib lub computer txuas rau ib tug neeg rau zaub mov ua liaj ua teb xwb... (tag nrho cov lus sam rau nram qab no)

image

tau mas, Nws muab rau tus ua liaj ua teb thiab tag nrho ntawd, tiam sis nws ho tshwm rau kuv tias kuv yog in thiaj li tso maub kuv cov nyiaj thiab kuv nquag teev ua ib zog nyiaj mus rau qhov neeg rau zaub mov.  Kuv puas tau ntawd thiab tus thaub qab succeeded.  Cas kuv yuav nrhiav nthuav yog tias cov cmdlet muab kuv lus trimmed yuam kev ruaj ntseg.  Uas yog hom zoo huv si tiam sis ho tsis pab kuv npaum li cas :) 

<kawg />

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ncaj nraim mus kaw hauv tsev teev – Cisco VPN neeg

Dhau lub caij ntuj sov, Kuv tsim ib "ncaj rau tsev kaw neeg" sau rau lub thawv txias.  #1 nyob rau daim ntawv yog Lawrence O'Donnell (rau txoj hau kev yuav tsis muaj tseeb), tiam sis yog txoj kev tshaj lub uas duav txhua yam no blog :)  Hnub no, Kuv muab kuv Cisco tus VPN neeg rau daim ntawv, thiab qhov uas yog tau los ntawm ib lub qhov ntswg.

Ib xyoos dhau lawm ntau qhov uas tus neeg tau siv Cisco VPN yuav pab rau tej thaj chaw deb saib lawv lub site Rev.  Ces rov qab, Tsim virtual PCs txhua yam cov neeg thiab ntsia cov Cisco uas nyob rau? Ua li cas?  Vim Cisco locks koj lub cav kom koj txawm yuav tsis tuaj hauv zos network printers, alone let caj yus nyiam Skype, Communicator thiab cov "~" qhov tseem ceeb.  Tab sis npog,  Yog hais tias koj nruab nws rau ib VM, koj VM muab tub mus tab sis tsis koj party. 

Kuv tabtom qhia ntawm cov hnub no los tshaj plaws li hnub no vim hais tias kuv yuav tsum siv ib cov neeg Cisco VPN * dua * thiab nws locks kuv thiab kuv tau siv nyob rau hauv ib pliag.  Kuv yuav theej blog txog ntau npaum li cas nyob hauv kev pab Cisco VPN deserves mus nyob nkuaj es siv...

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

SharePoint Fest – Denver

Kuv mam li muab hais Denver ntawm cov kev tshwm sim SharePoint Fest saum ntuj.  Kuv yuav los tham txog ib qho lag luam thiab kev xav-rau-do's nyob SharePoint Designer workflows thiab outline ib co qauv uas koj siv tau los daws kom tau lawv.

Yog ntau lwm heev nthuav khoom mus ntawm qhov kev sib tham, yog li kos nws: http://www.sharepointfest.com/Denver/

Nws tsis yog ib tug dawb cov kev tshwm sim thiab kuv muaj luv nqi txoj ke, yog li cia ib saib los yog kuv thiab kuv mam li gladly muab tawm ping.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Siv ib lub kaw lus ceeb toom Pop-up thoob ntiajteb

Kuv thiaj sau tau ib tsab xov xwm rau www.sharepoint.briefing.com txoj cai"Siv ib lub kaw lus ceeb toom Pop-up thoob ntiajteb.”  No muaj nuj nqi DVR rau zej zog college sib txuas lus tsev kawm ntawv kaw vim yog daus li khuav. 

Nws yuav siv ib daim ntawv teev kev cai, mus rau ntawm lub box SharePoint web kev pab thiab ib co jQuery rau cov ua haujlwm.

Ntawm no yog ib teaser:

image

Nyeem tag nrho qhov nov: http://www.sharepointbriefing.com/features/article.php/3918471/Implement-a-Global-Pop-up-Notification-System.htm

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Txuas ntawv teb ntxaij lim dej rau koj cov qhov Web kev cai

Kuv xav tau cov ntaub ntawv los ntawm ib cov ntawv teb lim hauv SharePoint 2010 mus rau kuv qhov web kev cai.  Kuv sim siv no cov tshooj MSDN puas yog pheej tab sis tsab xov xwm yog tog twg los lawm los kuv kuv cia li tsis ua raws li nws kom raug.

Ib me ntsis ntxiv searching nres tsis Mike Smith MSDN tshab ntawm no (http://social.msdn.microsoft.com/forums/en-us/sharepointdevelopment/thread/72F1732A-7F93-441E-8644-2E82BBB153D9).

Yog khoom ntawm connectable Web site yog xeem tawm muaj ntau tab sis yog Mike cov tshooj lus kom raws li nws tau.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Renaming Web Part Namespaces (Los sis, Ib tug tos rau "ib cov qhov Web site Web daim ntawv tswj ntawm nplooj ntawv no ua tsis tau raug tso tawm kom pom los mas)”

Kuv twb tau ua hauj lwm kom tau kuv tus dev npuas rov qab thiab rau qhov tus kawg, ua hauj lwm nyob rau ib qhov project hobby uas muaj cov khoom nram qab no:

  • Connected web qhov uas nws tau txais ib qhov chaw los yog qhov chaw sau URL ntawm ib qho tawm ntawm lub thawv rau cov qhov Web site SharePoint ntawv nyeem lim.
  • Web site qhov no zoo li cov info qhov tus kawm ntawv xaiv, generates ib lub pob XML thiab ob txhais tes nws tawm mus rau lwm lub WP nyob rau sab (ntawm kev sib txuas).
  • 3cov qhov Web site lawm tau txais hauv XML thiab puas muaj ib co XSL txia khoom.

Kuv xav rename qhov chaw sau lub npe ntawm tag nrho cov kev khoom rau cov "Nivlag" thiab kuv twb tau ntaus nrog rau qhov yuam kev li nram no thaum uas cov qhov Web site rau deployed kuv  Kuv lub chaw kuaj:

Ib cov qhov Web site Web daim ntawv tswj ntawm nplooj ntawv no ua tsis tau raug tso tawm kom pom los mas.  Cas yuav tsis nyob los nws yuav tsum tsis zwm zoo li.

Qhov no nws yog ib tug beginner teeb meem tab sis kuv xav tias kuv xav jot cia ib tug faj seeb rau hauv no lawm.  Kuv mob qhov yuam kev no thaum kuv nyob rau lub neej ntawd lub npe chaw right-clicked (uas txog qhov project npe defaulted), Parent Refactor thiab Rename ntawd nyiam li ntawd:

image

Uas cas rename yam uas nyob hauv ib Rev qhov chaw nyob rau hauv peb tes num, tiam sis nws muaj tsis txaus.  Koj kuj tau mus ua ob peb lwm yam kev kho me ntsis:

1. Manually qhib thiab hloov tau ib tug ntaub ntawv, "ShaerPointProjectItem.spdata". Tias ib XML tau thov uas muaj ib tug <SafeControls> seem.  Tsis ras paub txog cov ntaub ntawv no txawm vim txoj kev ua namespace rename, li ntawd, koj yuav tau hloov cov Namespace muaj manually.

2. Qhov ua ntaub ntawv thov .webpart hloov manually.  Txawm vim li, Nrig txog kev pom Studio tsis hloov no siv yog.  Kev hloov cov "<hom>"ntawm kom muaj kev cuam tshuam koj hloov namespace muaj.

3. Ntsig, nyob ntawm seb koj refactored namespace hloov, siv qhov muag saib lub studio kuj muaj tseem tshiab txoj hlua references koj thov no los .ascx li no:

chaw const txoj hlua _ascxPath = @"~/_CONTROLTEMPLATES...

Koj yuav tau hloov ntawd rov qab.  Koj mam li vim koj mam tau txais ib qho kev ua yuam kev xws li nram no thaum koj mus sim thiab ntxiv rau cov qhov Web site kom zoo noj qhov Web site ntawm ib  nplooj ntawv:

Neeg rau zaub mov yuam kev hauv ' /’ Daim ntawv.


Cov ntaub ntawv ' /_CONTROLTEMPLATES/Nivlag/VisualWebPart1/VisualWebPart1UserControl.ascx’ tsis muaj nyob.

Hauj lwm lawm: Kev unhandled zam tshwm sim thaum tus tiav thov web tam sim no. Thov xyuas Tshooj ib txoj lw kom paub ntau ntxiv txog cov kev ua yuam kev thiab qhov twg nws originated hauv qhov chaws.
Kos paub meej: System.Web.HttpException: Cov ntaub ntawv ' /_CONTROLTEMPLATES/Nivlag/VisualWebPart1/VisualWebPart1UserControl.ascx’ tsis muaj nyob.
Qhov yuam kev:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 

Txhim kho qhov siv muaj thiab koj yuav tsum tau kom mus zoo.

4. Ntsig, ASCX ntawv nqi tseem tshuav ib tug siv (rau kuv) rau cov qub thawj namespace (txoj kev ua refactor/rename tsis txhim kho qhov no).  Koj mam li paub txog cov no yuam kev thaum koj sim thiab ntxiv rau cov qhov Web site ntawm nplooj thiab tau txais cov lus nram qab no:

Neeg rau zaub mov yuam kev hauv ' /’ Daim ntawv.


Parser kev ua yuam kev

Hauj lwm lawm: Ib qho kev ua yuam kev tshwm sim thaum lub caij cov parsing hauv ib qho chaw uas yuav tsum tau muab cov kev pab no thov. Thov nyeem qhov nram qab no parse kev yuam kev txhawb thiab hloov koj cov ntaub ntawv twg paab.
Lus sam yuam kev parser: Yuav tsis ntsaws hom 'RenameNameSpace.VisualWebPart1.VisualWebPart1UserControl'.
Qhov yuam kev:

Kab 6:  <%@ Ntshuam Namespace="Microsoft.SharePoint" %> 
Kab 7:  <%@ Register Tagprefix = "WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version = 14.0.0.0, Culture = nruab nrab, PublicKeyToken = 71e9bce111e9429c" %>
Kab 8:  <%@ Tswj lus = "C#" AutoEventWireup = "nws muaj tseeb" CodeBehind="VisualWebPart1UserControl.ascx.cs" Inherits="RenameNameSpace.VisualWebPart1.VisualWebPart1UserControl" %>

Tau qhov twg los thov: /_CONTROLTEMPLATES/RenameNameSpace/VisualWebPart1/VisualWebPart1UserControl.ascx    Kab: 8


Cov ntaub ntawv Version: Microsoft .NET moj khaum Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Kho kom raug .ascx ntawv ncaj qha thiab txhim kho tus namespace lawm.

Thaum no tus taw tes, Kuv thaum kawg muaj ib feem nyob hauv cov namespace uas kuv xaiv Web site.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Kev kawm Point – Nws yuav tsis rau lis Geeks ib yam li

Kuv thiaj sau tau ib tsab xov xwm me ntsis txog kev taw tes lawm no lub limtiam thiab luam nws yuav cia li raug tawm www.sharepointbriefing.com.  Ntawm no yog cov intro:

 

image

Nyem no mus nyeem tsab xov xwm.

Kuv xav tias zuag qhia tag nrho kev kawm txoj kev tsim yog ua tau txawv txawv hauv hawm no, tiam sis yog twv yuav raug hu ua puas siv tau.  Nyob ua ntej versions, nws muaj li nws yog ib tug choj cias deb rau feem ntau cov neeg SharePoint.  Qhov chaw tshiab kom koj txhais tes tsis lo av, tab sis, thaum twg koj tau nyob rau hauv daim npog, Nws kuj coj los yog.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin