<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DUAMRX05cSp7ImA9WhdUFUg.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690</id><updated>2011-10-02T13:16:24.329+01:00</updated><category term="iisreset" /><category term="&quot;Send To&quot;" /><category term="Worflow" /><category term="list" /><category term="workflow" /><category term="SPField" /><category term="&quot;Download a Copy&quot;" /><category term="search service" /><category term="events" /><category term="word" /><category term="template" /><category term="types" /><category term="site" /><category term="stsadm" /><category term="not working" /><category term="CAML Builder" /><category term="Response" /><category term="application pool" /><category term="invalid" /><category term="Web Part Maintenance Page" /><category term="Failure decompressing data from a cabinet file" /><category term="SPSearch" /><category term="SPFieldChoice" /><category term="hide" /><category term="&quot;Service Unavailable&quot;" /><category term="Querystring" /><category term="menu" /><category term="core.js" /><category term="SPQuery" /><category term="site template" /><category term="office" /><category term="field" /><category term="deployment" /><category term="definition" /><category term="CAML" /><category term="SPUser" /><category term="IIS" /><category term="doc" /><category term="Filter" /><category term="columns" /><category term="BinaryWrite" /><category term="left click" /><category term="custom" /><category term="Sharepoint Designer" /><category term="Document Library" /><category term="Where" /><category term="Getting SPListItem from Workflow Task" /><category term="Response.End" /><category term="Sharepoint" /><category term="search" /><category term="ControlMode" /><category term="DHTML" /><title>Electrum on SharePoint</title><subtitle type="html">Nuggets of knowledge discovered by &lt;a href="http://www.electrum.co.uk"&gt;Electrum&lt;/a&gt; staff at the SharePoint coalface.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://electrum-on-sharepoint.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Ross McNab</name><uri>http://www.blogger.com/profile/03148528909701971522</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/ElectrumOnSharepoint" /><feedburner:info uri="electrumonsharepoint" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;C0UNRng7fip7ImA9WxNWFE4.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-6328231350221531889</id><published>2009-10-08T11:46:00.002+01:00</published><updated>2009-10-13T11:54:57.606+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T11:54:57.606+01:00</app:edited><title>Levels of SharePoint development</title><content type="html">We've got more than a few SharePoint projects under our belt at Electrum now, looking back we've used many different techniques and levels of integration. On some projects we've been able to meet our client's requirements with "out-of-the-box" features, for others we've had to get our hands dirty with SharePoint internals.&lt;br /&gt;&lt;br /&gt;Reviewing all our projects we're able to spot a spectrum of options, from OOTB to fully bespoke:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Just use the Web UI and built in Web Parts, List templates, Site Templates, and Workflows&lt;/li&gt;&lt;li&gt;Use SharePoint Designer – Custom forms, workflows, DataViews (XSLT manipulation of List XML), JavaScript.&lt;/li&gt;&lt;li&gt;Enable inline .Net code in Web.config - this can be enough to tweak a bit of logic on a page, or add validation.&lt;/li&gt;&lt;li&gt;Develop components in Visual Studio.Net (can be specific to one site, or re-usable across sites). Parameterized Workflows, Web-Parts, custom actions and conditions for SPD workflows, Content types (with custom pages, and code)&lt;/li&gt;&lt;li&gt;Develop whole sites in VS.Net&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-6328231350221531889?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/Qicjx0acjos" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/6328231350221531889/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=6328231350221531889" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6328231350221531889?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6328231350221531889?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/Qicjx0acjos/levels-of-sharepoint-development.html" title="Levels of SharePoint development" /><author><name>Ross McNab</name><uri>http://www.blogger.com/profile/03148528909701971522</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2009/10/levels-of-sharepoint-development.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkYHRnY5eCp7ImA9WxNWFE4.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-5987863160121621640</id><published>2009-09-08T10:22:00.000+01:00</published><updated>2009-10-13T11:35:37.820+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T11:35:37.820+01:00</app:edited><title>SharePoint search broken</title><content type="html">If you find that your search no longer returns any results in SharePoint, and you notice some errors in the event log, such as:&lt;br /&gt;&lt;br /&gt;"Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled. (0x80041205)."&lt;br /&gt;&lt;br /&gt;then the following page contains a registry fix that has sorted the problem for us!&lt;br /&gt;&lt;br /&gt;http://stabilissolutions.blogspot.com/2009/02/sharepoint-2007-search-access-denied.html&lt;br /&gt;&lt;br /&gt;Disable the loopback check&lt;br /&gt;&lt;br /&gt;Click Start, click Run, type regedit, and then click OK.&lt;br /&gt;In Registry Editor, locate and then click the following registry key:&lt;br /&gt;&lt;br /&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa&lt;br /&gt;&lt;br /&gt;Right-click Lsa, point to New, and then click DWORD Value.&lt;br /&gt;Type DisableLoopbackCheck, and then press ENTER.&lt;br /&gt;Right-click DisableLoopbackCheck, and then click Modify.&lt;br /&gt;In the Value data box, type 1, and then click OK.&lt;br /&gt;Quit Registry Editor, and then restart your computer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-5987863160121621640?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/rwve8U9Gk1c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/5987863160121621640/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=5987863160121621640" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/5987863160121621640?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/5987863160121621640?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/rwve8U9Gk1c/sharepoint-search-broken.html" title="SharePoint search broken" /><author><name>Zarek Marshall</name><uri>http://www.blogger.com/profile/04727357889923177041</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2009/09/sharepoint-search-broken.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0AGSHw4fyp7ImA9WxNWFE4.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-8572375244698342214</id><published>2009-08-03T15:32:00.001+01:00</published><updated>2009-10-13T12:02:09.237+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T12:02:09.237+01:00</app:edited><title>Forensic SharePoint Delvelopment</title><content type="html">Sometimes you know how to do something through the SP web UI, but can't find the methods or properties in the API. Let's admit it, the SharePoint API documents on MSDN are sometimes a little lacking.&lt;br /&gt;&lt;br /&gt;This is when "forensic" SharePoint development can come to your aid.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Look at the URL of the UI page in your browser to get the page name.&lt;/li&gt;&lt;li&gt;Find the aspx page in the Templates folder of the 12 hive&lt;/li&gt;&lt;li&gt;Open the page in your favourite text editor, and find out its the code-behind class, normally this will be in the Microsoft.SharePoint.Application namespace, which lives in an assembly with the same name in your site's bin directory.&lt;/li&gt;&lt;li&gt;Download redgate's .NET Reflector &lt;a href="http://www.red-gate.com/products/reflector/"&gt;http://www.red-gate.com/products/reflector/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Open the assembly in reflector, find the class, and decompile the code&lt;/li&gt;&lt;li&gt;You can now see how SP does its thing.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-8572375244698342214?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/X48c2CkleMg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/8572375244698342214/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=8572375244698342214" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/8572375244698342214?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/8572375244698342214?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/X48c2CkleMg/forensic-sharepoint-delvelopment.html" title="Forensic SharePoint Delvelopment" /><author><name>Ross McNab</name><uri>http://www.blogger.com/profile/03148528909701971522</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2009/08/forensic-sharepoint-delvelopment.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QEQHwyfyp7ImA9WxNWFE4.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-6342077991922414915</id><published>2009-07-24T11:37:00.001+01:00</published><updated>2009-10-13T11:55:01.297+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T11:55:01.297+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CAML Builder" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint" /><category scheme="http://www.blogger.com/atom/ns#" term="CAML" /><title>CAML Builder</title><content type="html">We've used this for a while now and it saves a lot of time when creating CAML queries. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.u2u.be/Res/Tools/CamlQueryBuilder.aspx"&gt;http://www.u2u.be/Res/Tools/CamlQueryBuilder.aspx&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-6342077991922414915?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/8S13fSmXByk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/6342077991922414915/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=6342077991922414915" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6342077991922414915?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6342077991922414915?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/8S13fSmXByk/caml-builder.html" title="CAML Builder" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2009/07/caml-builder.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cCQX45eyp7ImA9WxNWFE4.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-667189354226733418</id><published>2009-06-14T14:24:00.001+01:00</published><updated>2009-10-13T11:51:00.023+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T11:51:00.023+01:00</app:edited><title>Hide New / Actions / Upload / Settings menus in SharePoint Lists / document libraries</title><content type="html">One possible way to hide the New / Actions / Upload / Settings menus in SharePoint is to register a custom action, and set the ControlClass element to a control that inherits from WebControl. In the WebControl, you can override OnPreRender, which then does this (for example):&lt;br /&gt;&lt;br /&gt;  &lt;CustomAction&lt;br /&gt;      Id="DocumentLibrary.ViewToolbar"&lt;br /&gt;      Location="ViewToolbar"&lt;br /&gt;      RegistrationType="ContentType"&lt;br /&gt;      RegistrationId="0x01"&lt;br /&gt;      ControlAssembly="My.Assembly.Name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9sd9ds9ds9sd9ds"&lt;br /&gt;      ControlClass="My.Assembly.Name.MyClassName"&lt;br /&gt;  /&gt;&lt;br /&gt;&lt;br /&gt;    public class MyClassName: WebControl&lt;br /&gt;    {&lt;br /&gt;        protected override void OnPreRender(EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            if (SPContext.Current.List != null)&lt;br /&gt;            {&lt;br /&gt;&lt;br /&gt;                    foreach (Control control in this.Parent.Controls)&lt;br /&gt;                    {&lt;br /&gt;                        switch (control.ToString())&lt;br /&gt;                        {&lt;br /&gt;                            case "Microsoft.SharePoint.WebControls.NewMenu":&lt;br /&gt;                            case "Microsoft.SharePoint.WebControls.UploadMenu":&lt;br /&gt;                            case "Microsoft.SharePoint.WebControls.ActionsMenu":&lt;br /&gt;                            case "Microsoft.SharePoint.WebControls.SettingsMenu":&lt;br /&gt;                                control.Visible = false;&lt;br /&gt;                                break;&lt;br /&gt;                        }&lt;br /&gt;                    }&lt;br /&gt;                &lt;br /&gt;            }&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-667189354226733418?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/VP_OAyYAQ7Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/667189354226733418/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=667189354226733418" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/667189354226733418?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/667189354226733418?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/VP_OAyYAQ7Q/hide-new-actions-upload-settings-menus.html" title="Hide New / Actions / Upload / Settings menus in SharePoint Lists / document libraries" /><author><name>Zarek Marshall</name><uri>http://www.blogger.com/profile/04727357889923177041</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2009/06/hide-new-actions-upload-settings-menus.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QFRns6fyp7ImA9WxNWFE4.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-1519447399061237540</id><published>2009-05-15T10:21:00.001+01:00</published><updated>2009-10-13T11:55:17.517+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T11:55:17.517+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="application pool" /><category scheme="http://www.blogger.com/atom/ns#" term="deployment" /><category scheme="http://www.blogger.com/atom/ns#" term="iisreset" /><title>Alternative to iisreset on deployment</title><content type="html">&lt;div&gt;Rather than wait till after business hours (if that's even possible) to do an iisreset, you can just recycle the Application Pool instead. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;cscript c:\windows\system32\iisapp.vbs /a "[NameOfAppPool]" /r&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-1519447399061237540?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/7R9yIpZtkpk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/1519447399061237540/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=1519447399061237540" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/1519447399061237540?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/1519447399061237540?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/7R9yIpZtkpk/alternative-to-iisreset-on-deployment.html" title="Alternative to iisreset on deployment" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2009/05/alternative-to-iisreset-on-deployment.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MMQ3g9eCp7ImA9WxRWFEs.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-5027444710739267065</id><published>2008-10-31T16:06:00.002Z</published><updated>2008-10-31T16:11:22.660Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-31T16:11:22.660Z</app:edited><title>Central Administration Regional Settings</title><content type="html">There is no link to the Regional Settings page in WSS 3.0 Central Administration, however the functionality is there if you navigate to .../_layouts/regionalsetng.aspx.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-5027444710739267065?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/OMIoSSMgAPs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/5027444710739267065/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=5027444710739267065" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/5027444710739267065?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/5027444710739267065?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/OMIoSSMgAPs/central-administration-regional.html" title="Central Administration Regional Settings" /><author><name>Zarek Marshall</name><uri>http://www.blogger.com/profile/04727357889923177041</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/10/central-administration-regional.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQCQnc5fSp7ImA9WxRREUo.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-4295027257981462824</id><published>2008-09-23T14:20:00.002+01:00</published><updated>2008-09-23T14:26:03.925+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-23T14:26:03.925+01:00</app:edited><title>Discovering farm incoming email settings using the SharePoint API</title><content type="html">The farm incoming email settings, that can be viewed and changed in SharePoint central administration, can be discovered using the SharePoint API using the following technique (for example):&lt;br /&gt;&lt;br /&gt;SPIncomingEmailService emailService = (SPIncomingEmailService)SPFarm.Local.Farm.GetChild&lt;SPIncomingEmailService&gt;();&lt;br /&gt;&lt;br /&gt;And the server email display address can be found like this:&lt;br /&gt;&lt;br /&gt;emailService.ServerDisplayAddress&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-4295027257981462824?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/_j3QVU8kr5s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/4295027257981462824/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=4295027257981462824" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/4295027257981462824?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/4295027257981462824?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/_j3QVU8kr5s/discovering-farm-incoming-email.html" title="Discovering farm incoming email settings using the SharePoint API" /><author><name>Zarek Marshall</name><uri>http://www.blogger.com/profile/04727357889923177041</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/09/discovering-farm-incoming-email.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYCQ3Y9eSp7ImA9WxRSGEw.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-7585848111770451244</id><published>2008-09-19T10:48:00.002+01:00</published><updated>2008-09-19T10:56:02.861+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-19T10:56:02.861+01:00</app:edited><title>Debugging EmailReceived list event</title><content type="html">I encountered an issue when trying to debug the EmailReceived event for an email enabled list (document library) in SharePoint. Note: To debug the EmailReceived event handler you need to debug the OWSTIMER service, not W3WP.&lt;br /&gt;&lt;br /&gt;I deployed the feature using Visual Studio (SharePoint Extensions) and debugging worked fine. However, when I then updated the code, and redeployed, next time I came to debug it was still running the old version of the EmailReceived event handler.&lt;br /&gt;&lt;br /&gt;It turns out that the OWSTIMER service needs to be restarted if any updates are made to the EmailReceived event handler code in order for the changes to come into effect!&lt;br /&gt;&lt;br /&gt;Credit to this post for the answer:&lt;br /&gt;http://dkeeling.spaces.live.com/blog/cns!1FF0B17B869C973!159.entry&lt;br /&gt;&lt;br /&gt;More to follow hopefully on creating an EmailReceived event handler for a custom list definition (you can't enable email for a list based on a custom list definition out the box, you need to create the event handler yourself).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-7585848111770451244?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/vy3HYfVLBOg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/7585848111770451244/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=7585848111770451244" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/7585848111770451244?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/7585848111770451244?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/vy3HYfVLBOg/debugging-emailreceived-list-event.html" title="Debugging EmailReceived list event" /><author><name>Zarek Marshall</name><uri>http://www.blogger.com/profile/04727357889923177041</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/09/debugging-emailreceived-list-event.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEEDRHk_eyp7ImA9WxRTEE8.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-7598929844453719470</id><published>2008-08-29T15:54:00.002+01:00</published><updated>2008-08-29T16:11:15.743+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-29T16:11:15.743+01:00</app:edited><title>QuickLaunch navigation query string issues in WSS</title><content type="html">If you want to add a new navigation node to the quick launch, and you want the url for that node to include query string parameters then you *must* set the IsExternal property of the SPNavigation node to true. If you don't do this, then the query string portion of the url is removed automatically.&lt;br /&gt;&lt;br /&gt;Unfortunately, setting IsExternal to true means that:&lt;br /&gt;&lt;br /&gt;1) Url fix up (based on MSDN documentation) is not performed (since IsExternal is true)&lt;br /&gt;&lt;br /&gt;2) Security trimming is not applied to the url since it is specified as external. If the user does not have access to the url, then they receive an “Access Denied” screen when they click on the link instead of not seeing the link at all.&lt;br /&gt;&lt;br /&gt;Credit to the post by Pete Skelly here:&lt;br /&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.navigation.spnavigationnode.properties.aspx&lt;br /&gt;&lt;br /&gt;Note, if you are using MOSS then the following might help you:&lt;br /&gt;http://www.sharepointblogs.com/koning53/archive/2007/11/26/adding-querystring-parameters-to-a-spnavigationnode.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-7598929844453719470?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/PCU7TTqY7VY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/7598929844453719470/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=7598929844453719470" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/7598929844453719470?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/7598929844453719470?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/PCU7TTqY7VY/quicklaunch-navigation-query-string.html" title="QuickLaunch navigation query string issues in WSS" /><author><name>Zarek Marshall</name><uri>http://www.blogger.com/profile/04727357889923177041</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/08/quicklaunch-navigation-query-string.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8MSHY5eyp7ImA9WxdaF0g.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-2624602348324857371</id><published>2008-08-26T14:19:00.002+01:00</published><updated>2008-08-26T14:21:29.823+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T14:21:29.823+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="types" /><category scheme="http://www.blogger.com/atom/ns#" term="columns" /><category scheme="http://www.blogger.com/atom/ns#" term="workflow" /><category scheme="http://www.blogger.com/atom/ns#" term="field" /><title>Useful page for making new columns</title><content type="html">This page is great when you're making up new content types and columns for use in Workflows.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms437580.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms437580.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-2624602348324857371?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/6-X_phCrlGs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/2624602348324857371/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=2624602348324857371" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2624602348324857371?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2624602348324857371?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/6-X_phCrlGs/useful-page-for-making-new-columns.html" title="Useful page for making new columns" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/08/useful-page-for-making-new-columns.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcDSXkzeyp7ImA9WxdaF0k.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-2899229606890740571</id><published>2008-08-26T10:08:00.005+01:00</published><updated>2008-08-26T10:14:38.783+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T10:14:38.783+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Getting SPListItem from Workflow Task" /><title>Getting the item which a workflow task relates to</title><content type="html">I had a task edit page in my workflow where I needed to get some values from the item on which I had originally run the workflow initially. To get this object out, you can do the following&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;object associatedWorkflowListId = workflowTaskListItem ["ows_WorkflowListId"]; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;object associatedWorkflowItemId = workflowTaskListItem ["ows_WorkflowItemId"]; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;if (associatedWorkflowItemId != null &amp;amp;&amp;amp; associatedWorkflowListId != null) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;     SPListItem associatedItem = web.Lists.GetList(new Guid(associatedWorkflowListId .ToString()), false).GetItemById(int.Parse(associatedWorkflowItemId .ToString())); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-2899229606890740571?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/TprRGd2cR_8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/2899229606890740571/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=2899229606890740571" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2899229606890740571?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2899229606890740571?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/TprRGd2cR_8/getting-item-which-workflow-task.html" title="Getting the item which a workflow task relates to" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/08/getting-item-which-workflow-task.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IEQnc-fSp7ImA9WxdUFUU.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-7411333640997650669</id><published>2008-08-01T10:00:00.003+01:00</published><updated>2008-08-01T10:05:03.955+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-01T10:05:03.955+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Designer" /><category scheme="http://www.blogger.com/atom/ns#" term="Web Part Maintenance Page" /><title>Web Part Maintenance Page</title><content type="html">I had an issue where I was trying to open an aspx file inside SP Designer but it refused. There wasn't anything in the page itself that should have caused this.&lt;br /&gt;&lt;br /&gt;It said in the response to check the Web Part Maintenance Page and in order to find this, there is a shortcut from any page on a SharePoint site.&lt;br /&gt;&lt;br /&gt;Simply add "&lt;em&gt;&lt;span style="font-family:courier new;"&gt;contents=1&lt;/span&gt;" &lt;/em&gt;in the querystring and it will come up. Turns out I had a bunch of webparts which had failed in the past and these were blocking Designer. Removing them worked.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-7411333640997650669?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/AVZDxqfCNMo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/7411333640997650669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=7411333640997650669" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/7411333640997650669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/7411333640997650669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/AVZDxqfCNMo/web-part-maintenance-page.html" title="Web Part Maintenance Page" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/08/web-part-maintenance-page.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4NQX05eyp7ImA9WxdVEUU.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-6010189896883779912</id><published>2008-07-16T07:12:00.004+01:00</published><updated>2008-07-16T07:16:30.323+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-16T07:16:30.323+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Filter" /><category scheme="http://www.blogger.com/atom/ns#" term="Document Library" /><category scheme="http://www.blogger.com/atom/ns#" term="Querystring" /><category scheme="http://www.blogger.com/atom/ns#" term="field" /><title>Filtering by querystring in a document library (or list)</title><content type="html">If you need to filter a document library or list to show only list items which match a certain criteria specified in the querystring, add 1 or more attributes to your querystring which look like the following:&lt;br /&gt;&lt;br /&gt;Forms/AllItems.aspx?FilterField1=CompanyName&amp;amp;FilterValue1=Electrum&lt;br /&gt;&lt;br /&gt;Note, your field name needs to be the internal name which Sharepoint stores. You can find what this is exactly by editing the field in the Document Library settings and checking what it says in the querystring.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-6010189896883779912?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/9l-fBXNwZac" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/6010189896883779912/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=6010189896883779912" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6010189896883779912?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6010189896883779912?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/9l-fBXNwZac/filtering-by-querystring-in-document.html" title="Filtering by querystring in a document library (or list)" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/07/filtering-by-querystring-in-document.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUCQXc5eip7ImA9WxdVEUw.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-1406219015342560385</id><published>2008-07-15T11:00:00.003+01:00</published><updated>2008-07-15T11:04:20.922+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-15T11:04:20.922+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Where" /><category scheme="http://www.blogger.com/atom/ns#" term="SPQuery" /><category scheme="http://www.blogger.com/atom/ns#" term="not working" /><title>SPQuery returning all items in a list?</title><content type="html">If you're using SPQuery to get out certain elements of a list/document library, starting the .query property with a &lt;query&gt; tag will give you back everything regardless of what your where clause is. Make sure your .query property starts with &lt;where&gt; and it should work then&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-1406219015342560385?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/o206CmfoT7M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/1406219015342560385/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=1406219015342560385" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/1406219015342560385?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/1406219015342560385?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/o206CmfoT7M/spquery-returning-all-items-in-list.html" title="SPQuery returning all items in a list?" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/07/spquery-returning-all-items-in-list.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8GRn47cSp7ImA9WxdXGU8.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-2264643621297748494</id><published>2008-07-01T16:00:00.002+01:00</published><updated>2008-07-01T16:07:07.009+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-01T16:07:07.009+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="site template" /><category scheme="http://www.blogger.com/atom/ns#" term="Failure decompressing data from a cabinet file" /><category scheme="http://www.blogger.com/atom/ns#" term="stsadm" /><title>"Failure decompressing data from a cabinet file" when saving site as a template</title><content type="html">If you try saving a site as a template through the SharePoint UI, you might see the error&lt;br /&gt;&lt;br /&gt;Failure decompressing data from a cabinet file  &lt;br /&gt;You can get round this by using the stsadm tool.&lt;br /&gt;&lt;br /&gt;To export,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stsadm.exe -o export -url &lt;/span&gt;&lt;a href="http://yoursite/test"&gt;&lt;span style="font-family:courier new;"&gt;http://yoursite/test&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:courier new;"&gt; -includeusersecurity -nofilecompression -filename c:\backup.bak&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To import,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stsadm.exe -o import -url &lt;/span&gt;&lt;a href="http://yoursite/test2"&gt;&lt;span style="font-family:courier new;"&gt;http://yoursite/test2&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:courier new;"&gt; -includeusersecurity -nofilecompression -filename c:\backup.bak&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-2264643621297748494?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/Q3wFlP-ymOw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/2264643621297748494/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=2264643621297748494" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2264643621297748494?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2264643621297748494?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/Q3wFlP-ymOw/failure-decompressing-data-from-cabinet.html" title="&quot;Failure decompressing data from a cabinet file&quot; when saving site as a template" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/07/failure-decompressing-data-from-cabinet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08MSXc5fip7ImA9WxdXFUo.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-2999653104364928315</id><published>2008-06-27T15:08:00.004+01:00</published><updated>2008-06-27T15:11:28.926+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-27T15:11:28.926+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="search service" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint" /><category scheme="http://www.blogger.com/atom/ns#" term="search" /><category scheme="http://www.blogger.com/atom/ns#" term="SPSearch" /><title>Error on starting Sharepoint Search service</title><content type="html">When you try starting the Sharepoint search service through the Central Administration section, you might get an error which says&lt;br /&gt;&lt;br /&gt;SPSearch (&lt;username&gt;)&lt;br /&gt;&lt;br /&gt;Highly useful error message as always! Typically the cause of this is that you've put in a username in the previous page but not qualified it by giving the domain also. Go back and put in the domain of the server then the username and your service should start ok then.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-2999653104364928315?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/4VCqML2Ofkk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/2999653104364928315/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=2999653104364928315" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2999653104364928315?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2999653104364928315?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/4VCqML2Ofkk/error-on-starting-sharepoint-search.html" title="Error on starting Sharepoint Search service" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/error-on-starting-sharepoint-search.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEIGQn84fyp7ImA9WxdXFUo.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-6760535368817290484</id><published>2008-06-27T14:04:00.003+01:00</published><updated>2008-06-27T14:15:23.137+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-27T14:15:23.137+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="left click" /><category scheme="http://www.blogger.com/atom/ns#" term="word" /><category scheme="http://www.blogger.com/atom/ns#" term="core.js" /><category scheme="http://www.blogger.com/atom/ns#" term="office" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint" /><category scheme="http://www.blogger.com/atom/ns#" term="doc" /><title>HttpHandler on Document Library documents</title><content type="html">If you need to intercept a document on the way to the user, create an HttpHandler for the file types you are interested in (.doc and .pdf in our case). Our handler takes the user off to a new aspx page which gives more information about the document in question.&lt;br /&gt;&lt;br /&gt;We found that in Firefox, this worked fine, the user was always taken to the new page whether they click on a PDF or a doc. In Internet Explorer however, the page would appear when clicking on the PDF but for the Word doc, the page would only appear if the user right-clicked and chose open / open in new tab / open in new window. Left-clicking on the Word doc gave a prompt like the following asking if you were sure you wanted to open it.&lt;br /&gt;&lt;br /&gt;"Some files can harm your computer. If the file information looks suspicious or you do not fully trust the source, do not open the file.&lt;br /&gt;You are opening the following file:"&lt;br /&gt;&lt;br /&gt;Clicking OK to this prompt opened up Word and inside was the contents of the aspx page which you should have seen in the browser.&lt;br /&gt;&lt;br /&gt;Turns out there is some client integration javascript in the onclick event of the filename in Sharepoint and so you need to override this (&lt;a href="http://electrum-on-sharepoint.blogspot.com/2008/06/hide-send-to-option-for-documents.html"&gt;how to override functions in core.js&lt;/a&gt;) so that it tries to load the document in a normal fashion instead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-6760535368817290484?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/qW-u_JC8Muk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/6760535368817290484/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=6760535368817290484" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6760535368817290484?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/6760535368817290484?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/qW-u_JC8Muk/httphandler-on-document-library.html" title="HttpHandler on Document Library documents" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/httphandler-on-document-library.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QMRHk6fyp7ImA9WxdXGE0.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-2096889623455431629</id><published>2008-06-27T13:55:00.009+01:00</published><updated>2008-06-30T08:03:05.717+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-30T08:03:05.717+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="core.js" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint" /><category scheme="http://www.blogger.com/atom/ns#" term="&quot;Download a Copy&quot;" /><category scheme="http://www.blogger.com/atom/ns#" term="hide" /><category scheme="http://www.blogger.com/atom/ns#" term="DHTML" /><category scheme="http://www.blogger.com/atom/ns#" term="menu" /><category scheme="http://www.blogger.com/atom/ns#" term="&quot;Send To&quot;" /><title>Hide the "Send To" option for documents</title><content type="html">If you want to hide any DHTML menus which appear within Sharepoint, you'll notice that they are usually found in core.js. Obviously you don't want to start tampering with core.js since you're affecting every Sharepoint instance and so we need to override the function by declaring a local one instead.&lt;br /&gt;&lt;br /&gt;To hide the "Send To" menu, make a script section in your masterpage and insert the same function name and params as in core.js but delete the contents.&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;function AddSendSubMenu(m,ctx) { }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;There's one more step though before this will work and that is to change the way the core.js script is loaded. In your master page, you'll notice the line&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;sharepoint:scriptlink language="javascript" name="core.js" defer="True" runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;The defer attribute means that it is loaded last and so your new declaration is overridden by the core.js one. Simply change the defer="true" to defer="false" or remove the defer attribute altogether.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-2096889623455431629?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/kq1QRJ-Cps4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/2096889623455431629/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=2096889623455431629" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2096889623455431629?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/2096889623455431629?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/kq1QRJ-Cps4/hide-send-to-option-for-documents.html" title="Hide the &quot;Send To&quot; option for documents" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/hide-send-to-option-for-documents.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIGRX09fip7ImA9WxdXFU0.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-954183797784372809</id><published>2008-06-25T08:53:00.004+01:00</published><updated>2008-06-26T19:05:24.366+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-26T19:05:24.366+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Response.End" /><category scheme="http://www.blogger.com/atom/ns#" term="Response" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint" /><category scheme="http://www.blogger.com/atom/ns#" term="events" /><category scheme="http://www.blogger.com/atom/ns#" term="BinaryWrite" /><title>Events stop working after BinaryWrite?</title><content type="html">After doing a Response.BinaryWrite() then Response.End(), all events on my page stopped working meaning that if I cancelled the download and then clicked again on the download link, nothing happened.&lt;br /&gt;&lt;br /&gt;Found the answer courtesy of Andy Spears from &lt;a href="https://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.sharepoint.development_and_programming&amp;amp;tid=cc356848-b0d8-4a60-8176-6df1bd44eb55&amp;amp;cat=%E2%8C%A9=&amp;amp;cr=&amp;amp;sloc=&amp;amp;p=1"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1) Set your button's client-side click event to: "exportRequested=true;"&lt;br /&gt;2) register the following JS:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;string beforeSubmitJS = "\nvar exportRequested = false; \n";&lt;br /&gt;beforeSubmitJS += "var beforeFormSubmitFunction = theForm.onsubmit;\n";&lt;br /&gt;beforeSubmitJS += "theForm.onsubmit = function(){ \n";&lt;br /&gt;beforeSubmitJS += "var returnVal = beforeFormSubmitFunction(); \n";&lt;br /&gt;beforeSubmitJS += "if(exportRequested &amp;amp;&amp;amp; returnVal) {_spFormOnSubmitCalled=false; exportRequested=false;} \n";&lt;br /&gt;beforeSubmitJS += "return returnVal; \n";&lt;br /&gt;beforeSubmitJS += "}; \n";&lt;br /&gt;this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alterFormSubmitEvent", beforeSubmitJS, true); &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-954183797784372809?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/rLMKDr0EdWA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/954183797784372809/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=954183797784372809" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/954183797784372809?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/954183797784372809?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/rLMKDr0EdWA/events-stop-working-after-binarywrite.html" title="Events stop working after BinaryWrite?" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/events-stop-working-after-binarywrite.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIARn45eCp7ImA9WxdXE0w.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-1816684069430717909</id><published>2008-06-24T13:22:00.004+01:00</published><updated>2008-06-24T13:29:07.020+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-24T13:29:07.020+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SPUser" /><category scheme="http://www.blogger.com/atom/ns#" term="list" /><category scheme="http://www.blogger.com/atom/ns#" term="field" /><title>Getting an SPUser from an SPList</title><content type="html">&lt;p&gt;If you need to get out an SPUser from a list in code-behind, you can do the following &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;SPUser test = GetSPUser(oListItem, oList.Fields.GetField("Your Person Fieldname"));&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;private SPUser GetSPUser(SPListItem item, SPField field)&lt;br /&gt;{&lt;br /&gt;string currentValue = item[field.Title].ToString();&lt;br /&gt;SPFieldUser userField = (SPFieldUser)field;&lt;br /&gt;SPFieldUserValue fieldValue = (SPFieldUserValue)userField.GetFieldValue(currentValue);&lt;br /&gt;return fieldValue.User;&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:78%;"&gt;(adapted from &lt;/span&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3118673&amp;amp;SiteID=1"&gt;&lt;span style="font-size:78%;"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3118673&amp;amp;SiteID=1&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-1816684069430717909?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/1veV9XjywhU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/1816684069430717909/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=1816684069430717909" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/1816684069430717909?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/1816684069430717909?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/1veV9XjywhU/getting-spuser-from-splist.html" title="Getting an SPUser from an SPList" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/getting-spuser-from-splist.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04FSXk7fSp7ImA9WxdXFUo.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-3374438732213819343</id><published>2008-06-24T11:39:00.005+01:00</published><updated>2008-06-27T15:11:58.705+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-27T15:11:58.705+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IIS" /><category scheme="http://www.blogger.com/atom/ns#" term="&quot;Service Unavailable&quot;" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint" /><title>Service Unavailable</title><content type="html">Occasionally a deployment from VS 2005 or through the setup.bat will leave the your Sharepoint server in a state such that when you browse to the site, the message "Service Unavailable" is shown.&lt;br /&gt;&lt;br /&gt;Check the Application Pools in IIS and make sure that the Application Pool used for the application you are trying to access is started.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-3374438732213819343?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/_ULZynbcoYQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/3374438732213819343/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=3374438732213819343" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/3374438732213819343?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/3374438732213819343?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/_ULZynbcoYQ/service-unavailable.html" title="Service Unavailable" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/service-unavailable.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04AQns6eyp7ImA9WxdXFUo.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-75927560347178049</id><published>2008-06-12T09:26:00.006+01:00</published><updated>2008-06-27T15:12:23.513+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-27T15:12:23.513+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="custom" /><category scheme="http://www.blogger.com/atom/ns#" term="invalid" /><category scheme="http://www.blogger.com/atom/ns#" term="template" /><category scheme="http://www.blogger.com/atom/ns#" term="definition" /><category scheme="http://www.blogger.com/atom/ns#" term="site" /><title>The template you have chosen is invalid or cannot be found</title><content type="html">If you are experiencing a "The template you have chosen is invalid or cannot be found" error when trying to create a site from a site definition, for example, then the first thing to check is that you have used a unique ID in the webtemp*.xml file. The value in Bold is the value in question:&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;Template Name="My Custom Site Definition" ID="&lt;strong&gt;10000&lt;/strong&gt;"&amp;gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Changing the value in bold above to something unique fixes the problem:&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;Template Name="My Custom Site Definition" ID="&lt;strong&gt;10100&lt;/strong&gt;"&amp;gt;&lt;br /&gt;...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-75927560347178049?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/VNpSl0zYc68" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/75927560347178049/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=75927560347178049" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/75927560347178049?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/75927560347178049?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/VNpSl0zYc68/template-you-have-chosen-is-invalid-or.html" title="The template you have chosen is invalid or cannot be found" /><author><name>Zarek Marshall</name><uri>http://www.blogger.com/profile/04727357889923177041</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/template-you-have-chosen-is-invalid-or.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04HQH44fCp7ImA9WxdQEUo.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-8313397585525253185</id><published>2008-06-11T09:04:00.003+01:00</published><updated>2008-06-11T09:12:11.034+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-11T09:12:11.034+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SPFieldChoice" /><category scheme="http://www.blogger.com/atom/ns#" term="ControlMode" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint" /><category scheme="http://www.blogger.com/atom/ns#" term="SPField" /><title>Displaying choices for a Sharepoint field in a dropdown</title><content type="html">If you need to display all the possible options for a choice field in a dropdown but can't use the bind the Sharepoint control with ControlMode, you can get the list of choices using the SPFieldChoice object and populate it yourself. In the example below, oList is an instance of an SPList which I've retrieved by executing as an elevated user since the user using this form does not have access to the list.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SPField oField = oList.Fields["Country"];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SPFieldChoice oFieldChoices = (SPFieldChoices)oField;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// iterate over each choice&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;foreach (string choice in oFieldChoices.Choices)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    countryDropDown.Items.Add(new ListItem(choice, choice));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-8313397585525253185?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/CRuFVD9oe9w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/8313397585525253185/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=8313397585525253185" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/8313397585525253185?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/8313397585525253185?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/CRuFVD9oe9w/displaying-choices-for-sharepoint-field.html" title="Displaying choices for a Sharepoint field in a dropdown" /><author><name>Graeme Turner</name><uri>http://www.blogger.com/profile/08743306338823987222</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/displaying-choices-for-sharepoint-field.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUDQn4-eyp7ImA9WxRaEE0.&quot;"><id>tag:blogger.com,1999:blog-4298873870186398690.post-5474609151708226611</id><published>2008-06-10T08:22:00.002+01:00</published><updated>2008-12-11T13:47:53.053Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-11T13:47:53.053Z</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Worflow" /><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Designer" /><title>Setting Hyperlink Column Text from Workflows</title><content type="html">SharePoint provides a nice little editor which lets you set both the link (url) and the description text for hyperlink columns:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_5uZQQ1QGPEk/SE4s-djgWvI/AAAAAAAAAAU/y6JXYjvhGRI/s1600-h/hyperlink.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210151270511303410" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_5uZQQ1QGPEk/SE4s-djgWvI/AAAAAAAAAAU/y6JXYjvhGRI/s400/hyperlink.png" border="0" /&gt;&lt;/a&gt;But it's not obvious how you set both of these from a SharePoint Designer (SPD) workflow.&lt;br /&gt;&lt;br /&gt;Both the url and description are actually stored together as a single string, separated by a comma. So to set both, use the Build Dynamic String action to construct something like "&lt;strong&gt;http://www.electrum.co.uk/, Electrum Rock!&lt;/strong&gt;" and then use it to set the list item's hyperlink column value.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_5uZQQ1QGPEk/SE4s2djgWuI/AAAAAAAAAAM/-FW6n815pNw/s1600-h/hyperlink.png"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4298873870186398690-5474609151708226611?l=electrum-on-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ElectrumOnSharepoint/~4/YLKUFTul-wc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://electrum-on-sharepoint.blogspot.com/feeds/5474609151708226611/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4298873870186398690&amp;postID=5474609151708226611" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/5474609151708226611?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4298873870186398690/posts/default/5474609151708226611?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ElectrumOnSharepoint/~3/YLKUFTul-wc/setting-hyperlink-column-text-from.html" title="Setting Hyperlink Column Text from Workflows" /><author><name>Ross McNab</name><uri>http://www.blogger.com/profile/03148528909701971522</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_5uZQQ1QGPEk/SE4s-djgWvI/AAAAAAAAAAU/y6JXYjvhGRI/s72-c/hyperlink.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://electrum-on-sharepoint.blogspot.com/2008/06/setting-hyperlink-column-text-from.html</feedburner:origLink></entry></feed>

