The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

MCMLPad doesn't run

Last post 12-31-2007, 3:24 AM by xblanc. 9 replies.
Sort Posts: Previous Next
  •  12-24-2007, 12:10 AM 6000

    MCMLPad doesn't run

    Hello,

    Hope someone can help me.

    I have installed the Windows Media Center SDK5.3 and MCMLPal just doesn't run under my MediaCenter. The standalone MCMLPad runs.

    With the "MyProject" tutorial,  I have the same result (A simple message under MediaCenter telling me that the application cannot run and has been terminated).

    I may have some trouble within my system. Can someone please tell me what things I can check ?

     

    Regards

    PS: I have a french MDE Home Premium. Visual Studio Express 2005 and 2008.

  •  12-25-2007, 2:51 AM 6006 in reply to 6000

    Re: MCMLPad doesn't run

    Are you running MCML Pad inside Media Center and loading your MCML into it, or running your program from the "more programs" section?

    Cheers,
    Andrew

  •  12-25-2007, 2:53 PM 6009 in reply to 6006

    Re: MCMLPad doesn't run

    I can only run the standalone MCML Pad. I can deploy my own MCML application but the result is the same. It exits with no message.

    I have made some more tests.

    With no code inside the launch method it seems to be ok (nothing happens).

    If I let the code that comes from the Visual Studio Template then the application exits with no message. I have tried to put other code such as the creation of a dialog but the resul is the same. I use the Visual Studio Express so I cannot really debug it.

    By the way, I have tried to install RSS Plugin by OABSoftware and I have the same result.

    It seems to me that I have a real problem somewhere in my installation. But I have no idea how to fix it.

    Regards

    Xavier

  •  12-26-2007, 4:03 AM 6016 in reply to 6009

    Re: MCMLPad doesn't run

    Can you post some sample code files (or a step-by-step of how you are creating them) including your registration information (what goes in your registration.xml file) so we can see what is happening.

    Cheers,
    Andrew

  •  12-27-2007, 5:11 AM 6017 in reply to 6016

    Re: MCMLPad doesn't run

    Ok,

    I have created a new project with Visual C# 2008 Express Edition with the Media Center Application Template.

    I have signed the Application.

    I have used sn.exe to create a new token and put it into the Registration.xml

    Here is the Registration.xml

    <application title="TestXavier" id="{33919a07-c58c-454c-b12a-4723da703daa}">

    <entrypoint id="{84584e6e-dc58-4099-bd63-7f8b480a6dfd}"

    addin="TestXavier.MyAddIn, TestXavier,Culture=Neutral,Version=1.0.0.0,PublicKeyToken=dad82b828520e765"

    title="TestXavier"

    description="TestXavier Description"

    ImageUrl=".\Application.png">

    <category category="More Programs"/>

    </entrypoint>

    </application>

     

    Then I have used the DevInstall.cmd for installing the application (in this script, I have made a little modification in order to call the gacutil.exe of the .Net SDK v2.0).

    Thank you very much

    Regards.

     

    Xavier

     

  •  12-27-2007, 9:42 AM 6018 in reply to 6017

    Re: MCMLPad doesn't run

    Really going to need the files themselves to understand what's going wrong - something that is in a position to be installed as is, so we can follow the exact same steps you are doing to work out the problem.

    Cheers,
    Andrew

  •  12-27-2007, 10:32 AM 6019 in reply to 6018

    Re: MCMLPad doesn't run

    Ok,

    The 'whole' project can be found here

    Regards

  •  12-30-2007, 2:50 AM 6029 in reply to 6019

    Re: MCMLPad doesn't run

    Hello,

    I finally managed to debug the application.

    Here is the raised exception :

    Microsoft.MediaCenter.AddIn.StateDetectionDisabledException was unhandled by user code
      Message="L'opération n'est pas valide en raison de l'état actuel de l'objet."
      Source="ehshell"
      StackTrace:
        Server stack trace:
           à MediaCenter.Extensibility.ExtensibilityAutomation.EnforceApplicationPermission(String method, Boolean bThrowOnError)
           à MediaCenter.Extensibility.ExtensibilityAutomation.Microsoft.MediaCenter.Hosting.Infrastructure.ITargetThreadInvokeMessageFilter.ProcessMessage(TargetThreadInvokeMBRO obj, IMessage msg)
           à Microsoft.MediaCenter.Hosting.Infrastructure.TargetThreadSink.SyncProcessMessage(IMessage msg)
           à Microsoft.MediaCenter.Hosting.Infrastructure.SinkHelpers.SyncDispatch(IMessageSink sink, IMethodCallMessage msgMethodCall)
        Exception rethrown at [0]:
           à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
           à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
           à Microsoft.MediaCenter.AddIn.AddInHost.get_HostControl()
           à Microsoft.MediaCenter.Hosting.Infrastructure.McpfState.get_AddInUiHost()
           à Microsoft.MediaCenter.Hosting.PageSession.EnsureFullscreenSession()
           à Microsoft.MediaCenter.Hosting.PageSession..ctor()
           à Microsoft.MediaCenter.Hosting.HistoryOrientedPageSession..ctor()
           à TestXav2.MyAddIn.Launch(AddInHost host)
           à MediaCenter.Extensibility.AddInEntryPointWrapper.Launch(AddInHost host)
           à System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
           à System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
      InnerException:

     

    Does it help ?

     

    Regards

     

    Xavier

  •  12-30-2007, 6:57 PM 6037 in reply to 6029

    Re: MCMLPad doesn't run

    I believe this is because you have disallowed applications the ability to gather state information. See http://msdn2.microsoft.com/en-us/library/aa468506.aspx. See if there is a check next to Settings > General > Program Library Options > Access media information from Windows Media Center.
    Charlie Owen (Microsoft)
  •  12-31-2007, 3:24 AM 6039 in reply to 6037

    Re: MCMLPad doesn't run

    Right :)

    Thank you very very much.

    Regards 

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems