Eloquera with ASP.NET MVC. Error

634 views Asked by At

I am curious about using an object db so thought i'd give Eloquera a go.

I am having problems getting it running unfortunately. (running in "desktop mode")

I have done these steps as directed:

1) Copy the following assemblies and a configuration file from the %ProgramFiles%\Eloquera folder into a project folder: Eloquera.config Eloquera.Client.dll Eloquera.Common.dll Eloquera.Server.exe

You can copy the reference files into a separate folder for your convenience.

2) Uninstall the Eloquera DB (sounds awful, but we have copies all files we will need) - (I never installed it)

3) Add Eloquera.config into your project via “Add an existing item…”, and set its "Copy to Output Directory" property to "Copy Always". Done

4) Add the project references to these files: Eloquera.Client.dll yep
Eloquera.Server.exe yep

5) Rebuild your project and check that Debug\ and/or Release\ folders contain the following files along with your application: Eloquera.config Eloquera.Client.dll Eloquera.Common.dll Eloquera.Server.exe
It does

6) You may change a physical path to the database files in the Eloquera.config file by setting DatabasePath value:

DatabasePath="c:\dev\db" I did this also

The error i get is this:

The connection to the server (local) on the port 43962 cannot be established.

The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

Weirdly, changing ServerPort to something else in the config does not change this error.

Any ideas?

4

There are 4 answers

0
4imble On

I think this mode is not supported.

You are meant to use Client / Server mode, which is a shame cause i was hoping i could use this desktop method to deploy into a shared host.

No dice.

4
user579806 On

You can download from Eloquera website desktop project that is already configured and working and can be used as a base.

1
Jay Haybatov On

Kohan,

Desktop mode is supported in Eloquera, otherwise my application would not work. :-) There is a good start-up project for the desktop application on the Eloquera web site, have a look at that.

0
Adam On

I get this issue with VS2010 and 64 bit Windows 7 - if you are using the 32 bit dlls (as we are as our app needs to work on 32/64) then make sure your target build (in VS) is set to 32 bit rather than AnyCPU.

I still cannot get the Database browser working but the code is working now.

Also - obvious things like make sure your firewall is turned off etc. make sure you can telnet onto the port