Print Page | Close Window

Windows service cannot open device

Printed From: Way2call Communications
Category: Hi-Phone Software Development Kit (SDK)
Forum Name: Hi-Phone and .NET
Forum Description: Discussion on the Hi-Phone product family, its .NET interface, samples and development tools
URL: http://www.way2call.com/forum/forum_posts.asp?TID=24
Printed Date: Oct 06 2024 at 1:50pm


Topic: Windows service cannot open device
Posted By: sk
Subject: Windows service cannot open device
Date Posted: May 15 2009 at 9:56am
Using the .NET SDK I am developing a windows service to interact with the desktop pro. When I try to open the device (w2cDrv.Device.Open(0)) after initializing the driver it throws the following exception: "Unable to cast object of type 'WindowsServiceName' to type 'System.ComponentModel.ISynchronizeInvoke.

If I transfer the same snippet of code into a Windows forms application there is no problem.

Does anyone know what the issue might be, thanks.



Print Page | Close Window