Eloquera with ASP.NET MVC. Error

青春壹個敷衍的年華 提交于 2019-12-13 15:24:58

问题


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?


回答1:


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.




回答2:


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




回答3:


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.




回答4:


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



来源:https://stackoverflow.com/questions/4875517/eloquera-with-asp-net-mvc-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!