Welcome to MSDN Blogs Sign in | Join | Help

Exception: Absolute path information is required

If a webapplication with relative path was created and not provisioned, it stops the user from creating any more webapplications; also we can’t delete that webapplication from the central administration site, though we can see the webapplication name and information. Whenever we try to create a site collection on top of that web application or delete that web application we will get the following error.

 “Absolute path information is required”

There are 2 work-arounds available to this issue:-

1.       Recreate the entire farm from scratch, uninstalling MOSS and reinstalling, then creating a new

configuration database. (It won't be feasible solution always)

2.       Use object model code to remove the broken web application from the configuration database.

If you want to delete that webapplication from the configuration DB, the easy and supported way is through SharePoint object model. You can use the following .NET console based application code to delete a half baked webapplication from the configuration DB.

using Microsoft.SharePoint.Administration;

namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            SPWebApplicationCollection oWebCollection = SPWebService.ContentService.WebApplications;

            foreach (SPWebApplication oWeb in oWebCollection)

            {

                if (oWeb.Name == "MySampleWebApplication")

                    oWeb.Delete();

            }

        }

    }

}

Published Wednesday, April 02, 2008 12:01 AM by sowmyancs

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Exception: Absolute path information is required

hi there,

is there that could done to configure the server such that this error would not occur again?

I did my MOSS installation on a single server. I did a farm installation and SQL Server 2007 Enterprise installation.

After which I configure, my sspadmin, mysite and portal site to point to portal 80 using DNS.

Is there anything I missed out?

Thanks

Wednesday, April 02, 2008 5:26 AM by evylim

# re: Exception: Absolute path information is required

The only solution is to disconnect and create a new farm. Then, create new web apps and connect them to your existing content databases. It will be really a messy task.

Thanks,

Sowmyan

Wednesday, April 02, 2008 11:26 AM by sowmyancs

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker