huwlloyd
 New Member Posts:15
 |
| 17 Oct 2008 06:23 PM |
|
"The type or namespace name 'Janus' could not be found (are you missing a using directive or an assembly reference?)" I have just downloaded the Version 3.5 beta and have built a solution, but i am getting the above error. How can i get rid of this and allow generation without relying on a third party grid control i don't have and do not wish to buy. thanks. |
|
|
|
|
eurowise
 Basic Member Posts:107
 |
| 19 Oct 2008 06:51 PM |
|
In the Project Settings of the solution configuration wizard, you need to click on the Options button for the windows application. Under the Application entry, you see an entry named Control Library. Make sure to change that to DotNet. philip |
|
|
|
|
huwlloyd
 New Member Posts:15
 |
| 20 Oct 2008 05:04 PM |
|
Thanks Philip, I have checked the options you suggested and DotNet was selected (as default), but it still generated the exception as stated previously. |
|
|
|
|
eurowise
 Basic Member Posts:107
 |
| 20 Oct 2008 06:30 PM |
|
Can you do this check for me. In the options, deselect DoNet (by selecting Janus) and reselect DotNet again. I think the configuration file contains Janus namespaces by default and in order to reset them you need to do what I just described. Philip |
|
|
|
|
huwlloyd
 New Member Posts:15
 |
| 21 Oct 2008 11:02 AM |
|
Ok, in the options if i expand out DataGridView i see the Type as Janus.Windows.GridEX.GridEX as you mentioned it is set by default. However, if i change the control library to DotNet the DataGridView Type does not change. FYI, if i select Infragistics or DevExpress the DataGridView Type changes as expected to the relevant third party control; again selecting DotNet after any of the others does not change the Type. |
|
|
|
|
eurowise
 Basic Member Posts:107
 |
| 21 Oct 2008 11:56 AM |
|
You are right, it is a bug. It will be fixed for the next release. For the moment this what you can do: -Edit the WinOptions.Config.xml file in the install folder -Replace it by the following content: <?xml version="1.0"?> <WinOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SearchControl> <BackColor>Transparent</BackColor> <ForeColor>windowtext</ForeColor> <SplitterOrientation>Horizontal</SplitterOrientation> <TextBox> <ForeColor>windowtext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.TextBox</Type> <BorderStyle>FixedSingle</BorderStyle> </TextBox> <ComboBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.ComboBox</Type> <DropDownStyle>DropDownList</DropDownStyle> <FlatStyle>Flat</FlatStyle> </ComboBox> <CheckBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.CheckBox</Type> <FlatStyle>Flat</FlatStyle> </CheckBox> <Label> <ForeColor>windowtext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.Label</Type> <BorderStyle>None</BorderStyle> </Label> <Calendar> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.DateTimePicker</Type> <form>at>Long</Format> <ShowCheckBox>false</ShowCheckBox> <ShowUpDown>false</ShowUpDown> </Calendar> <DataGridView> <ForeColor>buttontext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.DataGridView</Type> <GridColor>buttonshadow</GridColor> <SelectionBackColor>highlight</SelectionBackColor> <SelectionForeColor>highlighttext</SelectionForeColor> <CellBorderStyle>Single</CellBorderStyle> <BorderStyle>FixedSingle</BorderStyle> <RowHeadersVisible>false</RowHeadersVisible> <SelectionMode>FullRowSelect</SelectionMode> </DataGridView> <form>lLayout>Columnar</FormlLayout> <BindingSource>ReadOnlyList</BindingSource> </SearchControl> <DataEntryControl> <BackColor>buttonface</BackColor> <ForeColor>windowtext</ForeColor> <SplitterOrientation>Horizontal</SplitterOrientation> <TextBox> <ForeColor>windowtext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.TextBox</Type> <BorderStyle>FixedSingle</BorderStyle> </TextBox> <ComboBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.ComboBox</Type> <DropDownStyle>DropDownList</DropDownStyle> <FlatStyle>Flat</FlatStyle> </ComboBox> <CheckBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.CheckBox</Type> <FlatStyle>Flat</FlatStyle> </CheckBox> <Label> <ForeColor>windowtext</ForeColor> <BackColor>Transparent</BackColor> <Type>System.Windows.Forms.Label</Type> <BorderStyle>None</BorderStyle> </Label> <Calendar> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.DateTimePicker</Type> <form>at>Long</Format> <ShowCheckBox>false</ShowCheckBox> <ShowUpDown>false</ShowUpDown> </Calendar> <DataGridView> <ForeColor>buttontext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.DataGridView</Type> <GridColor>buttonshadow</GridColor> <SelectionBackColor>highlight</SelectionBackColor> <SelectionForeColor>highlighttext</SelectionForeColor> <CellBorderStyle>Single</CellBorderStyle> <BorderStyle>FixedSingle</BorderStyle> <RowHeadersVisible>false</RowHeadersVisible> <SelectionMode>FullRowSelect</SelectionMode> </DataGridView> <SingleFormLayout>Columnar</SingleFormLayout> <MasterDetailsFormLayout>Columnar</MasterDetailsFormLayout> </DataEntryControl> <Application> <Title>Northwind Application</Title> <Icon></Icon> <Type>SDI</Type> <BackColor>buttonface</BackColor> <ForeColor>captiontext</ForeColor> <ControlLibrary>DotNet</ControlLibrary> <TreeView> <ForeColor>activecaption</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.TreeView</Type> <BorderStyle>FixedSingle</BorderStyle> </TreeView> </Application> </WinOptions> |
|
|
|
|
huwlloyd
 New Member Posts:15
 |
