Hello I followed the notes on Andreas Marshall's TAPI and TSP FAQ site and edited my HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv\ImagePath to: "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" %SystemRoot%\System32\svchost.exe -k tapisrv [Previously it was: %SystemRoot%\System32\svchost.exe -k netsvcs] Andreas site suggested that it would be originally be: %SystemRoot%\System32\svchost.exe -k tapisrv - on Windows 2000 and higher. But my XP system had netsvcs - don't know if this makes a difference? I also made the service interact with desktop change. When I then launch dialer.exe MSDev is loaded and I press F5 to debug - get message C:\WINDOWS\system32\svchost.exe does not contain debugging information. Press OK to continue. Then after a delay I get a dialog saying: Error: Phone Dialer Operation: Initializing Windows Telephony Services Details: Failed initializing a telephony service component (TAPI3.DLL). System registry may be corrupted. If symptoms persist, try restarting Windows or using REGSVR32 to update registry settings for the TAPI components. Error: The operation failed for an unspecified reason. What am I doing wrong? Angus
"Angus" schrieb im Newsbeitrag news:OaXADCp3IHA.1428@TK2MSFTNGP06.phx.gbl... > I followed the notes on Andreas Marshall's TAPI and TSP FAQ site and edited > my HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv\ImagePath > to: > > "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" > %SystemRoot%\System32\svchost.exe -k tapisrv Angus, I guess you are using VS6 for debugging? > [Previously it was: %SystemRoot%\System32\svchost.exe -k netsvcs] > > Andreas site suggested that it would be originally be: > %SystemRoot%\System32\svchost.exe -k tapisrv - on Windows 2000 and higher. > But my XP system had netsvcs - don't know if this makes a difference? Yes, it makes a difference! By default you have parameter netsvcs on client OS (except Vista where it isn't netsvcs but something similar) and paramter tapisrv on server OS (I'm not sure about WS2k8). The difference determines whether the Telephony Service runs exclusively within its own SvcHost or in a shared SvcHost. See my TAPI and TSPI FAQ: Q: How can I run TAPISRV exclusively in a svchost process ? http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_How_can_6 For TSP debiugging ot is always recommended to run the Telephony Service exclusively within its own SvcHost - otherwise you may severly affect other services! > I also made the service interact with desktop change. > > When I then launch dialer.exe MSDev is loaded and I press F5 to debug - get > message C:\WINDOWS\system32\svchost.exe does not contain debugging > information. Press OK to continue. > > Then after a delay I get a dialog saying: > > Error: Phone Dialer > > Operation: Initializing Windows Telephony Services > Details: Failed initializing a telephony service component (TAPI3.DLL). > System registry may be corrupted. If symptoms persist, try restarting > Windows or using REGSVR32 to update registry settings for the TAPI > components. > Error: The operation failed for an unspecified reason. > > What am I doing wrong? Please try changing TAPISRV to run in exclusive mode first, e.g. via my Toto® Tool TAPIex: http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm#_Toto®_Tool_TAPIex_1 Please note that this tool currently doesn't support Vista. -- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK / Visual C++ TAPI / TSP Developer and Tester My TAPI and TSPI FAQ: http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm My Toto® Tools (a collection of free, mostly TAPI related tools): http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm TAPI development around the world (Frappr! map): http://www.frappr.com/TAPIaroundTheWorld * Please post all messages and replies to the newsgroup so all may * benefit from the discussion. Private mail is usually not replied to. * This posting is provided "AS IS" with no warranties, and confers no rights.
"Andreas Marschall [MVP TAPI]" wrote in message news:uaOk#wp3IHA.1428@TK2MSFTNGP06.phx.gbl... > "Angus" schrieb im Newsbeitrag > news:OaXADCp3IHA.1428@TK2MSFTNGP06.phx.gbl... > > I followed the notes on Andreas Marshall's TAPI and TSP FAQ site and edited > > my HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv\ImagePath > > to: > > > > "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" > > %SystemRoot%\System32\svchost.exe -k tapisrv > > Angus, > I guess you are using VS6 for debugging? ** Hi, you are working on a Saturday too... ** Yes VC++ v6. > > > > [Previously it was: %SystemRoot%\System32\svchost.exe -k netsvcs] > > > > Andreas site suggested that it would be originally be: > > %SystemRoot%\System32\svchost.exe -k tapisrv - on Windows 2000 and higher. > > But my XP system had netsvcs - don't know if this makes a difference? > > Yes, it makes a difference! > By default you have parameter netsvcs on client OS (except Vista where it > isn't netsvcs but something similar) and paramter tapisrv on server OS (I'm > not sure about WS2k8). > The difference determines whether the Telephony Service runs exclusively > within its own SvcHost or in a shared SvcHost. > See my TAPI and TSPI FAQ: > Q: How can I run TAPISRV exclusively in a svchost process ? > http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_How_can_ 6 > For TSP debiugging ot is always recommended to run the Telephony Service > exclusively within its own SvcHost - otherwise you may severly affect other > services! > > > > I also made the service interact with desktop change. > > > > When I then launch dialer.exe MSDev is loaded and I press F5 to debug - get > > message C:\WINDOWS\system32\svchost.exe does not contain debugging > > information. Press OK to continue. > > > > Then after a delay I get a dialog saying: > > > > Error: Phone Dialer > > > > Operation: Initializing Windows Telephony Services > > Details: Failed initializing a telephony service component (TAPI3.DLL). > > System registry may be corrupted. If symptoms persist, try restarting > > Windows or using REGSVR32 to update registry settings for the TAPI > > components. > > Error: The operation failed for an unspecified reason. > > > > What am I doing wrong? > > Please try changing TAPISRV to run in exclusive mode first, e.g. via my Toto® > Tool TAPIex: > http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm#_Toto®_Tool_TAPIex_ 1 > Please note that this tool currently doesn't support Vista. ** I will download and let you know how I get on. Many thanks again. > > -- > Best Regards > Andreas Marschall > Microsoft MVP for TAPI / Windows SDK / Visual C++ > TAPI / TSP Developer and Tester > My TAPI and TSPI FAQ: > http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm > My Toto® Tools (a collection of free, mostly TAPI related tools): > http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm > TAPI development around the world (Frappr! map): > http://www.frappr.com/TAPIaroundTheWorld > * Please post all messages and replies to the newsgroup so all may > * benefit from the discussion. Private mail is usually not replied to. > * This posting is provided "AS IS" with no warranties, and confers no rights. > > >
Angus, I find it much easier to debug by attaching to the tapisrv process. This way you don't need to wait for Visual Studio to be loaded for every debug run. I have even created a plugin for VS 2005 and VS 2008 which let's you debug tapisrv from the IDE with a single mouse click: http://www.tapi.info/default.aspx/TAPI/DebugTapisrvAddIn.html PS: In any case you should set tapisrv to exclusive mode. Best regards, Matthias Moetje ------------------------------------- TAPI WIKI: http://www.tapi.info ------------------------------------- TERASENS GmbH Augustenstraße 24 80333 Munich, GERMANY ------------------------------------- e-mail: moetje at terasens dot com www: www.terasens.com ------------------------------------- "Angus" wrote in message news:OaXADCp3IHA.1428@TK2MSFTNGP06.phx.gbl... > Hello > > I followed the notes on Andreas Marshall's TAPI and TSP FAQ site and > edited > my HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv\ImagePath > to: > > "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" > %SystemRoot%\System32\svchost.exe -k tapisrv > > [Previously it was: %SystemRoot%\System32\svchost.exe -k netsvcs] > > Andreas site suggested that it would be originally be: > %SystemRoot%\System32\svchost.exe -k tapisrv - on Windows 2000 and higher. > But my XP system had netsvcs - don't know if this makes a difference? > > I also made the service interact with desktop change. > > When I then launch dialer.exe MSDev is loaded and I press F5 to debug - > get > message C:\WINDOWS\system32\svchost.exe does not contain debugging > information. Press OK to continue. > > Then after a delay I get a dialog saying: > > Error: Phone Dialer > > Operation: Initializing Windows Telephony Services > Details: Failed initializing a telephony service component (TAPI3.DLL). > System registry may be corrupted. If symptoms persist, try restarting > Windows or using REGSVR32 to update registry settings for the TAPI > components. > Error: The operation failed for an unspecified reason. > > What am I doing wrong? > > Angus > >
"Angus" schrieb im Newsbeitrag news:ubVGOHq3IHA.784@TK2MSFTNGP04.phx.gbl... > > I guess you are using VS6 for debugging? > > ** Hi, you are working on a Saturday too... Angus, yes, or at least I'm online... > ** Yes VC++ v6. Ok, for later VS Matthias already posted his plug-in to easily attach to a running SVCHOST with TAPISRV > > Please try changing TAPISRV to run in exclusive mode first, e.g. via my > > Toto® Tool TAPIex: > > http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm#_Toto®_Tool_TAPIex_1 > > Please note that this tool currently doesn't support Vista. > > ** I will download and let you know how I get on. Many thanks again. Ok. -- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK / Visual C++ TAPI / TSP Developer and Tester My TAPI and TSPI FAQ: http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm My Toto® Tools (a collection of free, mostly TAPI related tools): http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm TAPI development around the world (Frappr! map): http://www.frappr.com/TAPIaroundTheWorld * Please post all messages and replies to the newsgroup so all may * benefit from the discussion. Private mail is usually not replied to. * This posting is provided "AS IS" with no warranties, and confers no rights.