Graphics

 View Only
  • 1.  (Duplicated Post) Exception prompted when run a XPression application of a new desktop

    Posted 10-19-2013 02:19
    I run my custom application for XPression on a new desktop which was installed a developer. The application work well on my studio and bluebox turnkey systems. But it prompts an error message on the new desktop as below:

    An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

    Additional information: Retrieving the COM class factory for component with CLSID {313CF0C8-2F04-4A83-839E-075D70E89FE7} failed due to the following error: 800702e4 The requested operation requires elevation. (Exception from HRESULT: 0x800702E4)
    .

    Moreover, I created a new C# project, and set the target platform to x86. Same error on "[I]xpEngine engine = new xpEngine();[/I]".

    I have tried "XPression (register COM API)" but useless. How can I fix it?

    Thanks!


  • 2.  RE: (Duplicated Post) Exception prompted when run a XPression application of a new desktop

    Posted 10-19-2013 11:02
    Hi Nero,

    I've had a similar problem before. I've built an application on my laptop where it was working and when I passed to another PC, I got the same error.

    It took me a night to find out but it had to do with the references to the XPression COM-library.

    On your new pc, try to remove the reference from your References-tab in the Project Solution.

    And then add it again but use the local library which can be found on C:Program Files (x86)XPressionStudionet

    Then try running your application again and see if that works.

    Kenneth

    #XPression


  • 3.  RE: (Duplicated Post) Exception prompted when run a XPression application of a new desktop

    Posted 10-19-2013 23:49
    Have you already tried running XPression and the application by right clicking on it and choosing "Run as Administrator"?

    I've never had to do this on Windows 7 Professional as long as my account was an Administrator, but I've needed to do it when running Win 7 Home Premium even when using an Administrator account. If running the app inside visual studio, you would need to start Visual Studio as an Administrator as well.

    #XPression


  • 4.  RE: (Duplicated Post) Exception prompted when run a XPression application of a new desktop

    Posted 10-21-2013 01:29
    Hi Kenneth,

    Same error although I add the "xpression.net.dll" as my local reference, so I tried Brian suggestion.

    Brian,

    It works! The problem seems my Visual Studio is not running under administrator permission. Thanks a lot!

    #XPression