Microsoft KB Archive/924463

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:32, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


You receive an error message when you try to open a .cs file that you uploaded to a document library or that you attached to a list item in Windows SharePoint Services 3.0

Article ID: 924463

Article Last Modified on 5/14/2007



APPLIES TO

  • Microsoft Windows SharePoint Services 3.0



SYMPTOMS

In Microsoft Windows SharePoint Services 3.0, you upload a .cs file to a document library, or you attach a .cs file to a list item. However, when you click the link to the .cs file, you receive an error message that resembles one of the following:

Path '/DocumentLibraryName/FileName.cs' is forbidden.

Path '/Lists/ListName/Attachments/FileName.cs' is forbidden.

An unexpected error occurred.

CAUSE

Microsoft ASP.NET blocks .cs files. Therefore, even though you can upload a .cs file to a document library or attach a .cs file to a list item in Windows SharePoint Services 3.0, you cannot open the .cs file.

WORKAROUND

To work around this issue, add the .cs file name extension to the list of blocked file types in Windows SharePoint Services 3.0. When you do this, users cannot upload .cs files to a document library or attach .cs files to list items.

To add the .cs file name extension to the list of blocked file types, follow these steps:

  1. Start SharePoint 3.0 Central Administration.
  2. Click Operations, and then click Blocked file types under Security Configuration.
  3. On the Blocked File Types page, click the Web application that you want to configure in the Web Application box.
  4. Type cs in the box that contains the list of blocked file types, and then press ENTER.
  5. Click OK.



Additional query words: wss wssV3 restrict retrieve

Keywords: kbprb kberrmsg kbtshoot kbexpertiseinter KB924463