The file or folder name contains characters that are not permitted SharePoint 2013. Removing the invalid characters using Regex C#.


Was getting the below error while uploading attachment to SharePoint document library.


string pattern = "[\\~#%&*{}/:<>?|\"-]";
string replacement = " ";

Regex regEx = new Regex(pattern);

string sanitized = Regex.Replace(regEx.Replace(input, replacement), @"\s+", " ");

Helpful post

http://simplyaprogrammer.com/2008/05/importing-files-into-sharepoint.html

Hope it helps

Missing Windows Authentication Provider in IIS 8 in Windows 8 or Windows 8.1


Was hosting a WCF Service in IIS on my machine.

Realized that Windows Authentication option was missing.

To add it, go to

Control Panel à Program Features à Turn Windows Features On and Off

Enable Windows Authentication.

Hope it helps

Problem with SharePoint 2013 and Internet Explorer 11


Nice tip !

Sharepoint Thing

So if you are one of few that are using IE11 and SharePoint 2013 you have probably noticed many corruptions and misbehaves in UI. So far I have discovered the following problems:

  • Calendar web part is extremely corrupted
  • You will click Settings > Edit Page, Pages will not enter edit mode.
  • Web Part Properties cannot be modified.

So until we get official CU or SP from SharePoint team, run your sites in compatibility mode.

  1. Click Compatibility View Settings in Settings
  2. Click Add to add the current SharePoint site to your list.

View original post