Asked by:
Problem with bluetooth LE devicecapability in package manifest

Question
-
Hello
i want to create a application that connects to a bluetooth 4 le sensor.
When i add the following xml to the package manifest i got a deployment error.
<m2:DeviceCapability Name="bluetooth.genericAttributeProfile">
<m2:Device Id="any">
<m2:Function Type="serviceId:0000180a-0000-1000-8000-00805f9b34fb" />
<m2:Function Type="serviceId:f000aa00-0451-4000-b000-000000000000" />
<m2:Function Type="serviceId:f000aa10-0451-4000-b000-000000000000" />
<m2:Function Type="serviceId:f000aa20-0451-4000-b000-000000000000" />
<m2:Function Type="serviceId:f000aa30-0451-4000-b000-000000000000" />
<m2:Function Type="serviceId:f000aa40-0451-4000-b000-000000000000" />
<m2:Function Type="serviceId:f000aa50-0451-4000-b000-000000000000" />
<m2:Function Type="serviceId:0000ffe0-0000-1000-8000-00805f9b34fb" />
</m2:Device>
</m2:DeviceCapability>
This is the deployment error. I can't find what i do wrong.
Error 1 Error : DEP0700 : Registration of the app failed. C:\Temp\App2\App2\bin\Debug\AppX\AppxManifest.xml(47,10): error 0x8007064A: Cannot register the 1f83c31a-ad92-4eb9-b764-15831a59276e_1.0.0.0_neutral__gj4en1b5aa0cr package because the following error was encountered while registering the UnnamedExtensionHandler extension: The configuration data for this product is corrupt. Contact your support personnel.
. Try again and contact the package publisher if the problem persists. (0x80073cf6) App2
Regards
DieterFriday, May 23, 2014 7:39 PM
All replies
-
Hi Dieter,
Seems you are working with Bluetooth GATT feature, I'm not experienced with that, but I would like invite you to give try with following troubleshooting steps.
1, Are you working with win8.1 app? Windows.Devices.Bluetooth.GenericAttributeProfile is a new feature in win8.1
2, Remove all the <m2:Function/> to see if your app can successfully build.
3, Add <m2:Function /> one by one to know which one is not satisfied by system.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.Monday, May 26, 2014 10:29 AMModerator -
It"s getting stranger
when i run a example from Microsoft i got the same error
http://code.msdn.microsoft.com/windowsapps/Bluetooth-Generic-5a99ef95/view/SourceCode#content
Monday, May 26, 2014 11:59 AM -
Oops, not working only on this machine or not working for all? I can run the sample code without any problem. Clean and rebuild the app seems not help at all, could you try to fix your Visual Studio to confirm if the issue is on the Visual Studio side or your device.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Edited by Jamles HezModerator Tuesday, May 27, 2014 8:04 AM
Tuesday, May 27, 2014 8:02 AMModerator -
This is the DeviceCapability I used with my TI SensorTag program. Note that it includes a Type="name:genericAttribute" at the start.
<Capabilities>
<!-- Important: These capabilities are required to work with GATT type Bluetooth devices.
The values are not enterable from the UI; you have to type them in by hand.
-->
<m2:DeviceCapability Name="bluetooth.genericAttributeProfile">
<m2:Device Id="any">
<m2:Function Type="name:genericAttribute" />
<m2:Function Type="serviceId:F000AA00-0451-4000-B000-000000000000" />
<!-- Thermometer -->
<m2:Function Type="serviceId:F000AA10-0451-4000-B000-000000000000" />
<!-- Accelerometer -->
<m2:Function Type="serviceId:F000AA20-0451-4000-B000-000000000000" />
<!-- Humidity -->
<m2:Function Type="serviceId:F000AA30-0451-4000-B000-000000000000" />
<!-- Magnetometer -->
<m2:Function Type="serviceId:F000AA40-0451-4000-B000-000000000000" />
<!-- Barometer -->
<m2:Function Type="serviceId:F000AA50-0451-4000-B000-000000000000" />
<!-- Gyroscope -->
<m2:Function Type="serviceId:0000FFE0-0000-1000-8000-00805f9b34fb" />
<!-- Buttons -->
</m2:Device>
</m2:DeviceCapability>
</Capabilities>
Tuesday, May 27, 2014 8:07 PM -
doesen't help, problem still exist. On my other pc the project runs but not on my laptop. This must be a vs.net issue?Thursday, May 29, 2014 12:06 PM
-
when i create a universtal app, phone project deploys perft with the edited packmanifest but he windows 8.1 app can't deploy.Sunday, June 1, 2014 11:55 AM
-
Hi Dieterdp,
The problem still exist?
I consult with seniors and I would like suggest you to collect some log information from EventViewer to see what happens. You can open EventViewer and then look for the following node:
Microsoft-Windows-AppXDeployment/Operational
Application and Services Logs\Microsoft\Windows\AppXDeployment\Operational
Also could you tell us whether you can work well with a very simple hello world Windows 8.1 app on that labtop.
Additional some tips: We'd better use some named service instead of service id (How to specify device capabilities for Bluetooth). For instance:
- name:battery
- name:bloodPressure
- name:cyclingSpeedAndCadence
- name:genericAccess
- name:genericAttribute
- name:glucose
- name:healthThermometer
- name:heartRate
- name:runningSpeedAndCadence
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.Wednesday, June 11, 2014 5:36 AMModerator -
Hello
The problem is still here. Event log contains only information logs, no error logs. I tried to use a name and not the id but the error is still there. I really have no clue.
regards
Dieter
Error 1 Error : DEP0700 : Registration of the app failed. C:\Temp\App1\App1\App1.Windows\bin\Debug\AppX\AppxManifest.xml(34,10): error 0x8007064A: Cannot register the 809edd3c-3feb-4cfd-8aa9-f513e9c7a7bc_1.0.0.0_neutral__gj4en1b5aa0cr package because the following error was encountered while registering the UnnamedExtensionHandler extension: The configuration data for this product is corrupt. Contact your support personnel.
. Try again and contact the package publisher if the problem persists. (0x80073cf6) App1.WindowsThursday, June 12, 2014 6:56 AM -
i have some more logging info, but still no solution
The calling process is C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
Started deployment Add operation on a package with main parameter: file:///C:/Temp/Se
nsorApp/SensorApp/SensorApp.Windows/AppPackages/SensorApp.Windows_1.0.0.0_AnyCPU_Debu
g_Test/SensorApp.Windows_1.0.0.0_AnyCPU_Debug.appx and Options: ForceApplicationShutd
ownOption. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
The app package signature was validated for core content of the app package published
by CN=dieter. Payload won't be validated until the files are read.
The streaming reader was created successfully for app package b88bc61c-760e-440e-8c7f
-019ad8367ecc_1.0.0.0_neutral__gj4en1b5aa0cr.
Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\23aa4fd8-e912
-406e-9741-3c8406208bdb_S-1-5-21-2771667491-2970822692-495950092-1001_5.rslc for Add
Operation on Package b88bc61c-760e-440e-8c7f-019ad8367ecc_1.0.0.0_neutral__gj4en1b5aa
Deployment Add operation on package b88bc61c-760e-440e-8c7f-019ad8367ecc_1.0.0.0_neut
ral__gj4en1b5aa0cr has been de-queued and is running for user DDPSURFACEPRO2\dieter.
Adding uri to the list of Uris: file:///C:/Temp/SensorApp/SensorApp/SensorApp.Windows
/AppPackages/SensorApp.Windows_1.0.0.0_AnyCPU_Debug_Test/SensorApp.Windows_1.0.0.0_An
yCPU_Debug.appx.
C:\Program Files\WindowsApps\b88bc61c-760e-440e-8c7f-019ad8367ecc_1.0.0.0_neutral__gj
4en1b5aa0cr\AppxManifest.xml(48,10): error 0x8007064A: Cannot register the b88bc61c-7
60e-440e-8c7f-019ad8367ecc_1.0.0.0_neutral__gj4en1b5aa0cr package because the followi
ng error was encountered while registering the UnnamedExtensionHandler extension: The
configuration data for this product is corrupt. Contact your support personnel.
. Try again and contact the package publisher if the problem persists.
error 0x8007064A: While processing the request, the system failed to register the win
dows.DeviceAccess extension due to the following error: The configuration data for th
is product is corrupt. Contact your support personnel.
.
error 0x8007064A: Cannot register the request because the following error was encount
ered during the registration of the windows.DeviceAccess extension: The configuration
data for this product is corrupt. Contact your support personnel.
.
error 0x80073CF6: Cannot register the b88bc61c-760e-440e-8c7f-019ad8367ecc_gj4en1b5aa
0cr package due to the following error: Package could not be registered.
.
The last successful state reached was PackagesInUseClosed. Failure occurred before re
aching the next state RegistrationChanged.
Moving package folder \\?\C:\Program Files\WindowsApps\b88bc61c-760e-440e-8c7f-019ad8
367ecc_1.0.0.0_neutral__gj4en1b5aa0cr to \\?\C:\Program Files\WindowsApps\Deleted\b88
bc61c-760e-440e-8c7f-019ad8367ecc_1.0.0.0_neutral__gj4en1b5aa0cra7cdb97c-e9b2-40a5-98
c9-10d21f442993. Result: 0x0.
Deployment Add operation on Package b88bc61c-760e-440e-8c7f-019ad8367ecc_1.0.0.0_neut
ral__gj4en1b5aa0cr from: (file:///C:/Temp/SensorApp/SensorApp/SensorApp.Windows/AppP
ackages/SensorApp.Windows_1.0.0.0_AnyCPU_Debug_Test/SensorApp.Windows_1.0.0.0_AnyCPU_
Debug.appx) failed with error 0x80073CF6. See http://go.microsoft.com/fwlink/?LinkId
=235160 for help diagnosing app deployment issues.
error 0x80073CF6: AppX Deployment operation failed. The specific error text for this
failure is: C:\Program Files\WindowsApps\b88bc61c-760e-440e-8c7f-019ad8367ecc_1.0.0.0
_neutral__gj4en1b5aa0cr\AppxManifest.xml(48,10): error 0x8007064A: Cannot register th
e b88bc61c-760e-440e-8c7f-019ad8367ecc_1.0.0.0_neutral__gj4en1b5aa0cr package because
the following error was encountered while registering the UnnamedExtensionHandler ex
tension: The configuration data for this product is corrupt. Contact your support per
. Try again and contact the package publisher if the problem persists.
Thursday, July 3, 2014 6:18 PM -
some more info
same app works just fine on a other device, it's device specific.
Also strange, i can't install de TI Sensor Reader app or the Best TI SensorTag BLE app from the store. They give me the samen error 0x8007064A error
this has someting todo with bluetooth problems. I am using a surface pro 2 machine.
please can someone help me?
regards
Dieter
Saturday, July 5, 2014 12:22 PM -
i installed Visual Studio 2013 Update 3, but the problem is still there....Wednesday, August 6, 2014 5:43 AM