{"id":583,"date":"2008-07-01T17:40:37","date_gmt":"2008-07-01T22:40:37","guid":{"rendered":"http:\/\/blogs.devhorizon.com\/reza\/?p=583"},"modified":"2015-02-15T08:31:57","modified_gmt":"2015-02-15T13:31:57","slug":"comsingle-digit-is-a-reserved-word","status":"publish","type":"post","link":"https:\/\/blogs.devhorizon.com\/reza\/2008\/07\/01\/comsingle-digit-is-a-reserved-word\/","title":{"rendered":"com[single digit] is a reserved word"},"content":{"rendered":"<p>In either WSS or MOSS, If you name a site prefixed with the word &#8220;com&#8221; following a single digit &#8211; for example com1,com2&#8230;com9 , SharePoint UI won&#8217;t throw a validation error, but upon browsing to the site , you will get the following nasty errors. Okay , why do I need to call a site prefixed with &#8220;com&#8221;? In our CRM product , we have this notion called &#8220;Communities&#8221;, self-standing collab sites which are derived from within CRM UI. While testing site provisioning code and the underlying site definition and for simplicity , we named the site &#8220;com1&#8221; and observed this behavior.<br \/>\n <strong>Action<\/strong>: Create a site collection or subsite and give it this title and url : com1 or com2 or com3&#8230;&#8230;&#8230;or com0.<br \/>\n <strong>Template<\/strong>: Whatever<br \/>\n <strong>Errors<\/strong>:&#8221;An unexpected error has occurred&#8221; [<a href=\"https:\/\/farm4.static.flickr.com\/3077\/2628532885_f4318c78d6_o.png\">Screenshot<\/a>]<br \/>\n Or<br \/>\n &#8220;The resource cannot be found&#8221; [<a href=\"http:\/\/farm4.static.flickr.com\/3109\/2628532891_c64e434ac7_o.png\">Screenshot<\/a>]<br \/>\n Or<br \/>\n A blank page is shown as default.aspx<\/p>\n<p> While trying com10 , we got &#8220;The page has encountered a critical error&#8221; once [<a href=\"http:\/\/farm4.static.flickr.com\/3166\/2628532893_d84e4f7140_o.png\">Screenshot<\/a>] , but after doing IISRESET we never got that error message again. It was just a <a href=\"http:\/\/farm4.static.flickr.com\/3186\/2628532901_44384ebf88_o.png\">hiccup <\/a>\ud83d\ude42<\/p>\n<p> All the other sites named with com[Double digits] (com01~com09) seem to be working just fine.<\/p>\n<p> <a href=\"http:\/\/www.flickr.com\/photos\/10588849@N00\/2628532907\/\" title=\"TwodigitsAreOkay by bahrez82, on Flickr\"><\/a><\/p>\n<div align=\"center\"><a href=\"http:\/\/www.flickr.com\/photos\/10588849@N00\/2628532907\/\" title=\"TwodigitsAreOkay by bahrez82, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3177\/2628532907_b3045e800c.jpg\" alt=\"TwodigitsAreOkay\" width=\"500\" height=\"324\" \/><\/a><\/div>\n<p>\n It turned out that Com1 through com9 are kind of reserved words , referring to the serial ports. You can\u2019t create a file in the file system called com1 either.<br \/>\n (Thanks to <a href=\"http:\/\/www.toddklindt.com\/blog\/default.aspx\">Todd Klindt<\/a> for pointing me at this one)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In either WSS or MOSS, If you name a site prefixed with the word &#8220;com&#8221; following a single digit &#8211; for example com1,com2&#8230;com9 , SharePoint UI won&#8217;t throw a validation error, but upon browsing to the site , you will get the following nasty errors. Okay , why do I need to call a site [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-583","post","type-post","status-publish","format-standard","hentry","category-moss-2007"],"_links":{"self":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":1,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"predecessor-version":[{"id":1939,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/583\/revisions\/1939"}],"wp:attachment":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}