Sharepoint Insight by Namwar Rizvi

Sharepoint Tips, Tricks and inside knowledge from real world experience by Namwar Rizvi

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

Posted by namwar on February 3, 2009


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 :):):)
Advertisements

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

  1. Selva said

    Hi,
    Thanx. Its working..

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

  3. Fawzy said

    Hi,
    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

    Fawzy

  4. praveen kumar said

    Hi, Thanks for solutions Its working fine

  5. Deepak said

    Hi, Thanks for solutions Its working fine

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

  6. Roberto said

    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..

  7. namwar said

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

  8. Viper said

    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.

  9. 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.

    jw

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: