locked
Problems with new Bing speech recognition control

    Question

  • FIRST OF ALL... I'm not able to load MainPage.xaml (after Import or using Bing.Speech)

    System.UnauthorizedAccessException

    Accesso negato. (Eccezione da HRESULT: 0x80070005 (E_ACCESSDENIED))


       in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)   in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)   in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)   in Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)   in Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)   in Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)   in Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)   in Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)   in Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)   in Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)


    System.UnauthorizedAccessException

    Accesso negato. (Eccezione da HRESULT: 0x80070005 (E_ACCESSDENIED))


    Server stack trace:    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)Exception rethrown at [0]:    in System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   in System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)   in Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)   in Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)   in Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()   in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()


    System.UnauthorizedAccessException

    Accesso negato. (Eccezione da HRESULT: 0x80070005 (E_ACCESSDENIED))


       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)   at System.Reflection.Adds.NativeMethods.SafeOpenFile(String fileName)   at System.Reflection.Adds.FileMapping..ctor(String fileName)   at System.Reflection.Adds.MetadataDispenser.OpenFileAsFileMapping(String fileName)   at Microsoft.MetadataReader.Loader.LoadAssemblyFromFile(String file)   at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadRuntimeAssemblyUsingReferenceType(String path)   at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadRuntimeAssemblyFrom(String path)   at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadFrom(String path)   at Microsoft.Expression.Utility.AssemblyHelper.LoadFrom(String path)   at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveInstalledAssembly(String path)   at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveAssembly(String assemblyPath, String assemblyFullName, String projectPath)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(String path, String assemblyFullName)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(IHostReferenceItem reference)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.UpdateAssemblyReferences(IEnumerable`1 referencesToUpdate)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver..ctor(IHostProject project, DesignerContext designerContext)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService.<.ctor>b__0(IHostProject project)   at Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection`2.CreateItems(TKey key)   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)   at Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection`2.GetItem(TKey key)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService.GetProjectAssemblyResolver(IHostProject project)   at Microsoft.Expression.DesignSurface.Project.ProjectContextBase.Initialize()   at Microsoft.Expression.DesignSurface.Project.XamlProjectContext.Initialize()   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)   at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    SECOND

    "Access to the service is denied" using C# published samples.

    Well, clientid and clientsecret are ok and "en-US" is the Language from italian registered developer.


    Frank



    • Edited by Fralen Wednesday, October 23, 2013 8:39 PM
    Wednesday, October 23, 2013 8:35 PM

Answers

All replies

  • Hi, Fralen

    Try to declare the microphone capabilities in Package.appxmanifest. You can refer to the link

    below:

    http://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; 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.


    Thursday, October 24, 2013 6:53 AM
  • Microphone is declared, in published samples and also in my app.

    Thanks, but I suspect there is a compatibility issue of Bing.Speech (English) with the language set on the pc (Italian). This would explain the fact that application starts, microphone works, but result is "access denied to the service".

    Any other ideas?


    Francesco Lentini

    Thursday, October 24, 2013 8:47 AM
  • Hi, Fralen

    You can try the following and see if it resolves the issue:

    1. Close all instances of Visual Studio
    2. Make sure there are no instances of xDescProc.exe or MSBuild.exe running on the machine
    3. From an admin command prompt run:

    "C:\Windows\system32\icacls.exe" "C:\Program Files (x86)\Microsoft  SDKs\Windows\v8.0\ExtensionSDKs" /grant  "*S-1-15-2-1":(OI)(CI)(IO)(GR,GE) /grant "*S-1-15-2-1":(RX)

    This assumes that Microsoft Advertising SDK is installed at

    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs

    Then restart Visual Studio and open the XAML Designer.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; 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.


    Thursday, October 24, 2013 9:36 AM
  • Quite sure that xDesc and MSBuild not running, but I don't see Advertising SDK.

    Please tell me something about your idea and step by step explication of the proposed solution.


    Frank


    • Edited by Fralen Thursday, October 24, 2013 1:59 PM
    Thursday, October 24, 2013 1:58 PM
  • Hi, Fralen

    This may be related to a  issue slated for a fix in a future update. So I suggest you repair your

    windows 8 SDK by run command below as a administrator:

    "C:\Windows\system32\icacls.exe" "C:\Program Files (x86)\Microsoft  SDKs\Windows\v8.0\ExtensionSDKs" /grant  "*S-1-15-2-1":(OI)(CI)(IO)(GR,GE) /grant "*S-1-15-2-1":(RX)

    You can try it. If that do not resolve your problem, you can see the thread:

    http://social.msdn.microsoft.com/Forums/windowsapps/en-US/a020d6fa-79a6-48c3-9dfb-cf25beba661a/designer-crashes-in-visual-studio-2012-xdesprocexe?forum=toolsforwinapps

    I hope that can help you!

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; 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.


    Friday, October 25, 2013 8:28 AM
  • No dear, the proposed solution does not convince me. I can publish and sell my apps because the VS2102 Express for W8-WP-Web-Desktop installation is perfect. The problem begins after Bing.Speech installation and only if the library is referenced in the program.

    I have to add that speech recognition is critical to my work (moreover, no problem on WP), so thank you very much, hope you understand my security requirement.


    Frank


    • Edited by Fralen Friday, October 25, 2013 9:40 AM
    Friday, October 25, 2013 9:40 AM
  • Hi Fralen,

    Please post questions about the Bing speech recognition control in the Bing Developer General Forum.

    See the Bing Dev Center's support page for support links for the various Bing developer products.

    --Rob

    Saturday, October 26, 2013 10:05 PM
    Owner
  • Hi Frank! I am not seeing anything speech related on the stack. Can you try to use the just speech API without the control and see if that works?

    With regards to XAML control, does the error still happen if you remove the control from your page?

    Thanks,

    Gabriel


    Gabriel GHIZILA [MSFT] --Posting is provided "AS IS" with no warranties, and confers no rights.

    Saturday, November 23, 2013 7:11 PM
  • Yes, no error removing Bing.Speech reference.

    Frank


    • Edited by Fralen Sunday, November 24, 2013 11:53 AM
    Sunday, November 24, 2013 11:53 AM
  • I have tried all possible solutions. But still I get the Access denied to the service exception. Is there any more suggestions.


    • Edited by Mohannvell Monday, January 05, 2015 1:04 PM
    Monday, January 05, 2015 1:03 PM