Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
@Raju2 wrote:
I am using Creo Parametric - Release 7.0 (connected) 7.0 7.0.3.0
We are facing problem of connecting to Creo 7.0 Session through VB.Net API. The same code is working while using it on the Creo 4.0.
Throws System.Runtime.InteropServices.COMException (0x80020009): pfcExceptions::XToolkitCantModify
Followed following steps before running code.
1. VB API registered.
2. All required Environment Variables set properly.
3. Checked Access permissions on pfcls com. trough Component Service.
Thanks for any help.
Here are the errors that I faced
Unable to connect creo session and throws System.Runtime.InteropServices.COMException (0x80020009): pfcExceptions::XToolkitCantModify at pfcls.ICpfcAsyncConnection.Connect(Object _Display, Object _UserID, Object _TextPath, Object _TimeoutSec)
Hi,
please contact PTC Support.
@Raju2 The most common reasons for XToolkitCantModify exception is setting PRO_COMM_MSG_EXE variable value incorrect. Please make sure that you have set this to the pro_comm_msg.exe file from Creo 7.0.3.0 installation and NOT from Creo 4.0 installation. If this variable is already set correct, please try the below
Thanks,
Seshu
Thank you Seshu,
But the options you have suggested we tried already but didn't worked.
Thanks.
Recompile the VB API application with below references resolved the reported problem. Please refer to https://www.ptc.com/en/support/article/CS352808