Can't import Application Definition file<p align=left>Hi,</p> <p align=left> </p> <p align=left>I'm trying to import a new version of an Application Definition file, and I get the following cryptic error:</p> <p align=left> </p> <p align=left> <table class=ms-descriptiontext cellspacing=0 cellpadding=0 width="100%"> <tbody> <tr> <td id="ctl00_PlaceHolderMain_statusCell"> <p align=left><span id="ctl00_PlaceHolderMain_StatusDescription"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <table class=ms-descriptiontext cellspacing=0 cellpadding=0 width="100%"> <tbody> <tr> <td id="ctl00_PlaceHolderMain_statusCell"> <p align=left><span id="ctl00_PlaceHolderMain_StatusDescription">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'.</span> </p></td></tr></tbody></table> <p align=left> </p></div></div> <p align=left> </p></span> <p></p></td></tr></tbody></table></p> <p align=left>Digging through the Event Log in the Windows 2003 server, I found the following event details:</p> <p align=left> </p> <p align=left> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p align=left>Event Type: Error<br>Event Source: Office SharePoint Server<br>Event Category: Business Data <br>Event ID: 5191<br>Date:  6/4/2008<br>Time:  11:59:53 AM<br>User:  N/A<br>Computer: SAP-2003<br>Description:<br>Runtime Error in method PackageImporter::Import of type System.IndexOutOfRangeException.The exception was System.IndexOutOfRangeException: Index was outside the bounds of the array.<br>   at System.Array.Clear(Array array, Int32 index, Int32 length)<br>   at System.Collections.Generic.List`1.Clear()<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystemCollection.EnsureLobSystems(String searchLikeName)<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystemCollection.GetEnumerator()<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystem.PerformVersionCheck(String versionString, String lobSystemName)<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystem.ReadXml(XmlReader xmlReader, ParseContext context, PackageContents packageContents)<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.ApplicationRegistry.ImportPackage(XmlReader reader, ParseContext context, PackageContents packageContents)</p> <p align=left>For more information, see Help and Support Center at <a title="http://go.microsoft.com/fwlink/events.asp" href="http://go.microsoft.com/fwlink/events.asp">http://go.microsoft.com/fwlink/events.asp</a>.<br></p> <p align=left> </p></div></div> <p align=left> </p> <p></p> <p align=left></p> <p><strong>What have I do to try fixing it?</strong></p> <p align=left>I'm minimized my application definition file to a bare minimum:</p> <p align=left> </p><font color="#008080" size=2> <p align=left> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div><font color="#008080" size=2> <p align=left>&lt;?</font><font color="#3f7f7f" size=2>xml </font><font color="#7f007f" size=2>version</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;1.0&quot; </font><font color="#7f007f" size=2>encoding</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;utf-8&quot; </font><font color="#7f007f" size=2>standalone</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;yes&quot;</font><font color="#008080" size=2>?&gt;</p> <p align=left>&lt;</font><font color="#3f7f7f" size=2>LobSystem </font><font color="#7f007f" size=2>xmlns:xsi</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;http://www.w3.org/2001/XMLSchema-instance&quot; </p></font><font color="#7f007f" size=2> <p align=left>xsi:schemaLocation</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog BDCMetadata.xsd&quot; </font><font color="#7f007f" size=2>Type</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;Database&quot; </p></font><font color="#7f007f" size=2> <p align=left>Name</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;asaf&quot; </font><font color="#7f007f" size=2>Version</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;2&quot;</p></font><font color="#7f007f" size=2> <p align=left>xmlns</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog&quot;</font><font color="#008080" size=2>&gt;</p></font><font size=2> <p align=left></p></font><font color="#008080" size=2> <p align=left>&lt;/</font><font color="#3f7f7f" size=2>LobSystem</font><font color="#008080" size=2>&gt;</font></p> <p align=left> </p></div></div> <p align=left> </p></font> <p></p><font color="#008080" size=2></font> <p align=left>This didn't help.</p> <p align=left> </p> <p align=left>I've deleted my application from sharepoint, but it didn't help either.</p> <p align=left>I've erased the application form the Search Content Sources, and reset the search data.</p> <p align=left> </p> <p align=left>Nothing helps!</p> <p align=left> </p> <p align=left>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.</p> <p align=left> </p> <p align=left>Asaf</p> <p align=left> </p>© 2009 Microsoft Corporation. All rights reserved.Tue, 22 Jul 2008 19:45:27 Z58d1d7c1-bfb4-48d2-8877-4fd9a3740d71http://social.technet.microsoft.com/Forums/en-US/sharepointbdc/thread/58d1d7c1-bfb4-48d2-8877-4fd9a3740d71#58d1d7c1-bfb4-48d2-8877-4fd9a3740d71http://social.technet.microsoft.com/Forums/en-US/sharepointbdc/thread/58d1d7c1-bfb4-48d2-8877-4fd9a3740d71#58d1d7c1-bfb4-48d2-8877-4fd9a3740d71Asaf Mesikahttp://social.technet.microsoft.com/Profile/en-US/?user=Asaf%20MesikaCan't import Application Definition file<p align=left>Hi,</p> <p align=left> </p> <p align=left>I'm trying to import a new version of an Application Definition file, and I get the following cryptic error:</p> <p align=left> </p> <p align=left> <table class=ms-descriptiontext cellspacing=0 cellpadding=0 width="100%"> <tbody> <tr> <td id="ctl00_PlaceHolderMain_statusCell"> <p align=left><span id="ctl00_PlaceHolderMain_StatusDescription"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <table class=ms-descriptiontext cellspacing=0 cellpadding=0 width="100%"> <tbody> <tr> <td id="ctl00_PlaceHolderMain_statusCell"> <p align=left><span id="ctl00_PlaceHolderMain_StatusDescription">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'.</span> </p></td></tr></tbody></table> <p align=left> </p></div></div> <p align=left> </p></span> <p></p></td></tr></tbody></table></p> <p align=left>Digging through the Event Log in the Windows 2003 server, I found the following event details:</p> <p align=left> </p> <p align=left> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p align=left>Event Type: Error<br>Event Source: Office SharePoint Server<br>Event Category: Business Data <br>Event ID: 5191<br>Date:  6/4/2008<br>Time:  11:59:53 AM<br>User:  N/A<br>Computer: SAP-2003<br>Description:<br>Runtime Error in method PackageImporter::Import of type System.IndexOutOfRangeException.The exception was System.IndexOutOfRangeException: Index was outside the bounds of the array.<br>   at System.Array.Clear(Array array, Int32 index, Int32 length)<br>   at System.Collections.Generic.List`1.Clear()<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystemCollection.EnsureLobSystems(String searchLikeName)<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystemCollection.GetEnumerator()<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystem.PerformVersionCheck(String versionString, String lobSystemName)<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.LobSystem.ReadXml(XmlReader xmlReader, ParseContext context, PackageContents packageContents)<br>   at Microsoft.Office.Server.ApplicationRegistry.Administration.ApplicationRegistry.ImportPackage(XmlReader reader, ParseContext context, PackageContents packageContents)</p> <p align=left>For more information, see Help and Support Center at <a title="http://go.microsoft.com/fwlink/events.asp" href="http://go.microsoft.com/fwlink/events.asp">http://go.microsoft.com/fwlink/events.asp</a>.<br></p> <p align=left> </p></div></div> <p align=left> </p> <p></p> <p align=left></p> <p><strong>What have I do to try fixing it?</strong></p> <p align=left>I'm minimized my application definition file to a bare minimum:</p> <p align=left> </p><font color="#008080" size=2> <p align=left> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div><font color="#008080" size=2> <p align=left>&lt;?</font><font color="#3f7f7f" size=2>xml </font><font color="#7f007f" size=2>version</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;1.0&quot; </font><font color="#7f007f" size=2>encoding</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;utf-8&quot; </font><font color="#7f007f" size=2>standalone</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;yes&quot;</font><font color="#008080" size=2>?&gt;</p> <p align=left>&lt;</font><font color="#3f7f7f" size=2>LobSystem </font><font color="#7f007f" size=2>xmlns:xsi</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;http://www.w3.org/2001/XMLSchema-instance&quot; </p></font><font color="#7f007f" size=2> <p align=left>xsi:schemaLocation</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog BDCMetadata.xsd&quot; </font><font color="#7f007f" size=2>Type</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;Database&quot; </p></font><font color="#7f007f" size=2> <p align=left>Name</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;asaf&quot; </font><font color="#7f007f" size=2>Version</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;2&quot;</p></font><font color="#7f007f" size=2> <p align=left>xmlns</font><font size=2>=</font><font color="#2a00ff" size=2>&quot;http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog&quot;</font><font color="#008080" size=2>&gt;</p></font><font size=2> <p align=left></p></font><font color="#008080" size=2> <p align=left>&lt;/</font><font color="#3f7f7f" size=2>LobSystem</font><font color="#008080" size=2>&gt;</font></p> <p align=left> </p></div></div> <p align=left> </p></font> <p></p><font color="#008080" size=2></font> <p align=left>This didn't help.</p> <p align=left> </p> <p align=left>I've deleted my application from sharepoint, but it didn't help either.</p> <p align=left>I've erased the application form the Search Content Sources, and reset the search data.</p> <p align=left> </p> <p align=left>Nothing helps!</p> <p align=left> </p> <p align=left>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.</p> <p align=left> </p> <p align=left>Asaf</p> <p align=left> </p>Wed, 04 Jun 2008 09:28:37 Z2008-06-04T10:54:34Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointbdc/thread/58d1d7c1-bfb4-48d2-8877-4fd9a3740d71#f8e0868d-54b6-4eb9-ad06-e11e401230cehttp://social.technet.microsoft.com/Forums/en-US/sharepointbdc/thread/58d1d7c1-bfb4-48d2-8877-4fd9a3740d71#f8e0868d-54b6-4eb9-ad06-e11e401230ceAsaf Mesikahttp://social.technet.microsoft.com/Profile/en-US/?user=Asaf%20MesikaCan't import Application Definition file<p>Unbelievable.</p> <p align=left>It was solved with resetting the IIS Server: &quot;iisreset&quot; command.</p> <p align=left> </p> <p align=left> </p> <p align=left><font face=Arial size=2></font> </p>Wed, 04 Jun 2008 10:54:17 Z2008-06-04T10:54:34Z