Dear Support,
I’ve attached a repro case of a problem that we are experiencing. The example significantly cutdown, but the gist of is it that attempting to edit a data source in a DashboardDesigner generates popups and exceptions. The important difference between what we are doing and typical usage cases is that we are an unmanaged application which loads the .Net framework “on demand” to run managed code.
To reproduce the problem:
- Build the attached solution, it contains 3 projects.
- Start the ConsoleApplication1 project (without debugging)
- You should see a console application (unmanaged) start and then
- A Windows.Forms form containing a Ribbon and a Dashboard
- Select the “Data Source” tab
- Click “Edit”
- You should see the message box “No suitable object was found….”
- Click “OK”
- You now get an Unhandled Exception dialog box: “Object reference not set to an instance of an object”
- Click “Continue”
- Press “Edit” again
- You now see a “Configure Data Source” dialog box, with no sources listed.
- Close all the Forms to exit the application
- If you just run WindowsFormsApplication1.exe and go through steps 1-4, you should see a dialog that allows navigation to the data sources.
I’ve had a sneaky look at the code with the debugger and .Net Reflector (http://www.red-gate.com), and it looks like the DevExpress assemblies call GetEntryAssembly to try to locate potential data sources. In this scenario this returns null, because the entry point to the program is an unmanaged binary.
I think our initial problems/questions are:
- What’s the cause of the “Unhandled Exception box”? Is that a bug in the DevExpress code, or a result of something else we’re doing wrong.
- Would it be possible, in the case where GetEntryAssembly returns null, to locate data sources in other assemblies?
- Why does the “Edit” button behave differently the 2nd time you click it?
Thank you,
Alexey
Part 2 of 4
Part 3 of 4
Part 4 of 4
…and message text reformatted:
I’ve attached a repro case of a problem that we are experiencing. The example significantly cutdown, but the gist of is it that attempting to edit a data source in a DashboardDesigner generates popups and exceptions. The important difference between what we are doing and typical usage cases is that we are an unmanaged application which loads the .Net framework “on demand” to run managed code.
To reproduce the problem:
a. You should see a console application (unmanaged) start and then
b. A Windows.Forms form containing a Ribbon and a Dashboard
a. You should see the message box “No suitable object was found….”
a. You now get an Unhandled Exception dialog box: “Object reference not set to an instance of an object”
a. You now see a “Configure Data Source” dialog box, with no sources listed.
I’ve had a sneaky look at the code with the debugger and .Net Reflector (http://www.red-gate.com), and it looks like the DevExpress assemblies call GetEntryAssembly to try to locate potential data sources. In this scenario this returns null, because the entry point to the program is an unmanaged binary.
I think our initial problems/questions are:
Hi Alexey,
Thank you for posting your sample project. We will examine this behavior in greater detail and will check for a suitable solution. Your patience is appreciated.
Alexey,
Thank you for your patience.
We reproduced this issue and passed it to our developers for further research. Once we have any news, we will update this thread.