• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
SharePoint Server TechCenter
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
SharePoint Server TechCenter > SharePoint Products and Technologies Forums > SharePoint - Business Data Catalog > Can't import Application Definition file
Ask a questionAsk a question
Search Forums:
  • Search SharePoint - Business Data Catalog Forum Search SharePoint - Business Data Catalog Forum
  • Search All SharePoint Products and Technologies Forums Search All SharePoint Products and Technologies Forums
  • Search All Microsoft TechNet Forums Search All Microsoft TechNet Forums
 

QuestionCan't import Application Definition file

  • Wednesday, June 04, 2008 9:28 AMAsaf Mesika Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Hi,

     

    I'm trying to import a new version of an Application Definition file, and I get the following cryptic error:

     

    Code Snippet

    Application definition import failed. The following error occurred: Index was outside the bounds of the array. Error was encountered at or just before Line: '2' and Position: '2'.

     

     

    Digging through the Event Log in the Windows 2003 server, I found the following event details:

     

    Code Snippet

    Event Type: Error
    Event Source: Office SharePoint Server
    Event Category: Business Data
    Event ID: 5191
    Date:  6/4/2008
    Time:  11:59:53 AM
    User:  N/A
    Computer: SAP-2003
    Description:
    Runtime Error in method PackageImporter::Import of type System.IndexOutOfRangeException.The exception was System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at System.Array.Clear(Array array, Int32 index, Int32 length)
       at System.Collections.Generic.List`1.Clear()
       at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystemCollection.EnsureLobSystems(String searchLikeName)
       at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystemCollection.GetEnumerator()
       at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystem.PerformVersionCheck(String versionString, String lobSystemName)
       at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystem.ReadXml(XmlReader xmlReader, ParseContext context, PackageContents packageContents)
       at Microsoft.Office.Server.ApplicationRegistry.Administration.ApplicationRegistry.ImportPackage(XmlReader reader, ParseContext context, PackageContents packageContents)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

     

    What have I do to try fixing it?

    I'm minimized my application definition file to a bare minimum:

     

    Code Snippet

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>

    <LobSystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog BDCMetadata.xsd" Type="Database"

    Name="asaf" Version="2"

    xmlns="http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog">

    </LobSystem>

     

     

    This didn't help.

     

    I've deleted my application from sharepoint, but it didn't help either.

    I've erased the application form the Search Content Sources, and reset the search data.

     

    Nothing helps!

     

    The most troubling thing here is that you can' communicate with Microsoft and get support for this bug. This company is big, the chances of finding a fix for this bug, is slim. I wish they'd be more like the open source community. If you find a bug in JBoss, it's easy to search in in their bug-report system (JIRA) and see when they're fixing it and in what version.

     

    Asaf

     

    • ReplyReply
    • QuoteQuote
     

Answers

  • Wednesday, June 04, 2008 10:54 AMAsaf Mesika Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    Unbelievable.

    It was solved with resetting the IIS Server: "iisreset" command.

     

     

     

    • ReplyReply
    • QuoteQuote
     

All Replies

    Need Help with Forums? (FAQ)
     
    © 2009 Microsoft Corporation. All rights reserved.
    Manage Your Profile
    |
    Contact Us
    |
    Newsletter
    |
    Terms of Use
    |
    Trademarks
    |
    Privacy Statement