Document Type is not defined

I'm getting an error in Dataphoria every time I try to open any kind of document via the File-->Open File command.

For Text files (*.txt) the error is:
Application:124111 --->
Document type (txt) is not defined, or there is no default designer specified for it.
---- Server Context ----
at Alphora.Dataphor.Dataphoria.Dataphoria.GetDefaultDesigner(String ADocumentTypeID)
at Alphora.Dataphor.Dataphoria.Dataphoria.OpenFiles(String[] AFileNames)
at Alphora.Dataphor.Dataphoria.Dataphoria.FrameBarManagerItemClicked(Object ASender, BarItemClickedEventArgs AArgs)

Or, for Dataphor files (*.d4):
Application:124111 --->
Document type (d4) is not defined, or there is no default designer specified for it.
---- Server Context ----
at Alphora.Dataphor.Dataphoria.Dataphoria.GetDefaultDesigner(String ADocumentTypeID)
at Alphora.Dataphor.Dataphoria.Dataphoria.OpenFiles(String[] AFileNames)
at Alphora.Dataphor.Dataphoria.Dataphoria.FrameBarManagerItemClicked(Object ASender, BarItemClickedEventArgs AArgs)

Any ideas?

Document Type definitions

The set of document types for Dataphoria is stored in the file DocumentTypes.bop in the Frontend library directory. Try selecting from the DocumentTypes table to see if there are any defined. If not, that file is probably missing. The Frontend Register script contains a statement that will populate the table with the default document types.

The default designer for each document type is stored in the Frontend.DocumentTypeDefaultDesigners.dat file in the Data folder of the Dataphor instance. This table is also populated by a statement in the Frontend Register script if you need to rebuild the default state.

Hope this helps,
Bryn Rhodes
Database Consulting Group LLC

CreateInstance problem

Thank you, that fixed opening most document types. However, I still get the following error when trying to open dfd files, and when trying to double-click to open up a table:

Exception --->
CreateInstance: Class (FormInterface) not found in node type list.
---- Stack Trace ----
at Alphora.Dataphor.Frontend.Client.NodeTypeTable.CreateInstance(String AClassName)
at Alphora.Dataphor.Frontend.Client.Session.CreateForm()
at Alphora.Dataphor.Frontend.Client.Windows.Session.LoadNextForm(IHost AHost)
at Alphora.Dataphor.Frontend.Client.Windows.Session.RootFormAdvance(IFormInterface AForm)
at Alphora.Dataphor.Frontend.Client.Windows.Session.StartCallback(String ADocument, EventHandler AOnComplete)
at Alphora.Dataphor.Dataphoria.ObjectTree.BaseTableNode.BrowseClicked(Object ASender, EventArgs AArgs)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.PerformClick()
at Alphora.Dataphor.Dataphoria.BaseTree.ExecuteDefaultMenuItem()
at Alphora.Dataphor.Dataphoria.BaseTree.OnDoubleClick(EventArgs AArgs)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at Alphora.Dataphor.Dataphoria.TreeView.WndProc(Message& AMessage)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Class not found in Node Type list

This error is usually caused by a missing node types document (dnt). Check to make sure that the Frontend library has the Web.NodeTypes [dnt] document present.

Hope this helps,
Bryn Rhodes
Database Consulting Group LLC

Frontend Tables

That did help. I went and looked to see if that document was present, and it was. However, I selected some of the tables within the Frontend library and noticed that several of the tables were empty. I believe the table that fixed my problem, once I repopulated it, was the ClientTypes table.

Thanks again!