Exception: Absolute path information is required

Exception: Absolute path information is required

  • Comments 2

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();

            }

        }

    }

}

Comments
  • 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

  • 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

Page 1 of 1 (2 items)
Leave a Comment
  • Please add 2 and 8 and type the answer here:
  • Post