Skip to main content
Nintex Community Menu Bar
Solved

Custom Control Deployment Error

  • November 2, 2022
  • 2 replies
  • 39 views
  • Translate

Forum|alt.badge.img+2

Hi,

 

i downloaded nintex example code for custom control and deployed/register at our server with the below command.

controlutil.exe register -assembly:"dll path here"

 

after that i am unable to open designer/management of k2. below error showing

Server Error
Could not load file or assembly 'K2Documentation.Samples.Extensions.SmartForms.CustomControl.ExampleControls' or one of its dependencies. The system cannot find the file specified.
 
i also deregister that control. but still same error showing. i cannot do anything.
 
restated iis and k2 service as well. but still the same.
Please help how can i restore my environment.
 
Regards,

Best answer by KimberlyL

Please try the following:

1. Open the solution in Visual Studio.

 

2. Open definition.xml for each of the below controls:

ExampleControls > HelloWorld

ExampleControls > Textbox

ExampleControls > WithStyles

 

3. Make the following change to remove ExampleControls at the end: 

E.g. 

From:<FullName>K2Documentation.Samples.Extensions.SmartForms.CustomControl.ExampleControls.HelloWorld.Control, K2Documentation.Samples.Extensions.SmartForms.CustomControl.ExampleControls</FullName>

 

To: 

<FullName>K2Documentation.Samples.Extensions.SmartForms.CustomControl.ExampleControls.HelloWorld.Control, K2Documentation.Samples.Extensions.SmartForms.CustomControl</FullName>

 

4. Deploy the solution in Visual Studio.

 

5. Open a command prompt window and run this command to register the control again:

 

controlutil.exe register -assembly: “file path to K2Documentation.Samples.Extensions.SmartForms.CustomControl.dll here” 

 

 

 

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

2 replies

Forum|alt.badge.img+8
  • Nintex Employee
  • 31 replies
  • Answer
  • November 2, 2022

Please try the following:

1. Open the solution in Visual Studio.

 

2. Open definition.xml for each of the below controls:

ExampleControls > HelloWorld

ExampleControls > Textbox

ExampleControls > WithStyles

 

3. Make the following change to remove ExampleControls at the end: 

E.g. 

From:<FullName>K2Documentation.Samples.Extensions.SmartForms.CustomControl.ExampleControls.HelloWorld.Control, K2Documentation.Samples.Extensions.SmartForms.CustomControl.ExampleControls</FullName>

 

To: 

<FullName>K2Documentation.Samples.Extensions.SmartForms.CustomControl.ExampleControls.HelloWorld.Control, K2Documentation.Samples.Extensions.SmartForms.CustomControl</FullName>

 

4. Deploy the solution in Visual Studio.

 

5. Open a command prompt window and run this command to register the control again:

 

controlutil.exe register -assembly: “file path to K2Documentation.Samples.Extensions.SmartForms.CustomControl.dll here” 

 

 

 

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • 6 replies
  • November 2, 2022

Hi,

 

Thanks for your response. it fixed the issue.

but why its showing error with the previous setting?

 

Regards,

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