Hi Ivan,

1. I realised the problem was with the Visual Studio compiler, it was still
using a 32 bit compiler on my 64 bit OS.
I installed the cross compiler..

However, Now I am sticking to the 32 bit Vista itself cos it was working
through command line..

2. I used the source code checkout from
https://svn.mindtouch.com/source/public/sedna/trunk/
Then I built and ran the WinSedna file..
It built and the bin and obj folders..
I added a reference to the dll file in my project. Its a simple connect to
the DB code..

Infact, even when I ran the sample code provided by Sedna developers, the
login window pops up.. And when I click login, it threw the aforementioned
error..

3. This is the code I am trying to run. I am a beginner to C# and Sedna, so
all your help is greatly appreciated..

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Sedna;
//using Sedna.Net;

namespace MySednaConnect
{
    class Program
    {
        static void Main(string[] args)
        {
            string file = "f:";
            try
            {
                SednaSession session = new SednaSession();

                session.Start("localhost", SednaSession.DEFAULT_SERVER_PORT,
"testdb", "guest", "guest");

                session.Execute("LOAD \" " + file + " \" " + "\"" +
"FirstInstance.xml" + "\"");

                Console.WriteLine("Successfully added a file to db");
                session.Close();

            }
            catch (System.Net.Sockets.SocketException ex)
            {
                Console.WriteLine("ex.Data = " + ex.Data + "\nex.Message = "
+ ex.Message
                                + "\nex.StackTrace = " + ex.StackTrace
                                + "\nex.ToString = " + ex.ToString()
                              + "\nex.SocketErrorCode = " +
ex.SocketErrorCode);
            }
        }
    }
}

Thanks,

On Mon, Mar 21, 2011 at 1:13 AM, <
[email protected]> wrote:

