Skip to content

HTTP 404 error when when naming SharePoint objects as CON, PRN, AUX, NUL, LPTx, COMx

June 8, 2011

When creating SharePoint sites, list, libraries there are some naming conventions that must be followed. Besides the illegal characters that are quite evident there are some other rules.
You should not name your site, list, doclib as:

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9

Actually if you do then the site/list/doclib will be created and when you open it you get this error:

Server Error in ‘/’ Application.
——————————————————————————–
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /CON

On MSDN I was unable to find the exact documentation which states the precise naming limitations under SharePoint. I guess this article is something that worth looking at.

I wonder how difficult would have been for Microsoft to add 3 lines of JavaScript code to warn if you want to use illegal names…

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: