SharePoint By Yagya Shree

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

with 2 comments

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 (0x077C)                            0x0334            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 (0x077C)                            0x0334            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 (0x077C)                            0x0334            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 (0x077C)                            0x0334            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 (0x81070587): 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

Advertisements

Written by Yagyashree

August 25, 2009 at 6:01 pm

2 Responses

Subscribe to comments with RSS.

  1. Hey Buddy,
    Keep posting …….. helpful posts

    Pratik

    September 14, 2010 at 7:13 pm

  2. Hey, thanks for the post! This actually helped us solve a similar problem which was a result of an inplace upgrade from 2007 to 2010. We were trying to create site templates from existing sites and then create new ones using those site templates.
    Problem was that upon creating we would see an error in SP2010 much like the one that you have listed here. The problem for us was not that the “Default.aspx” had been renamed, just simply that it was in the 12 hive and not the 14 hive. Not sure if this was because it had existed there from before the upgrade because other site templates had been created previously and SP just wanted to save them to the same location or was simply looking for the default.aspx in the 14 hive because of the upgrade and it just didn’t get recreated/copied in the upgrade.

    At any rate, we simply went and found the file just as you show in this post and copied to the proper location in the 14 hive on all the farm servers and it worked great. We did have to apply the master page, but other than that, it worked great and got us past that error that we were recieving before. Great post!

    Corbinator

    March 23, 2012 at 11:38 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: