I will be speaker at the SharePoint summit 2012 in Quebec city, Canada, April 17th and 18th.

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! :

18 Comments:

Anonymous Chris said...

Nice.. Just what I was looking for.

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

Thanks a loooot!

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

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

May 12, 2009 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 9:40 PM  
Anonymous Anonymous said...

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

June 22, 2009 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 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.

Marc

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

Thank you very much! This was driving me crazy!

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

BINGO INDEED!

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

Excellent!

November 20, 2009 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 11:35 AM  
Anonymous Anonymous said...

You're the best!

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

YOU ARE A LIFE SAVER !!!!!

September 21, 2010 1:10 AM  
Blogger Marc Charmois said...

...so pleased to read all your comments...

Cheers.


Marc

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

FANTASTIC!! You saved my afternoon!! :)

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

Great work

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

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

August 11, 2011 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 6:42 PM  

Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home