Skip to main content
Nintex Community Menu Bar
Solved

Cannot de-register custom control

  • January 9, 2017
  • 2 replies
  • 27 views
  • Translate

Forum|alt.badge.img+3

Hi,

 

I'm not able tp deregister a customk control.

This solution http://community.k2.com/t5/K2-blackpearl/Cannot-de-register-custom-control/m-p/70494#M20215 does not work for me.

 

The designer website appears the message: "Could not load file or assembly 'LHTabControl' or one of its dependencies. The system cannot find the file specified."

 

The deregister command does not work with this message:

DeregisterControlType Failed: ControlTypeHasInstances,MyCustomControlProjectAG
System.Data.SqlClient.SqlException (0x80131904): ControlTypeHasInstances,MyCusto
mControlProjectAG
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String Type
Name, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessage
Type CallType)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteSessionCall(String TypeNam
e, String MethodName, Object[] Parameters, Boolean[] NullList)
   at SourceCode.Forms.Management.FormsManager.DoSessionCall(String method, Obje
ct[] parameters, Boolean[] nullList)
   at SourceCode.Forms.Management.FormsManager.DeleteControlType(String name, St
ring replaceWith)
   at SourceCode.Forms.Controls.Web.SDK.Installer.Program.DeregisterControlTypes
(String assemblyName, String replaceWith)
ClientConnectionId:6ded3a46-2db8-4c96-a549-1e15a847eb7b
Error Number:50000,State:1,Class:15

 

any ideas?

 

Andi

 

Best answer by tin

The error contains 'ControlTypeHasInstances'; perhaps it is being used in a View/Form somewhere.  Perhaps try:


 


"If the control is already used on Views and Forms, then use the replaceWith command to deregister it as it will not be deregistered unless it is being replaced with another:


controlutil deregister -control:{controltypename} [-replaceWith:{controlName}]


controlutil deregister -assembly:{assemblyname} [-replaceWith:{controlName}]"


 


https://help.k2.com/onlinehelp/K2smartforms/DevRef/4.7/default.htm#Using_controlutil.exe.html?Highlight=controlutil


 


with something like a data label control,


 


controlutil deregister -control:LHTabControl -replaceWith:DataLabel

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+18
  • 555 replies
  • Answer
  • January 9, 2017

The error contains 'ControlTypeHasInstances'; perhaps it is being used in a View/Form somewhere.  Perhaps try:


 


"If the control is already used on Views and Forms, then use the replaceWith command to deregister it as it will not be deregistered unless it is being replaced with another:


controlutil deregister -control:{controltypename} [-replaceWith:{controlName}]


controlutil deregister -assembly:{assemblyname} [-replaceWith:{controlName}]"


 


https://help.k2.com/onlinehelp/K2smartforms/DevRef/4.7/default.htm#Using_controlutil.exe.html?Highlight=controlutil


 


with something like a data label control,


 


controlutil deregister -control:LHTabControl -replaceWith:DataLabel

Translate

Forum|alt.badge.img+3
  • Author
  • 7 replies
  • January 10, 2017

Hi tin,

 

thank you very much - the replacement of the control with a DataLabel was successful. :-)

First I tried to replace the control withan other control of the same assembly. This did not work. But the replacement with a DataLabel was successful - thank you!!

 

Andi

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings