# UIShow Generates a Fault

**URL:** <https://tech-community.robotics.abb.com/t/uishow-generates-a-fault/2635>\
**Category:** Developer Tools\
**Created:** [April 2, 2009, 7:23pm UTC](https://tech-community.robotics.abb.com/t/uishow-generates-a-fault/2635 "2009-04-02T19:23:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenny\_S](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kenny\_S](https://tech-community.robotics.abb.com/u/Kenny_S)\
**Post date:** [April 2, 2009, 7:23pm UTC](https://tech-community.robotics.abb.com/t/uishow-generates-a-fault/2635/1 "2009-04-02T19:23:04Z")

</div>

Hi Everyone,

I can’t seem to get UIShow to launch my screen.

The names of the application extentions in my home directory are:

TpsViewFSWControlScreen.dll  
TpsViewFSWControlScreen.gtpu.dll

In Rapid I have this:

* * *

CONST string Name:=“TpsViewFSWControlScreen.gtpu.dll”;  
CONST string Type:=“ABB.Robotics.SDK.Views.TpsViewFSWControlScreen”;  
CONST string Cmd1:=“Init data string passed to the view”;  
PERS uishownum myinstance:=0;  
VAR num mystatus:=0;

UIShow Name,TypeInitCmd:=Cmd1InstanceID:=myinstanceStatus:=mystatus;

* * *

Why does executing UIShow generate the following error?

41664 The typename is invalid for this assembly 2009-04-01 14:02:01  
Task: T\_ROB1 The inparameter TypeName is invalid.  
The typename does not match the assembly.Status -5.  
Program Ref /SWV50\_Gantry/StirL/UIShow/483.  
{args: “T\_ROB1”, “TypeName”, “-5”, “/  
SWV50\_Gantry/StirL/UIShow/483”, “ERR\_UISHOW\_FATAL”}

---

<div class="post-metadata">

**Author:** ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)\
**Post date:** [April 2, 2009, 9:04pm UTC](https://tech-community.robotics.abb.com/t/uishow-generates-a-fault/2635/2 "2009-04-02T21:04:24Z")

</div>

Try the following:

UIShow “TpsViewFSWControlScreen.gtpu.dll”, “ABB.Robotics.SDK.Views.TpsViewFSWControlScreen”;

Also make sure of the following in bold matches in your assembly attribute:

\<Assembly: ABB.Robotics.Tps.Taf.TpsView(“UIShow Test”, “tpu-Operator32.gif”, “tpu-Operator16.gif”, “ **TpsViewFSWControlScreen**.dll”, \_

“ **TpsViewFSWControlScreen**. **TpsViewFSWControlScreen** ”, StartPanelLocation.Left, TpsViewType.Static, TpsViewStartupTypes.Manual)\>

And that the name of your view class is TpsViewFSWControlScreen.

---

<div class="post-metadata">

**Author:** ![Kenny\_S](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kenny\_S](https://tech-community.robotics.abb.com/u/Kenny_S)\
**Post date:** [April 3, 2009, 6:01pm UTC](https://tech-community.robotics.abb.com/t/uishow-generates-a-fault/2635/3 "2009-04-03T18:01:40Z")

</div>

Russell,

Would you please clarify your suggestion:

_“And that the name of your view class is TpsViewFSWControlScreen.”_

Explain “view class”, please.

Thank You  
Kenny

---

<div class="post-metadata">

**Author:** ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)\
**Post date:** [April 3, 2009, 7:07pm UTC](https://tech-community.robotics.abb.com/t/uishow-generates-a-fault/2635/4 "2009-04-03T19:07:16Z")

</div>

When you create a FlexPendant type project, their will be a class file added to the project called view.vb or view.cs. This is what I was referring to as the view class.

By default, the class name declaration that represents the FlexPendant application type, e.g. inherits from TpsForm or TpsControl, will be the same as the project name that you select when you run the project wizard. This information will automaically be updated in the Assembly attribute that is defined just above the class declaration when your application is created.

If, however, you change then name of the class, then you must change this in the assembly attribute manually.

Here is an example of valid info from a VB project:

\<Assembly: ABB.Robotics.Tps.Taf.TpsView(“UIShow Test”, “tpu-Operator32.gif”, “tpu-Operator16.gif”, “TpsViewUIShow.dll”, \_

“TpsViewUIShow.TpsViewUIShow”, StartPanelLocation.Left, TpsViewType.Static, TpsViewStartupTypes.Manual)\>

Public Class **TpsViewUIShow**

Inherits TpsControl

Implements ITpsViewSetup, ITpsViewActivation

Note that if you can open your application correctly from the start menu that this stuff should be OK.
