Monday, October 13, 2008  by Marc Charmois - About Me / Previous Posts / Archives - Home

Resolve Error : The resource cannot be found

I hope this post will be very usefull for anybody who have to use it because I was so happy myself when I discovered this SharePoint trick completely by chance, and it made me save so much time since this day.
You have sometimes this error while developping a SharePoint application :
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Even if you have activated the possibility to see errors and trace in SharePoint (Web application web.config --> callstack="true", customerror="off", debug="true") you won't have a precise indication of what ressource is missing.
So just right click your page and choose "view source".
Bingo! :


Anonymous Chris said...

Nice.. Just what I was looking for.

October 15, 2008 at 8:35 PM  
Anonymous Anonymous said...

Thanks a loooot!

November 24, 2008 at 6:12 PM  
Anonymous Anonymous said...

Thanks!!! That's just what i need.

May 12, 2009 at 6:43 PM  
Blogger yellowlabrat said...

Bless you! I have been beating my head against the wall, and this was such an awesome fix!

June 11, 2009 at 9:40 PM  
Anonymous Anonymous said...

Thanks soooo much! Just spent 4 hours on this problem...

June 22, 2009 at 5:24 PM  
Blogger bparrish said...

Ok, now that I have where the error is, how do I fix it? I am doing an exercise that creates a custom site definition, but says it can't find the master page that I created.

July 22, 2009 at 4:34 PM  
Blogger Marc Charmois said...

Hi bparrish,

the reason why your master page is not found can be:

- You use a feature to install the master page in SharePoint, and the feature does not work, so the entry corresponding to your master page is not present in the Master Pages Gallery of your Site Collection.

- The URL corresponding to your master page in the ONET.xml file is wrong.

You may check the SharePoint Log Files to have more precision about the reason:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS

Hope that helps.


July 22, 2009 at 5:07 PM  
Blogger David Remillard said...

Thank you very much! This was driving me crazy!

September 27, 2009 at 9:37 PM  
Blogger Steve said...


October 1, 2009 at 8:17 PM  
Blogger Shraddha said...


November 20, 2009 at 11:29 AM  
Anonymous Will said...

Thanks a million! I started getting this error as I was developing a solution package with a master page in it.

Though it was on my dev system, I was thinking it would be disasterous if this happened on a production system.

The problem occurred when I tried to upgrade the solution, but it never reinstalled after retracting it. This made the master page disappear and all pages that used the master page started displaying that error.

You are the man! Thanks!

/_layouts/settings.aspx is the place to go to change your master page out to at least get the pages working again....


January 29, 2010 at 11:35 AM  
Anonymous Anonymous said...

You're the best!

February 8, 2010 at 9:00 AM  
Anonymous Anonymous said...


September 21, 2010 at 1:10 AM  
Blogger Marc Charmois said... pleased to read all your comments...



September 21, 2010 at 1:45 AM  
Anonymous Anonymous said...

FANTASTIC!! You saved my afternoon!! :)

February 10, 2011 at 6:04 AM  
Blogger rajat said...

Great work

May 18, 2011 at 12:56 PM  
Anonymous Anonymous said...

Three years later, this article still saves lives! ;)

August 11, 2011 at 6:44 PM  
Anonymous Anonymous said...

nice! Thanks so much, yours was the first result I clicked on, led me right to the answer!

August 24, 2011 at 6:42 PM  
Blogger Yashwanth said...

Thanks a lot. Your approach helped me to troubleshoot the issue.

April 2, 2012 at 7:47 PM  
Anonymous Anonymous said...

Thanks for your post, I did check but the page that it says is missing is my custom master page and it is there, I did delete and copy it back but still the same result

June 14, 2012 at 5:40 PM  
Blogger Marc Charmois said...

one explanation is there is a mistake in the name of your master page or in the path.

How have you referenced it?
Check in this direction...

Good luck...


June 14, 2012 at 5:59 PM  
Anonymous Anonymous said...

actually i m not able to understand the solution to the error. Please provide me the solution.
Also when i am running any web application on my visual studio 2010 m getting this error only.
Please lend me help for the same

August 8, 2012 at 1:53 PM  
Anonymous Anonymous said...

Very helpful... Thank u..

October 9, 2012 at 11:02 AM  
Anonymous Sagir Kazi said...

Very useful trick! Thank you!

October 9, 2013 at 11:07 PM  
Anonymous Mobeen said...

You saved my day. Thanks a lot!

December 6, 2013 at 8:13 AM  
Anonymous Deepthi said...

thanks u saved my day

June 24, 2015 at 12:39 PM  
Blogger Marc Charmois said...

Happy of that Deepthi ! :-)

June 24, 2015 at 12:48 PM  
Anonymous Anonymous said...

God bless your soul!

July 22, 2015 at 3:39 PM  

Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home