Sometimes when you want to edit an aspx file ( for example a page layout ) within “_catalogs/masterpage” directory you may encounter this error :
The Master Page file “….” cannot be loaded .
I found that this masterpage is not published ! So after I checked it in and published the master page , I counld checked out and edit aspx files without any problem .