Re: [Mono-list] Unhandled Exception: System.DllNotFoundException: libclntsh.so

2011-03-20 Thread Bojan Rajkovic
On Mar 20, 2011, at 11:06 PM, wildabdat wrote:

> hi, i'm new on mono develop, trying to make application to connect to oracle
> DB, i found basic program examples on 
> http://www.mono-project.com/Oracle#Examples
> http://www.mono-project.com/Oracle#Examples  , and when i run it get
> following error message
> 
> Unhandled Exception: System.DllNotFoundException: libclntsh.so
>  at (wrapper managed-to-native)
> System.Data.OracleClient.Oci.OciCalls/OciNativeCalls:OCIEnvCreate
> (intptr&,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
>  at System.Data.OracleClient.Oci.OciCalls.OCIEnvCreate (System.IntPtr&
> envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr malocfp, IntPtr
> ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp) [0x0] in :0 
>  at System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor
> (OciEnvironmentMode mode) [0x0] in :0 
>  at System.Data.OracleClient.Oci.OciGlue.CreateConnection
> (OracleConnectionInfo conInfo) [0x0] in :0 
>  at System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
> (OracleConnectionInfo info) [0x0] in :0 
>  at System.Data.OracleClient.OracleConnectionPool.CreateConnection ()
> [0x0] in :0 
>  at System.Data.OracleClient.OracleConnectionPool.GetConnection ()
> [0x0] in :0 
>  at System.Data.OracleClient.OracleConnection.Open () [0x0] in :0 
>  at (wrapper remoting-invoke-with-check)
> System.Data.OracleClient.OracleConnection:Open ()
>  at con.MainClass.Main (System.String[] args) [0xf] in
> /home/wildabdat/Projects/con/con/Main.cs:16
> 
> here is my environment
> 
> ubuntu maverick 10.10 64 bit
> Oracle 10g Express Edition (on the same machine with mono)
> 
> can anyone solve this problem? because i dont wanna back to Windows just to
> develop .Net Application
> 
> thanks...
> 
> --
> @wildabdat

Set your LD_LIBRARY_PATH to point to the ./lib/ folder under $ORACLE_HOME, 
where libclntsh.so is located.

—Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Unhandled Exception: System.DllNotFoundException: libclntsh.so

2011-03-20 Thread wildabdat
hi, i'm new on mono develop, trying to make application to connect to oracle
DB, i found basic program examples on 
http://www.mono-project.com/Oracle#Examples
http://www.mono-project.com/Oracle#Examples  , and when i run it get
following error message

Unhandled Exception: System.DllNotFoundException: libclntsh.so
  at (wrapper managed-to-native)
System.Data.OracleClient.Oci.OciCalls/OciNativeCalls:OCIEnvCreate
(intptr&,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
  at System.Data.OracleClient.Oci.OciCalls.OCIEnvCreate (System.IntPtr&
envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr malocfp, IntPtr
ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp) [0x0] in :0 
  at System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor
(OciEnvironmentMode mode) [0x0] in :0 
  at System.Data.OracleClient.Oci.OciGlue.CreateConnection
(OracleConnectionInfo conInfo) [0x0] in :0 
  at System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
(OracleConnectionInfo info) [0x0] in :0 
  at System.Data.OracleClient.OracleConnectionPool.CreateConnection ()
[0x0] in :0 
  at System.Data.OracleClient.OracleConnectionPool.GetConnection ()
[0x0] in :0 
  at System.Data.OracleClient.OracleConnection.Open () [0x0] in :0 
  at (wrapper remoting-invoke-with-check)
System.Data.OracleClient.OracleConnection:Open ()
  at con.MainClass.Main (System.String[] args) [0xf] in
/home/wildabdat/Projects/con/con/Main.cs:16

here is my environment

ubuntu maverick 10.10 64 bit
Oracle 10g Express Edition (on the same machine with mono)

can anyone solve this problem? because i dont wanna back to Windows just to
develop .Net Application

thanks...

--
@wildabdat


--
View this message in context: 
http://mono.1490590.n4.nabble.com/Unhandled-Exception-System-DllNotFoundException-libclntsh-so-tp3392519p3392519.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GSoC 2011 and ILASM

2011-03-20 Thread Alex
Hello folks!

I noticed the ILASM task posted up on the student projects page for
GSoC: http://www.mono-project.com/StudentProjects#Tools_and_Compilers

I was thinking of applying for porting ILASM to Cecil, as well as
taking on some of the unfixed ILASM bugs
(https://bugzilla.novell.com/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&product=Mono%3A+Compilers&content=ilasm),
as I have great interest in compilers and their mechanics. I'm also
looking for any other TODOs for ILASM if there are any; I didn't find
any on the Todo page on the wiki, so I assume there are none.

My only concern is whether porting ILASM to Cecil is a big enough task
to justify an entire GSoC project. If it is, then I'm all for taking
it on.

Also, if I do apply and the project is accepted, who would be my
mentor? (Is this decided in advance?)

Thanks!

(Also, if someone can edit the page, the Code Contracts project
description is slightly wrong; CC uses methods, not attributes.)

Cheers,
Alex
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] DataContractJsonSerializer Gives Different Results Depending OS

2011-03-20 Thread fletcham
I have written a small client - server application which passes JSON messages
back and forth.  The computer with the server application is running Windows
7 and the client application is on a Mac as well as on the iPhone using
MonoTouch.  When I serialize an object utilizing the
DataContractJsonSerializer it gives me two different JSON responses
depending on the OS I am using.  

On Windows 7 using mono/.net 3.5 it gives me this result:

[{"Suit":0},{"Suit":1},{"Suit":2}]

On OSX 10.6.5 using mono/.net 3.5 it gives me this result:

[{"__type":"Card:#JsonTest","Suit":0},{"__type":"Card:#JsonTest","Suit":1},{"__type":"Card:#JsonTest","Suit":2}]

Has anyone run into a similar problem or is this to be expected?

I have included a simple console application demonstrating the results
listed above.  For the console application to run you need to include two
reference: System.Runtime.Serialization and System.ServiceModel.Web.  If
anyone has any input on why this is and how to remedy it, it would be
greatly appreciated!

Thank you,
Adam


using System;
using System.Collections.Generic;
using System.Runtime.Serialization.Json;
using System.IO;
using System.Text;

namespace JsonTest
{
class MainClass
{
public static void Main(string[] args)
{
Hand hand = new Hand();
hand.Add(new Card { Suit = 0 });
hand.Add(new Card { Suit = 1 });
hand.Add(new Card { Suit = 2 });

string json;

DataContractJsonSerializer ser = new
DataContractJsonSerializer(hand.GetType());
using (MemoryStream ms = new MemoryStream())
{
ser.WriteObject(ms, hand);
json = Encoding.Default.GetString(ms.ToArray());
} 

Console.WriteLine(json); 
}
}

public class Card
{
public int Suit { get; set; }
}

public class Hand : List
{

} 
}


--
View this message in context: 
http://mono.1490590.n4.nabble.com/DataContractJsonSerializer-Gives-Different-Results-Depending-OS-tp3391376p3391376.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GSOC 2011 - Student Projects - Debugger Visualizer

2011-03-20 Thread Isuru Anuranga
Hi All

About the GSOC 2011 idea - debugger visualizer for the MonoDevelop IDE,

What I meant by 2nd deliverable is

What is expected is to

Create complex debugger visualizer for  all predetermined datatypes.

Or Set of small debugger visualizers which will be available according to
the datatype


On Sun, Mar 20, 2011 at 2:29 PM, Isuru Anuranga wrote:

> Hi All
>
> I'm a final year student from Computer Science and Engineering University
> of Moratuwa , Srilanka. I'm very interested in this years project idea to
> create Debugger Visualizer. I being working with extending Mole 2008 which
> is written in VB .NET to create a single complex debugger visualizer
> http://www.codeproject.com/KB/macros/MoleForVisualStudioEdit.aspx. I have
> a good understanding on compiler construction and I made a parser for a C
> type language using Flex and Bison which has panic mode error recovery .
>
> I would like to clarify on project deliverable.
>
>
> 1. Add debugger visualize support to the debugger adding. -
> This gave me ambiguous meanings. Can some one elaborate more on this.
>
> 2. Proposal should include a list of data types for which visualizers will
> be added; you must design and implement visualizers for them -
>
> Data types supported by visualizer should be predetermined, what is the
> most preferred one is to
> create a complex debugger for all
> or
> number of simple debuggers.
>
> Thanks
> Regards
> --
> Visit my blog : http://isuruanucse.blogspot.com
>
>


-- 
Visit my blog : http://isuruanucse.blogspot.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GSOC 2011 - Student Projects - Debugger Visualizer

2011-03-20 Thread Isuru Anuranga
Hi All

I'm a final year student from Computer Science and Engineering University of
Moratuwa , Srilanka. I'm very interested in this years project idea to
create Debugger Visualizer. I being working with extending Mole 2008 which
is written in VB .NET to create a single complex debugger visualizer
http://www.codeproject.com/KB/macros/MoleForVisualStudioEdit.aspx. I have a
good understanding on compiler construction and I made a parser for a C type
language using Flex and Bison which has panic mode error recovery .

I would like to clarify on project deliverable.


1. Add debugger visualize support to the debugger adding. -
This gave me ambiguous meanings. Can some one elaborate more on this.

2. Proposal should include a list of data types for which visualizers will
be added; you must design and implement visualizers for them -

Data types supported by visualizer should be predetermined, what is the most
preferred one is to
create a complex debugger for all
or
number of simple debuggers.

Thanks
Regards
-- 
Visit my blog : http://isuruanucse.blogspot.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list