CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Feb 2009
    Posts
    13

    AtlService in VS2008

    Hi all,

    im trying to do an Atl Service in VS2008. I use the Atl Project Wizard and select Service (EXE). Then I add one AtlSimple Object. Compile & Register via /RegServer

    From a client application I can CoCreate the AtlObject inside my .exe.

    The Problem:
    As soon as I register my service with cmd option -Service, I can no longer CoCreate the AtlObject. Any call to CoCreateInstance will run into a timeout and fail with 0x80080005 - "Server execution failed".

    What am I doing wrong? Any ideas?


    See attached my test project.
    To reproduce:
    rebuild AtlServerIII
    start AtlClient
    ==>ok
    run AtlServerIII -Service
    start AtlClient
    ==>timout & error in CoCreateInstance
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured