• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

.Net Service in XP and Windows 7

Hello,

I have a create a vb.net 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
0
cano63
Asked:
cano63
  • 4
  • 2
1 Solution
 
CodeCruiserCommented:
Windows Service? Web Service? WCF Service?

>The Service call an external api, and the problem is in that api call.
And the problem is ...
0
 
cano63Author Commented:
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
0
 
Miguel OzSoftware EngineerCommented:
Can you provide the dll and the method declaration call?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
cano63Author Commented:
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

Try
      dmApi = New DMClientAPIClass
      dmClient = dmApi.GetClient(dmGetClientOptions.dmGetClientOptionNone)
dmClient.Add(File)

Catch ex As Exception
            
End Try
         End Sub

Open in new window

0
 
cano63Author Commented:
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
0
 
Miguel OzSoftware EngineerCommented:
Please install Process Monitor on both machines:
http://technet.microsoft.com/en-us/sysinternals/bb896653

and compare which dlls are being loaded. You will find your missing dll that way and copy/Install to the window 7 machine.
0
 
cano63Author Commented:
Hello,

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 !
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now