Cannot deploy Default App built by Guidance Automa

Topics: Mobile Client Software Factory
Nov 14, 2006 at 7:08 AM
originally posted by: mccoolm

I have created a new mobile CAB application using the suidance automation package. I have set the ProfileCatalog.xml file and set the module to deploy.

However it always fails with the following message. Please help

An unexpected error has occurred in TestShell.exe. Select Quite ans then restart this program, or select Details for more information
File or assembly name 'Microsoft.Practices.Mobile.endpointCatalog' or one of it's dependencies, was not found.

Any idea what is wrong. I believe in my app this is contained in Mobile.Endpointcatalog.dll

As you can see from the VS 2005 output this has been deployed

------ Deploy started: Project: TestModule, Configuration: Debug Any CPU ------
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.CompositeUI\bin\Debug\Mobile.Configuration.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.CompositeUI\bin\Debug\Mobile.PinAuthentication.dll'
Deploying 'C:\TEMP\Test\Blocks\Mobile.OrientationAware\bin\Debug\Mobile.OrientationAware.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.ObjectBuilder\bin\Debug\Mobile.ObjectBuilder.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.CompositeUI.WinForms\bin\Debug\Mobile.CompositeUI.WinForms.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.CompositeUI\bin\Debug\Mobile.CompositeUI.dll'
Deploying 'C:\TEMP\Test\Source\TestModule\bin\Debug\TestModule.dll'
------ Deploy started: Project: TestShell, Configuration: Debug Any CPU ------
Deploying 'C:\TEMP\Test\Blocks\Mobile.Configuration\bin\Debug\Mobile.PinAuthentication.dll'
Deploying 'C:\TEMP\Test\Blocks\Mobile.SubscriptionManager\bin\Debug\Mobile.SubscriptionManager.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.ObjectBuilder\bin\Debug\Mobile.ObjectBuilder.dll'
Deploying 'C:\TEMP\Test\Blocks\Mobile.EndpointCatalog\bin\Debug\Mobile.EndpointCatalog.dll'
Deploying 'C:\TEMP\Test\Blocks\Mobile.DisconnectedAgent\bin\Debug\Mobile.DisconnectedAgent.dll'
Deploying 'C:\TEMP\Test\Blocks\Mobile.DataAccess\bin\Debug\Mobile.DataAccess.dll'
Deploying 'C:\TEMP\Test\Blocks\Mobile.ConnectionMonitor\bin\Debug\Mobile.ConnectionMonitor.dll'
Deploying 'C:\TEMP\Test\Blocks\Mobile.Configuration\bin\Debug\Mobile.Configuration.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.CompositeUI.WinForms\bin\Debug\Mobile.CompositeUI.WinForms.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.CompositeUI\bin\Debug\Mobile.CompositeUI.dll'
Deploying 'C:\TEMP\Test\Blocks\CAB\Mobile.CompositeUI.Common\bin\Debug\Mobile.CompositeUI.Common.dll'
Deploying 'C:\TEMP\Test\Source\TestShell\bin\Debug\ProfileCatalog.xml'
Deploying 'C:\TEMP\Test\Source\TestShell\bin\Debug\OfflineDatastore.sdf'
Deploying 'C:\TEMP\Test\Source\TestShell\bin\Debug\App.config'
Deploying 'C:\TEMP\Test\Source\TestShell\bin\Debug\TestShell.exe'
========== Build: 14 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 2 succeeded, 0 failed, 12 skipped ==========
Nov 14, 2006 at 7:39 AM
originally posted by: mccoolm

Solved it by following these steps after creating the basic app using the guidance package.


1. Update ProfileCatalog.xml to change the module dll from SampleModule.dll to the name selected in the Mobile Solution Application dialog.
2. Right click on the solution and select properties. In the Solution Properties Page expand the Configuration Properties and select Configuration. Select the module to be deployed. Press OK
3. Update the app.config file in the shell project as follows, in capitals should be removed

<configSections>
<section name="Connections" type="Microsoft.Practices.Mobile.ConnectionMonitor.Configuration.ConnectionSettingsSection, Microsoft.Practices.Mobile.ConnectionMonitor" />
<section name="Endpoints" type="MICROSOFT.PRACTICES.Mobile.EndpointCatalog.Configuration.EndpointSection, MICROSOFT.PRACTICES.Mobile.EndpointCatalog" />
</configSections>


<configSections>
<section name="Connections" type="Microsoft.Practices.Mobile.ConnectionMonitor.Configuration.ConnectionSettingsSection, Mobile.ConnectionMonitor" />
<section name="Endpoints" type="Microsoft.Practices.Mobile.EndpointCatalog.Configuration.EndpointSection, Mobile.EndpointCatalog" />
</configSections>