2 Replies Latest reply on Oct 18, 2011 3:00 PM by 825689

    FDM Error for a script

    825689
      Hi All,

      We migrated a FDM app from 9.3.1 to 11.1.2.1 .....We have this script........when executed from web we are getting error:

      ============================================================================
      Description: An exception occurred during the execution of the current web request. Please contact the administrator to review the stack trace in the event log for more information about the error.

      Source:

      http://server01/HyperionFDM/Pages/TableEditor.aspx?TableName=TSCRIPTPARAMETERS

      =========================EVENT VIEWER=============================================

      Application Error
      Description: An exception occurred during the execution of the current web request. Please contact the administrator to review the stack trace in the event log for more information about the error.

      Source:

      http://server01/HyperionFDM/Pages/TableEditor.aspx?TableName=TSCRIPTPARAMETERS



      Exception Details:

      Could not load type 'Hyperion.FDM.Pages.TableEditor'.

      Stack Trace:

      at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError)
      at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)
      at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)

      at System.Web.UI.TemplateParser.ProcessException(Exception ex)
      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
      at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)



      ================================================================================

      Sub webEditScriptParameters()
      '------------------------------------------------------------------
      'Purpose:      This script is used to open the custom table
      '                    tScriptParameters in a web interface - this table
      '                    is used to set/edit variables that are used across
      '                    multiple scripts
      '
      'In Use:          Yes
      '
      '------------------------------------------------------------------

      strTableName = "TSCRIPTPARAMETERS"
      lngUserLevel = 1

      'Check that user is a Power user
      If API.DataWindow.Connection.PintUserSecLevel > lngUserLevel Then

           'Set the message value
           strMessage = "You do not have sufficient rights to access this table!"
           
           If LCase(API.DataWindow.Connection.PstrClientType) = "workbench" Then
                'Win32 Client (Use Msgbox)
                MsgBox "You must run this script from the web!"
           Else
                'Web Client (Set API action properties)
                RES.PlngActionType = 2                    '(See Enumeration: ScriptActionTypes)
                RES.PstrActionValue = strMessage
           End If
           
      Else

           If LCase(API.DataWindow.Connection.PstrClientType) = "workbench" Then
                'Win32 Client (Use Msgbox)
                MsgBox "You must run this script from the web!"
           
           'Open the table for editing
           Else
           'MsgBox "Test"
                RES.PlngActionType = 5
                RES.PstrActionValue = "../Pages/TableEditor.aspx?TableName=" & strTableName
           End If          
           
      End If

      End Sub
      =================================================================================

      How can we solve it?