[{"data":1,"prerenderedAt":369},["ShallowReactive",2],{"article-sharepoint-web-part-deployment":3},{"article":4,"tags":91,"previous":106,"next":193},{"id":5,"title":6,"author":7,"body":8,"createdAt":79,"description":80,"extension":81,"img":82,"meta":83,"navigation":84,"path":85,"seo":86,"stem":87,"tags":88,"updatedAt":79,"__hash__":90},"articles\u002Farticles\u002Fsharepoint-web-part-deployment.md","Sharepoint Web Part Deployment","[object Object]",{"type":9,"value":10,"toc":75},"minimark",[11,15,51,54],[12,13,14],"p",{},"If when using Windows Sharepoint Services you are unable to retract or execute jobs seen through the management interface using the following commands can help to manually list and remove and redeploy solutions.",[12,16,17,18,21,25,26,28,31,32,34,37,38,40,45,47,50],{},"To see a list of all solutions on the server",[19,20],"br",{},[22,23,24],"strong",{},"stsadm.exe -o enumsolutions","  To see a list of all deployments",[19,27],{},[22,29,30],{},"stsadm.exe -o enumdployments","  To cancel a deployment",[19,33],{},[22,35,36],{},"stsadm.exe -o canceldeployment -id {guid}","  To execute scheduled jobs",[19,39],{},[22,41,42,43],{},"stsadm.exe -o execadmsvcjobs",[19,44],{},[19,46],{},[22,48,49],{},"Error: \"the solution cannot be removed when a job is scheduled or is running\" \u003C ","use the above commands to execute jobs that are scheduled",[12,52,53],{},"I am using something like the following when removing and deploying web parts (notice the execadmsvcjobs)",[12,55,56,57,63,64,66,67,69,70,72,73,63],{},"stsadm.exe -o retractsolution -name webPart.wsp -immediate -url {",[58,59,62],"a",{"rel":60},[61],"nofollow","http:\u002F\u002F...} ","\nstsadm.exe -o execadmsvcjobs",[19,65],{},"\nstsadm.exe -o deletesolution -name webPart.wsp -override",[19,68],{},"\nstsadm.exe -o addsolution -filename webPart.wsp",[19,71],{},"\nstsadm.exe -o deploysolution -name webPart.wsp -immediate -allowgacdeployment -url {http:\u002F\u002F...} -force",[19,74],{},{"title":76,"searchDepth":77,"depth":77,"links":78},"",2,[],"2015-04-20T08:07:18.3200000-04:00","Learn how to deploy web parts.","md",null,{},true,"\u002Farticles\u002Fsharepoint-web-part-deployment",{"title":6,"description":80},"articles\u002Fsharepoint-web-part-deployment",[89],"sharepoint","o0IIXKtNlmzSimnQm8juIvIaJ1WCP7U-9Nnxq9lvtrA",[92],{"id":93,"title":94,"body":95,"description":99,"extension":81,"img":100,"meta":101,"name":89,"navigation":84,"path":102,"seo":103,"stem":104,"__hash__":105},"tags\u002Ftags\u002Fsharepoint.md","Sharepoint",{"type":9,"value":96,"toc":97},[],{"title":76,"searchDepth":77,"depth":77,"links":98},[],"Microsoft SharePoint","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fsharepoint",{"description":99},"tags\u002Fsharepoint","1yMA-SLjOHmy0x6_m2U0v9b58OVV2Jg1i0vhgXavZ7M",{"id":107,"title":108,"author":7,"body":109,"createdAt":185,"description":82,"extension":81,"img":182,"meta":186,"navigation":84,"path":187,"seo":188,"stem":189,"tags":190,"updatedAt":185,"__hash__":192},"articles\u002Farticles\u002Fsonos-update-and-still-a-very-cool-product.md","Sonos Update and still a very cool product",{"type":9,"value":110,"toc":183},[111,124,161,169,174],[12,112,113,114,116,117,119,120,123],{},"Today I received an update to my Sonos system.  Great things abound.",[19,115],{},"\nIncluded in this release is Sonos access to Last.fm, Pandora and 1000’s of radio stations and ‘shows’ from around the world.",[19,118],{},"\nJust messing around I entered West Chester, Ohio and got a list of all the local radio stations.  Of course you can enter any city you wish.  Very cool. ",[58,121],{"href":122},"\u002Farticles\u002Fimages\u002FWindowsLiveWriter\u002FSonosUpdatestillaverycoolproduct_10506\u002Fimage_4.png"," ",[12,125,126,131,132,135,136,139,140,143,144,147,148,150,151,153,154,156,157,160],{},[58,127,130],{"href":128,"target":129},"http:\u002F\u002Fwww.sonos.com\u002Fdefault.aspx","_blank","Sonos","®, Inc., the leading developer of wireless multi-room music systems for the home, today released Sonos System Software 2.7. Sonos 2.7 delivers a world of music to every room of the house-free of charge-by providing instant, computer-free access to ",[22,133,134],{},"Last.fm"," and ",[22,137,138],{},"Pandora","® personalized ",[22,141,142],{},"radio services",", plus more than ",[22,145,146],{},"15,000 radio stations"," and shows via Sonos Radio.",[19,149],{},"\nThe system now provides music from both subscription-based services (Napster®, Rhapsody® and SIRIUS®) and free music services (Last.fm, Pandora and Sonos Radio) right out of the box.",[19,152],{},"\nAll of these services stream music directly from the Internet to the house, so they work even when the computer is turned off – no need to download songs or have a server running.",[19,155],{},"\nSonos’ new Radio guide, powered by RadioTime, lets you tune in to more than 15,000 free Internet radio stations, radio shows and more. You can browse easily for both ",[22,158,159],{},"local"," and international stations or use Search to find a specific station, show or host. When you find what you want, simply add it to Favorites for your future listening.",[12,162,163,165,166,168],{},[22,164,134],{}," on Sonos is a free global music service that lets you discover, play and share new songs and artists based on your unique musical tastes - right from any Sonos Controller. After an account is created on Last.fm, Sonos customers can enjoy continuous music streaming all over the house. Simply enter the name of a favorite artist or tag keywords and Last.fm’s unique recommendation system instantly creates a personalized radio station featuring music you’re sure to love. Last.fm on",[19,167],{},"\nSonos also features the capability to scrobble all the music you play on your Sonos Multi-Room Music System. Every song you listen to on Sonos - whether it’s from your personal music library or a music service like Napster®, Rhapsody®, Pandora®, and of course, Last.fm - is automatically added to your personal music profile. This allows Last.fm to customize your music recommendations and open the doors to even more music discovery, in more rooms of the house.",[12,170,171,173],{},[22,172,138],{},", the popular personal radio service is now available for free on Sonos. After creating a free account on Pandora.com, Pandora lets you create and play up to 100 radio stations based on your favorite songs or artists. Using Pandora’s Music Genome Project®, Pandora’s highly-trained musicians analyze songs, one at a time, using close to 400 musical traits including melody, harmony, instrumentation, rhythm, vocals, lyrics, and more to automatically build a station with songs that share interesting musical similarities. With a Sonos Controller in hand, you can rate the music you hear to further refine the station’s playlist on the fly. Play the same Pandora radio station in each room, perfectly synchronized; or, play different stations in different rooms to fit the mood.",[12,175,176,177,179],{},"Other new features of Sonos System Software 2.7 include:\n• Updated Rhapsody support with improved sound quality. Rhapsody now streams at 192 MP3 (versus 128 kbps WMA previously).\n• Support for RTSP streaming protocol which allows for expanded Internet Radio coverage.",[19,178],{},[180,181],"img",{"src":182,"alt":76},"\u002Farticles\u002Fimages\u002Fsonos.jpg",{"title":76,"searchDepth":77,"depth":77,"links":184},[],"2015-04-20T08:07:18.5200000-04:00",{},"\u002Farticles\u002Fsonos-update-and-still-a-very-cool-product",{"title":108,"description":82},"articles\u002Fsonos-update-and-still-a-very-cool-product",[191],"general","btSrXkPFxDuH4_1iruxuoYityCioWZMOtTdG2NnYJro",{"id":194,"title":195,"author":7,"body":196,"createdAt":362,"description":82,"extension":81,"img":82,"meta":363,"navigation":84,"path":364,"seo":365,"stem":366,"tags":367,"updatedAt":362,"__hash__":368},"articles\u002Farticles\u002Fsharepoint-wss-3-0-tips-debugging.md","Sharepoint WSS 3 Tips Debugging",{"type":9,"value":197,"toc":360},[198,201,213,216,223,226,229,262,342,353,356],[12,199,200],{},"Getting the w3wp.exe ProcessID for Attach to Process  ",[202,203,204,205,208,209,212],"blockquote",{},"   ",[22,206,207],{},"Open command prompt and type iisapp.vbs","     ",[22,210,211],{},"Attach a debugger to your code"," ",[22,214,215],{},"The code you are using to debug must be exactly the same as the executing assembly",[12,217,218,219,222],{},"This often catches people out in SharePoint development as the assembly SharePoint is using is often in a different location than the default build directory (i.e. in the bin directory in IIS or in the GAC). You may want to include a post build script to copy your assembly to the correct location to help automate this process. Also be careful when debugging assemblies that are in the GAC as you may need to do an iisreset to ensure ASP.NET uses the latest version of your assembly.       *        ",[22,220,221],{},"The .pdb file needs to be in the same directory as the assembly to see line numbers",".",[12,224,225],{},"This is easy if you are using the bin directory of the website (recommended when developing), but you cannot copy these files directly into the GAC. You can get around this with the following steps:                  * Map a network drive to the GAC (C:\\WINDOWS\\assembly) folder.",[12,227,228],{},"This allows you to see the actual folder structure and copy files into the folders as they appear on disk (opposed to the shell that is shown when browsing directly).           * Copy the .pdb file into your assembly folder in the GAC_MSIL subfolder so that it sits next to the assembly dll.",[230,231,232],"ul",{},[233,234,235,238,239,245,246,245,254,245,259],"li",{},[22,236,237],{},"Activate features through the UI if you want to debug feature receivers",". If you use the stsadm command line tool to automate feature deployment the w3wp process will be recycled so any debuggers will be detached. Activating these through the central admin or the site features page will ensure the w3wp process is running.       ",[202,240,241,242,212],{},"    ",[22,243,244],{},"Use Debug and Trace statements","  ",[202,247,248,249,253],{},"   System.Diagnostics.Debug and Trace statements are another great way of tracking down errors in your code. As Debug calls are removed from release builds, these can be used extensively to help track down errors in development. To view these you can use tools such as\n",[58,250,252],{"href":251},"http:\u002F\u002Fwww.microsoft.com\u002Ftechnet\u002Fsysinternals\u002Futilities\u002Fdebugview.mspx","DebugView"," to view messages on local or remote machines ",[202,255,204,256,212],{},[22,257,258],{},"Use Try-Catch statements",[202,260,261],{},"   As with standard ASP.NET applications, Try-Catch statements can help catch and log error messages that occur in your code. This can be combined with Debug and Trace statements to view or log errors, or display meaningful messages to the user.\nFor example in a web control you might do the following:",[263,264,268],"pre",{"className":265,"code":266,"language":267,"meta":76,"style":76},"language-csharp shiki shiki-themes github-light github-dark","protected override void Render(HtmlTextWriter writer)      \n{       \n    try       \n    {       \n        \u002F\u002F code that might cause an error       \n    }       \n    catch       \n    {       \n        Trace.Write(ex);       \n        writer.Write(ex.Message);       \n    }       \n} \n","csharp",[269,270,271,279,284,290,296,302,308,314,319,325,331,336],"code",{"__ignoreMap":76},[272,273,276],"span",{"class":274,"line":275},"line",1,[272,277,278],{},"protected override void Render(HtmlTextWriter writer)      \n",[272,280,281],{"class":274,"line":77},[272,282,283],{},"{       \n",[272,285,287],{"class":274,"line":286},3,[272,288,289],{},"    try       \n",[272,291,293],{"class":274,"line":292},4,[272,294,295],{},"    {       \n",[272,297,299],{"class":274,"line":298},5,[272,300,301],{},"        \u002F\u002F code that might cause an error       \n",[272,303,305],{"class":274,"line":304},6,[272,306,307],{},"    }       \n",[272,309,311],{"class":274,"line":310},7,[272,312,313],{},"    catch       \n",[272,315,317],{"class":274,"line":316},8,[272,318,295],{},[272,320,322],{"class":274,"line":321},9,[272,323,324],{},"        Trace.Write(ex);       \n",[272,326,328],{"class":274,"line":327},10,[272,329,330],{},"        writer.Write(ex.Message);       \n",[272,332,334],{"class":274,"line":333},11,[272,335,307],{},[272,337,339],{"class":274,"line":338},12,[272,340,341],{},"}\n",[12,343,344,347,348,352],{},[22,345,346],{},"View the SharePoint Logs","\nThe raw SharePoint log files are extremely cluttered and hard to use but there is an alternative. The ",[58,349,351],{"href":350},"http:\u002F\u002Fwww.codeplex.com\u002Ffeatures\u002FRelease\u002FProjectReleases.aspx?ReleaseId=2502","LogViewer feature on CodePlex"," lets you easily select a log file and view a filtered display of the items you are interested in.    ",[202,354,355],{},"   You can also tweak the information that is written to the SharePoint logs via the Diagnostic Logging link under Logging and Reporting in the operations section of Central Administration.",[357,358,359],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":76,"searchDepth":77,"depth":77,"links":361},[],"2015-04-20T08:07:18.2100000-04:00",{},"\u002Farticles\u002Fsharepoint-wss-3-0-tips-debugging",{"title":195,"description":82},"articles\u002Fsharepoint-wss-3-0-tips-debugging",[89],"a4E2rqcS5lz36oL5AbpTT_W92wj7pXV4YGKqJglbkn0",1781574766313]