.Net Service in XP and Windows 7

Posted on 2011-10-10
Last Modified: 2012-05-12

I have a create a service that for some reason work on Windows 7 but not in windows xp, I have verify that the xp machine have the same framework that the Windows 7 machine.

The Service call an external api, and the problem is in that api call.

What are the thin that I should verify that my xp machine should have, it Already have the same Framework and the dll of the external api.

Thanks for your help
Question by:cano63
    LVL 83

    Expert Comment

    Windows Service? Web Service? WCF Service?

    >The Service call an external api, and the problem is in that api call.
    And the problem is ...
    LVL 1

    Author Comment

    Window service that call an external api, as a service it run perfect in windows 7, but in xp faild. In a desktop app it call the api pwrfext in xp and 7, the problem is as. Service in xp thats why i think i,m missing something that have the 7 and not the xp machine
    LVL 35

    Expert Comment

    by:Miguel Oz
    Can you provide the dll and the method declaration call?
    LVL 1

    Author Comment

    I have a sub that is called from a systemwatcher event, it call it fine because i put some log it explote when it is opening the api, like I said this is a service that work on windows 7 but not xp
    Public Sub DMCall(ByVal File As String)
     Dim dmApi As DMClientAPIClass = Nothing
     Dim dmClient As DMClient = Nothing
     Dim dmResults As DMSearchResults = Nothing 
     Dim dmResultItems As DMSearchResultItems = Nothing
     Dim dmResultItem As DMSearchResultItem = Nothing
     Dim dmItemDesc As DMItemDescriptor = Nothing
     Dim dmSelectedItemDescs As DMItemDescriptors = Nothing
          dmApi = New DMClientAPIClass
          dmClient = dmApi.GetClient(dmGetClientOptions.dmGetClientOptionNone)
    Catch ex As Exception
    End Try
             End Sub

    Open in new window

    LVL 1

    Author Comment

    Today I install the service in a windows seven machine and it did not work, so i think that the problem is something that Im missing in the pc that IM installing, like i said before it work as a deasktop app and in some windows machinw
    LVL 35

    Accepted Solution

    Please install Process Monitor on both machines:

    and compare which dlls are being loaded. You will find your missing dll that way and copy/Install to the window 7 machine.
    LVL 1

    Author Comment


    Your not going to believe this, I verify and in the machine that is not working it have all the DLL of the external api, also it have more Dll files, Also i was able to debug the service in the machine that don't work and when i debug it work but when it run alone it don't works

    Strange !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now