> Send Sedna-discussion mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/sedna-discussion
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Sedna-discussion digest..."
>
>
> Today's Topics:
>
>   1. Re: SEDNA Message: ERROR SE4040 (Ivan Shcheklein)
>   2. Sedna Rubygem Windows (leondo)
>   3. Sedna in Vista, SocketException (janani thiru)
>   4. Re: Sedna in Vista, SocketException (Ivan Shcheklein)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 17 Mar 2011 18:45:04 +0300
> From: Ivan Shcheklein <[email protected]>
> Subject: Re: [Sedna-discussion] SEDNA Message: ERROR SE4040
> To: N dhert <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
>
> >From the installation guide (http://modis.ispras.ru/sedna/install):
>
> "The operating system user that is going to run Sedna must have r-w-x
> permissions
> for the following Sedna directories:
> $SEDNA_INSTALL/data
> $SEDNA_INSTALL/cfg"
>
>
> Try to run: chown <user> cfg data.
>
>
> Ivan Shcheklein,
> Sedna Team
>
> On FreeBSD 8.1 (amd64), I installed sedna-3.4.66-bin-freebsd-static-x64.sh
> > in /opt (while being root),
> > /opt/sedna had UID/GID 1001:1001, changed that to root:wheel
> > # chown -R root:wheel /opt/sedna
> > Starting sedna is ok
> > # se_gov
> > GOVERNOR has been started in the background mode
> >
> > then as a normal user:
> > [me@mymach ~]$ se_cdb testdb
> > Creating a database (this can take a few minutes)...
> > SEDNA Message: ERROR SE4040
> > Can't create file
> > Details: database configuration file
> > Cannot complete cleanup. Please stop Sedna and remove the following:
> > file   -  /cfg/testdb_cfg.xml
> > folder -  /data/testdb_files
> > Sorry for inconvenience.
> >
> > /opt/sedna/data/event.log shows only messages about the start stops I did
> > of sedna
> > (no other files in /opt/sedna/data, /opt/sedna/cfg is empty)
> >
> > whats wrong and how to solve?
> >
> >
> >
> ------------------------------------------------------------------------------
> > Colocation vs. Managed Hosting
> > A question and answer guide to determining the best fit
> > for your organization - today and in the future.
> > http://p.sf.net/sfu/internap-sfd2d
> > _______________________________________________
> > Sedna-discussion mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/sedna-discussion
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Sat, 19 Mar 2011 19:30:32 +0200
> From: leondo <[email protected]>
> Subject: [Sedna-discussion] Sedna Rubygem Windows
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> Hello I have a problem installing sedna-ruby rubygem to my system
> (http://rubygems.org/gems/sedna).
> My system:
> Windows 7 x64
> ruby 1.9.2p136 [i386-mingw32]
> rubygems 1.6.2 (I tried with older versions too before upgrading to 1.6.2)
> DevKit-tdm-32-4.5.1-20101214-1400
> sedna-3.4.66 both x86 and x64
>
> I'm trying to install it with the commands gem install sedna, gem
> install sedna -- --with-sedna-dir=path_to_my_sedna, but it makes errors.
>
> Temporarily enhancing PATH to include DevKit...
> Building native extensions.  This could take a while...
> ERROR:  Error installing sedna:
>         ERROR: Failed to build gem native extension.
>
>         C:/Ruby192/bin/ruby.exe extconf.rb
> --with-sedna-dir=E:/_temp/sedna-3.4.
> 6-src-win/sedna-3.4.66
> checking for SEconnect() in -lsedna... no
>
>
> ==============================================================================
> Could not find libsedna.
>
> * Did you install Sedna in a non default location? Call extconf.rb
>   with --with-sedna-dir=/path/to/sedna to override it. With rubygems:
>
>     gem install sedna -- --with-sedna-dir=/path/to/sedna
>
> * Did you install a version of Sedna not compiled for your architecture?
>   The standard Sedna distribution of Sedna is compiled for i386. If your
>   platform is x86_64, and your Ruby was compiled as x86_64, you must
>   recompile Sedna for x86_64 as well. Download the sources at:
>
>     http://modis.ispras.ru/sedna/download.html
>
> ==============================================================================
>
>
>
>
> *The mkmf.log file in the
> C:\Ruby192\lib\ruby\gems\1.9.1\gems\sedna-0.6.0\ext\sedna has this
> content:*
>
>
> -----------------------------------------------------------------------------------------------------------------------
> find_library: checking for SEconnect() in -lsedna... --------------------
> no
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib
> -L.      -lmsvcrt-ruby191-static  -lshell32 -lws2_32  "
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5: int main() {return 0;}
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib
> -L.      -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
> conftest.c: In function 't':
> conftest.c:8:53: error: 'SEconnect' undeclared (first use in this function)
> conftest.c:8:53: note: each undeclared identifier is reported only once
> for each function it appears in
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { void ((*volatile p)()); p = (void ((*)()))SEconnect; return
> 0; }
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib
> -L.      -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
>
> c:/ruby192/a/mingw/bin/../lib/gcc/mingw32/4.5.1/../../../../mingw32/bin/ld.exe:
> cannot find -lsedna
> collect2: ld returned 1 exit status
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { SEconnect(); return 0; }
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib
> -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/driver/c -L.
> -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
> conftest.c: In function 't':
> conftest.c:8:53: error: 'SEconnect' undeclared (first use in this function)
> conftest.c:8:53: note: each undeclared identifier is reported only once
> for each function it appears in
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { void ((*volatile p)()); p = (void ((*)()))SEconnect; return
> 0; }
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib
> -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/driver/c -L.
> -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
>
> c:/ruby192/a/mingw/bin/../lib/gcc/mingw32/4.5.1/../../../../mingw32/bin/ld.exe:
> cannot find -lsedna
> collect2: ld returned 1 exit status
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { SEconnect(); return 0; }
> /* end */
>
>
>
> -----------------------------------------------------------------------------------------------------------
>
>
> It doesn't find SEconnect() in sedna.c? I don't understand what is
> happenning.
> If anyone encountered something like this please help. I know it's not
> something wrong with sedna, but I can't find a solution.
> Thank you in advance
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Mon, 21 Mar 2011 00:22:30 +0530
> From: janani thiru <[email protected]>
> Subject: [Sedna-discussion] Sedna in Vista, SocketException
> To: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have been trying to connect to sedna server using C#.
> It didn't work in my windows 7 64 bit OS..
> Finally, I switched to 32 bit sedna and installed it on vista cos we're
> using .net platform for a web application.
>
> However, now when I try to connect to sedna I get an error message saying
>
> Unable to contact the server
> An address incompatible with the requested protocol was used ::1:5050
> Socket Exception
>
>
> Can someone please help me??
>
> Thank you
>
> --
> Janani T
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 4
> Date: Sun, 20 Mar 2011 22:43:53 +0300
> From: Ivan Shcheklein <[email protected]>
> Subject: Re: [Sedna-discussion] Sedna in Vista, SocketException
> To: janani thiru <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Janani,
>
> 1. What was the error on Windows 7 + Sedna x64?
> 2. What C# driver do you use?
> 3. Give us not working example in C#.
>
> Ivan Shcheklein,
> Sedna Team
>
> I have been trying to connect to sedna server using C#.
> > It didn't work in my windows 7 64 bit OS..
> > Finally, I switched to 32 bit sedna and installed it on vista cos we're
> > using .net platform for a web application.
> > However, now when I try to connect to sedna I get an error message saying
> >
> > Unable to contact the server
> > An address incompatible with the requested protocol was used ::1:5050
> > Socket Exception
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
>
> ------------------------------
>
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
>
> End of Sedna-discussion Digest, Vol 55, Issue 5
> ***********************************************
>



-- 
Janani T
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to