错误:类未注册(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG))尝试注册后台任务Windows Phone 8.1

当我尝试在 Windows Phone 8.1中注册一个后台任务时,这个样本是 http://code.msdn.microsoft.com/windowsapps/Tile-Update-every-minute-68dbbbff
我得到这个错误

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

我使用这段代码

Dim taskBuilder As New BackgroundTaskBuilder()
taskBuilder.Name = taskName
taskBuilder.TaskEntryPoint = taskEntryPoint
taskBuilder.SetTrigger(New SystemTrigger(SystemTriggerType.UserPresent,False))
taskBuilder.Register()

请帮忙吗

确保您的taskEntryPoint变量值与您在Package.appmanifest>>>中定义的Entry point:值相匹配.声明>>>背景任务>>>入口点.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...