I am using Creo Parametric - Release 7.0 (connected) 7.0 126.96.36.199
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)
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 188.8.131.52 installation and NOT from Creo 4.0 installation. If this variable is already set correct, please try the below
Recompile the VB API application with below references resolved the reported problem. Please refer to https://www.ptc.com/en/support/article/CS352808