SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having an issue. I want to make a quick change to an aspx file that I recently deployed to a sharepoint server. Due to some circumstances, it is not worth the time to edit and recompile the project and redeploy.

The issue is that, i edit the aspx file in the templates\feature\mpcalendar folder (where mpcalendar is my project). the file name is mpcalendar.aspx

the aspx file has some javascript lines which i want to comment out.

i tried editing the file, but the sharepoint is not showing the changes. the file is edited and saved, but the sharepoint is loading the old file. if i just retract the solution, the files from that folder are gone and redeploy, the files appear again.

if i try to edit again after the deploy, it still does not reflect the change.

is it being cached somewhere? i could not find any other instance of this file "mpcalendar.asp" in the whole drive except here.. (templates\feature\mpcalendar\mpcalendar.aspx"

please help figure this out.

share|improve this question

migrated from Feb 1 '12 at 13:52

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

This can happen if the file is Unghosted. What does your Elements.xml file look? If you don't set the Type attribute (in the <File> element) to Ghostable or GhostableInLibrary, the file will be Unghosted and therefore stored in the database and not at in the file system.

You can read more about Ghosting and Unghosting here:

share|improve this answer

have you tried performing an iisreset?

Start - cmd - iisreset

share|improve this answer

SharePoint does not read from templates\feature folder at runtime.
Find out which document library the file is being uploaded to during feature activation. You can get this from the Module element in the elements.xml file.
Then download the file from that document library, edit it and upload it again replacing the original with new version.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.