Monday, July 1, 2013

SharePoint 2010 REST error - Internet Explorer does not support this feed format

I was trying to access List items over REST from the browser and kept getting an IE error-

Internet Explorer does not support this feed format

To resolve this I went into Internet Options under settings in the browser toolbar -->Content --> Feed and Web sites --> Settings and unchecked the Turn on feed reading view. And the solution worked like a charm.


Friday, July 13, 2012

SharePoint 2010 : Naming conventions for files,folders and sites

Sharing some basic information that may take a while to find on the web-

SharePoint 2010 guidelines for Site names, subsite names, or site group names


You cannot use the following characters anywhere in a site name, in a subsite name, or in a site or Active Directory group name:
  • tilde (~)
  • number sign (#)
  • percent (%)
  • ampersand (&)
  • asterisk (*)
  • braces ({ })
  • backslash (\)
  • colon (:)
  • angle brackets (<,>)
  • question mark (?)
  • slash (/)
  • plus sign (+)
  • pipe (||)
  • quotation mark (")
You cannot start a site name, subsite name, or a site group name with an underscore (_) character or with the period character.


You cannot use the period character consecutively in the middle of a site name, a subsite name, or a site group name.


•You cannot use the period character at the end of a site name, a subsite name, or a site group name.

Folder names

You cannot use the following characters anywhere in a folder name or a server name:
  • tilde (~)
  • number sign (#)
  • percent (%)
  • ampersand ("&")
  • asterisk (*) 
  • braces ({ })
  • backslash (\)
  • colon (:)
  • angle brackets "<",">")
  • question mark (?)
  • slash (/)
  • plus sign (+)
  • pipe ("||") 
  • quotation mark (")
 
 
You cannot use the period character consecutively in the middle of a folder name.

•You cannot use the period character at the end of a folder name.

•You cannot start a folder name with the period character.


File names

You cannot use the following characters anywhere in a file name:

  • tilde (~)
  • number sign (#)
  • percent (%)
  • ampersand ("&")
  • asterisk (*)
  • braces ({ })
  • backslash (\)
  • colon (:)
  • angle brackets "<",">")
  • question mark (?)
  • slash (/)
  • plus sign (+)
  • pipe ("||")
  • quotation mark (")

•You cannot use the period character consecutively in the middle of a file name.
•You cannot use the period character at the end of a file name.
•You cannot start a file name with the period character.

In addition, file names and folder names may not end with:

  • .files
  • _files
  • -Dateien
  • _fichiers
  • _bestanden
  • _file
  • _archivos
  • -filer
  • _tiedostot
  • _pliki
  • _soubory
  • _elemei
  • _ficheiros
  • _arquivos
  • _dosyalar
  • _datoteke
  • _fitxers
  • _failid
  • _fails
  • _bylos
  • _fajlovi
  • _fitxategiak
Courtesy :
http://support.microsoft.com/kb/905231

Thursday, March 22, 2012

VisualWebPart error +--- is not allowed here because it does not extend class 'System.Web.UI.UserControl'."}

{"'TestWebPart.Test.TestUserControl' is not allowed here because it does not extend class 'System.Web.UI.UserControl'."}

I got this error when I copy pasted some code from another file and pasted on to an existing web part file.

The reason was that the namespaces were out of sync. Once I fixed that it worked fine ;)

Silly mistake but could take some time to realise
Cheers!

Wednesday, March 7, 2012

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map

.Net Error
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map

I got this error when I was trying to open a .aspx page on my Windows 7 machine. I realized I had installed IIS after .Net Framework. Hence, I had to re register my .NET framework on to IIS.

This is what I did to get rid of the error-
  • I have a 32 bit server so I navigated to the folder where my .Net framework files reside which in my case is -
             C:\Windows\Microsoft.NET\Framework\v4.0.30319

            and copied the path.
  • I opened the command prompt (run cmd from the Start menu)
  • did a cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
         to change directory
  • Ran the command aspnet_regiis -i
which Installs the version of ASP.NET that is associated with Aspnet_regiis.exe and updates the script maps at the IIS metabase root and below.

Only the script maps for applications that use an earlier version of ASP.NET are updated. Applications that use a later version are not affected.
Refer http://msdn.microsoft.com/en-us/library/k6h9cz8h%28VS.80%29.aspx for details
  • And then browsed my page again and voila it worked!
The logic is to use the ASP.NET IIS Registration Tool to register the .NET framework again

If aspnet_regiis -i doesn't do the job also try aspnet_regiis -ir

Merci!!

Tuesday, February 28, 2012

SharePoint 2010 : Get rid of %20 in List Names

Often in my projects I hit the 250 character limit in the URL because of a number of %20 which is the  URL encoding for a space.

One way is to convince my practioners that using an "_" or Camel Casing is the way to go. 

The other common trick that I employ is to Create my List, View, Library with no spaces so then my URL has no %20 and then go and rename the List,View, Library etc. Since the URL doesn't change on renaming I got my URL with lesser characters and my name the way the Business wants it .

Bingo!!

Sunday, February 12, 2012

SharePoint 2010 - Save Site as Template error

I was trying to save my site as Template from the Site Settings page and got an unauthorized exception with a co relation id.
I went to the SharePoint  logs
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
and found the following error on click of save site as template-
w3wp.exe (0x1A14)                           0x0998    SharePoint Foundation             General                           9fjl    Monitorable    SPSolutionExporter: System.UnauthorizedAccessException: Access to the path 'C:\Temp\SPSolutionExporter-5745c17f-255e-465e-81c9-aecb1fbce9b9\Test1ListInstances\Files\FormServerTemplates\Schema.xml' is denied.     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)     at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)     at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)     at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 buffe...    9987739f-cb79-459e-b92a-24342b6591aa


I found a solution on technet and granted the app pool account my web app was running under access to C:\Temp folder. And it worked like a charm!

Cheero!