من یک بار دیگر تهیه شد و BDC فایل ADF با دست (so that I can build up my "get off my lawn!" من) و ضربه زدن به این خطا دوست داشتنی:
"Application definition import failed. خطای زیر رخ داده است:"
همانطور که می بینید, یک خطا وجود دارد, اما … آن را نمی خواهید به من بگویید که آنچه در آن است.
در مورد من, the issue turned out that I had started off with a functional ADF for a different project that connected to a database and executed a SQL query against a view. In this new project, I am calling a method on a web service. I had stripped out the DB specific stuff and added my web service stuff, but failed to update the <LobSystem>’s Type attribute. I switched it to "WebService" and I happily moved on to newer and more exciting import errors, which were handled in due course.
Here is the wrong LobSystem:
<LobSystem
xmlns:xsi=HTTP://www.w3.org/2001/XMLSchema-instance
XSI:schemaLocation=HTTP://schemas.microsoft.com/office/2006/03/BusinessDataCatalogBDCMetadata.xsd
Type="Database"
Version="1.0.0.0" Name="xyzzy"
xmlns="HTTP://schemas.microsoft.com/office/2006/03/BusinessDataCatalog">
This is correct:
<LobSystem
xmlns:xsi=HTTP://www.w3.org/2001/XMLSchema-instance
XSI:schemaLocation=HTTP://schemas.microsoft.com/office/2006/03/BusinessDataCatalogBDCMetadata.xsd
Type="WebService"
Version="1.0.0.0" Name="xyzzy"
xmlns="HTTP://schemas.microsoft.com/office/2006/03/BusinessDataCatalog">
</پایان>