| 22 Oct 2008 04:49 PM |
|
thanks Philip - this did the trick. However, the xml above is not well formed - there were a few "errors" within the xml. e.g. <form>>lLayout>Columnar</FormlLayout> is clearly not well formed. For anybody else using the above xml please run through xmlspy or other xml editor to ensure well formed. It is very simple to correct.
|
|
|
|
|
tdrake
 New Member Posts:10
 |
| 09 Nov 2008 02:28 PM |
|
xml with 3 typos fixed.... hope I got em all: <?xml version="1.0" encoding="UTF-8"?> <WinOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SearchControl> <BackColor>Transparent</BackColor> <ForeColor>windowtext</ForeColor> <SplitterOrientation>Horizontal</SplitterOrientation> <TextBox> <ForeColor>windowtext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.TextBox</Type> <BorderStyle>FixedSingle</BorderStyle> </TextBox> <ComboBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.ComboBox</Type> <DropDownStyle>DropDownList</DropDownStyle> <FlatStyle>Flat</FlatStyle> </ComboBox> <CheckBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.CheckBox</Type> <FlatStyle>Flat</FlatStyle> </CheckBox> <Label> <ForeColor>windowtext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.Label</Type> <BorderStyle>None</BorderStyle> </Label> <Calendar> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.DateTimePicker</Type> <form>at>Long</Format> <ShowCheckBox>false</ShowCheckBox> <ShowUpDown>false</ShowUpDown> </Calendar> <DataGridView> <ForeColor>buttontext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.DataGridView</Type> <GridColor>buttonshadow</GridColor> <SelectionBackColor>highlight</SelectionBackColor> <SelectionForeColor>highlighttext</SelectionForeColor> <CellBorderStyle>Single</CellBorderStyle> <BorderStyle>FixedSingle</BorderStyle> <RowHeadersVisible>false</RowHeadersVisible> <SelectionMode>FullRowSelect</SelectionMode> </DataGridView> <form>lLayout>Columnar</FormlLayout> <BindingSource>ReadOnlyList</BindingSource> </SearchControl> <DataEntryControl> <BackColor>buttonface</BackColor> <ForeColor>windowtext</ForeColor> <SplitterOrientation>Horizontal</SplitterOrientation> <TextBox> <ForeColor>windowtext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.TextBox</Type> <BorderStyle>FixedSingle</BorderStyle> </TextBox> <ComboBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.ComboBox</Type> <DropDownStyle>DropDownList</DropDownStyle> <FlatStyle>Flat</FlatStyle> </ComboBox> <CheckBox> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.CheckBox</Type> <FlatStyle>Flat</FlatStyle> </CheckBox> <Label> <ForeColor>windowtext</ForeColor> <BackColor>Transparent</BackColor> <Type>System.Windows.Forms.Label</Type> <BorderStyle>None</BorderStyle> </Label> <Calendar> <ForeColor>buttontext</ForeColor> <BackColor>buttonface</BackColor> <Type>System.Windows.Forms.DateTimePicker</Type> <form>at>Long</Format> <ShowCheckBox>false</ShowCheckBox> <ShowUpDown>false</ShowUpDown> </Calendar> <DataGridView> <ForeColor>buttontext</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.DataGridView</Type> <GridColor>buttonshadow</GridColor> <SelectionBackColor>highlight</SelectionBackColor> <SelectionForeColor>highlighttext</SelectionForeColor> <CellBorderStyle>Single</CellBorderStyle> <BorderStyle>FixedSingle</BorderStyle> <RowHeadersVisible>false</RowHeadersVisible> <SelectionMode>FullRowSelect</SelectionMode> </DataGridView> <SingleFormLayout>Columnar</SingleFormLayout> <MasterDetailsFormLayout>Columnar</MasterDetailsFormLayout> </DataEntryControl> <Application> <Title>Northwind Application</Title> <Icon></Icon> <Type>SDI</Type> <BackColor>buttonface</BackColor> <ForeColor>captiontext</ForeColor> <ControlLibrary>DotNet</ControlLibrary> <TreeView> <ForeColor>activecaption</ForeColor> <BackColor>window</BackColor> <Type>System.Windows.Forms.TreeView</Type> <BorderStyle>FixedSingle</BorderStyle> </TreeView> </Application> </WinOptions> |
|
|
|
|