YagyaShree’s Free SharePoint Information Blog

Failed to instantiate file “default.aspx” from module “mobile”: Source path “default.aspx” not found.

Posted in Aug 2009 by yagyashree on August 25, 2009

1. Symptom –

 –>You have a SharePoint site called https://yagyashree.contoso.com  in your SharePoint server “SHAREPOINT1″

–>You have deployed a custom template called “Blog” in your SharePoint site and you are using it to create new subsites

–>Whenever you try to create new subsites you get following error on this url https://yagyashree.contoso.com/_layouts/newsbweb.aspx

Failed to instantiate file “default.aspx” from module “mobile”: Source path “default.aspx” not found.

 error

 

 

 

 

–>But the site gets created but it shows following error

Page not found. We’re sorry, the web page you requested could not be located on our server. Please see the possible causes for this error and your available options below.

–>You are able to use all the other out of the box or custom template without any error successfully
2. Cause –

 –>Under the location “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\MobilityRedirect\” the file name “Default.aspx” was renamed to “1default.aspx”

3. Resolution –

 –>You should collect the ULS logs from your server while reproducing the issue
–>You should study the log file and find error message related to “MobilityRedirect”
–>Go to the folder “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\MobilityRedirect\”

–>You should see that the “default.aspx” has been renamed to anything different like “1default.aspx” or not even present
–>Take the backup of the file
–>Renamed it back to “default.aspx”
–>Now try again to create new blog site using “Blog” template and you should be able to  create it successfully
4. More Information –

Error Found in the ULS log

———————————–

08/24/2009 10:18:22.20         w3wp.exe (0×077C)                            0×0334            Windows SharePoint Services               General                                   72j1     High    Failed to instantiate file “default.aspx” from module “mobile”: Source path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\MobilityRedirect\default.aspx” not found.       

08/24/2009 10:18:22.20         w3wp.exe (0×077C)                            0×0334            Windows SharePoint Services               General                                   8kh7    High    Failed to instantiate file “default.aspx” from module “mobile”: Source path “default.aspx” not found.           

08/24/2009 10:18:22.20         w3wp.exe (0×077C)                            0×0334            Windows SharePoint Services               Feature Infrastructure            889y    High    The element of type ‘Module’ for feature ‘MobilityRedirect’ (id: f41cc668-37e5-4743-b4a8-74d1db3fd8a4) threw an exception during activation: Failed to instantiate file “default.aspx” from module “mobile”: Source path “default.aspx” not found.        

08/24/2009 10:18:22.20         w3wp.exe (0×077C)                            0×0334            Windows SharePoint Services               General                                   72by    High     Feature Activation: Threw an exception, attempting to roll back.  Feature ‘MobilityRedirect’ (ID: ‘f41cc668-37e5-4743-b4a8-74d1db3fd8a4′).  Exception: Microsoft.SharePoint.SPException: Failed to instantiate file “default.aspx” from module “mobile”: Source path “default.aspx” not found. —> System.Runtime.InteropServices.COMException (0×81070587): Failed to instantiate file “default.aspx” from module “mobile”: Source path “default.aspx” not found.     at Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(String bstrFeatureDirectory, String bstrUrl, String bstrXML)     at Microsoft.SharePoint.Library.SPRequest.EnableModuleFromXml(String bstrFeatureDirectory, String bstrUrl, String bstrXML)     — End of inner exception stack trace —     at Microsoft.SharePoint.Librar…           

 

5. For your Reference:

Mobile browsers and devices that are supported in Windows SharePoint Services 3.0 and in SharePoint Server 2007

http://support.microsoft.com/kb/930147

Leave a Reply