How to fix Cannot run Windows SharePoint Services on this page?

By Namwar Rizvi - Last updated: Tuesday, February 3, 2009 - Save & Share - 10 Comments

If you are getting “Cannot run Windows SharePoint Services on this page…” error while trying to upload multiple files in Sharepoint and you are banging your head against the wall then don’t worry you are not alone ­čÖé It is the shared pain by many of us facing the legacy errors of FrontPage Server extensions in Sharepoint. This error occurs if you modify Upload.aspx┬álocated in layouts folder. First and foremost, do not modify the standard upload.aspx or any other standard file in Sharepoint as it is not supported by Microsoft and your change will be overwritten by any new service pack or hot fix.

So having said that, if you have made a copy of upload.aspx, customized it and trying to use it then you may certainly face this error. Following is the solution to fix it:

  1. Open your copy of upload.aspx and search for 
    <input TYPE="hidden" NAME="_charset_" VALUE="utf-8"><!--webbot bot="FileUpload" endspan i-checksum="45034" -->
  2. Update the following string as follows
    <input TYPE="hidden" NAME="Cmd" VALUE="Save"><!--webbot bot="FileUpload" endspan  -->
  3. Save your file.
  4. Reset IIS
  5. Try to use the file in Sharepoint and Bingo!!!! no more error :):):)
Posted in Uncategorized • Tags: , , , , Top Of Page

10 Responses to “How to fix Cannot run Windows SharePoint Services on this page?”

Comment from Selva
Time April 28, 2009 at 5:05 am

Thanx. Its working..

Pingback from Error When Uploading Multiple Files « SNR Sharepoint Blog
Time May 3, 2009 at 12:53 pm

[…] source of this post was from Namwar Rizvi’s Sharepoint Blog . Many thanks to him for providing me this […]

Comment from Fawzy
Time June 10, 2009 at 12:39 pm

I could not find the line

I opened two upload.aspx file from two diffrent env. but i could not find this lines.

please advise.

thanks for your help


Comment from praveen kumar
Time October 16, 2009 at 7:23 am

Hi, Thanks for solutions Its working fine

Comment from Deepak
Time January 25, 2010 at 2:05 pm

Hi, Thanks for solutions Its working fine

thanks for your help!!!!!!!!!!!!!!!

Comment from Roberto
Time February 9, 2010 at 2:49 pm

I couldn’t find the line in the upload.aspx file either. The upload.aspx file I am talking about is located in the 12-Hive folder..Template\Layouts\

What does this imply?? That if this line is not being found it means the upload.aspx file is customed or does this imply the wront upload.aspx file?

Some intelligence is needed please..

Comment from namwar
Time February 9, 2010 at 3:24 pm

Hi Roberto,
IMHO It implies that your Upload.aspx has been customized.

Comment from Viper
Time June 11, 2010 at 7:23 pm

This did not work for me. I tried it a couple of times. After IIS was restarted, I went to the site and got an Unknown Error. Any other suggestions.

Comment from Joe Whitten
Time June 21, 2010 at 8:53 pm

Thanks for this Namwar. Both the dev and production sites got this error at the same time so I had no valid upload.aspx to compare this to. Your post saved me a lot of time.


Comment from Prashant
Time March 13, 2012 at 5:40 am

This is working fine….thanks

Write a comment