[Mono-list] Mono-list Digest, Vol 30, Issue 15

Ashish Goyal agoyal at transitchicago.com
Wed Oct 17 10:24:59 EDT 2007


 Hello,

 I converted Sun One Asp code to ASP.NET using ASP2ASPX (www.netcoole.com)
to
 use with mono. I have application which uses databases. I have installed
the
 oracle client on the server. I can connect the database thru' sqlplus and
do
 a tnsping.

 But I am getting the following error which I tried to load a page with
 refrence to oracle database connection.

 Parser Error
 Description: Error parsing a resource required to service this request.
 Review your source file and modify it to fix this error.

 Error message:

 Only 1 page is allowed

 File name: /srv/www/htdocs/test/inc_cpc2ds.aspx
     Line: 7
 Source Error:      Original File Name: C:\120n\120\asp2aspx\inc_cpc2ds.asp
 --%>

%@ Page language="vb" Debug="true"%>
%
     Dim MM_dataconn_STRING As String
 %>


Below is my code to connect to oracle database:

<%--
     Generated by ASP2ASPX 4.2.
     ASP2ASPX home page: http://www.netcoole.com
     Original File Name: C:\120n\120\asp2aspx\inc_cpc2ds.asp
--%>

<% @ Page language="VB" Debug="true" %>
<%
    Dim MM_dataconn_STRING As String
%>
<%
    MM_dataconn_STRING = "DSN=CPC2DS;UID=scada;PWD=scada;"
%>

Either it is a oracle mono integration issue or visual basic programming
 issue. Is somebody can help me in this matter?

Ashish
----- Original Message ----- 
From: <mono-list-request at lists.ximian.com>
To: <mono-list at lists.ximian.com>
Sent: Monday, October 15, 2007 10:09 AM
Subject: Mono-list Digest, Vol 30, Issue 15


> Send Mono-list mailing list submissions to
> mono-list at lists.ximian.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.ximian.com/mailman/listinfo/mono-list
> or, via email, send a message with subject or body 'help' to
> mono-list-request at lists.ximian.com
>
> You can reach the person managing the list at
> mono-list-owner at lists.ximian.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mono-list digest..."
>
>
> Today's Topics:
>
>    1. Re: Which distribution is used when... (Jonathan Pryor)
>    2. Gtk# (cichlasoma at centrum.cz)
>    3. Re: help on reporting tool (Daniel Hofmann)
>    4. Re: Which distribution is used when... (murthy.sudarshan)
>    5. Re: Gtk# (Brenton Partridge)
>    6. Need Help: Mono under Windows-problems in using events
>       (Marc Glenn)
>    7. Re: Which distribution is used when... (Jonathan Pryor)
>    8. Oracle Mono Integration Issue (Ashish Goyal)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 13 Oct 2007 15:47:04 -0400
> From: Jonathan Pryor <jonpryor at vt.edu>
> Subject: Re: [Mono-list] Which distribution is used when...
> To: "murthy.sudarshan" <murthy.sudarshan at gmail.com>
> Cc: mono-list at lists.ximian.com
> Message-ID: <1192304824.26421.71.camel at lina.magi.jprl.com>
> Content-Type: text/plain
>
> On Fri, 2007-10-12 at 13:12 -0700, Charlie Poole wrote:
> > use  --runtime=VERSION to select the runtime
> >
> > for example, to run under the 2.0 profile, specify
> >   --runtime=v2.0.50727
> >
> > The weird argument format is inherited from .NET, which uses it in the
> > COMPLUS_VERSION environment variable.
>
> If you don't specify --runtime, you get whichever runtime the program
> was compiled against -- if you use mcs or CSC from .NET 1.0, you'll
> implicitly get a 1.0 runtime, and if you use gmcs or CSC from .NET 2.0,
> you'll implicitly get a 2.0 runtime.
>
> Mono's --runtime argument is largely to allow you to override the
> default specified in the assembly header.
>
> .NET also uses the program header to determine which runtime to use --
> if you have *both* .NET 1.0 and .NET 2.0 installed, then the assembly
> header will be read to determine which runtime to use.  If you only have
> one version of .NET installed, then that version will be used to run
> your app, which *can* result in an exception (e.g. running a 2.0 app
> under a 1.0 runtime won't work) or in imperfect compatibility (e.g.
> running a 1.0 app under a 2.0 runtime, as the behavior of some methods
> changed).
>
>  - Jon
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 14 Oct 2007 07:27:44 +0200
> From: <cichlasoma at centrum.cz>
> Subject: [Mono-list] Gtk#
> To: <mono-list at lists.ximian.com>
> Message-ID: <200710140727.18483 at centrum.cz>
> Content-Type: text/plain; charset="UTF-8"
>
>  hi. when i create a gtk# application in sharpdevelop and i try to run it,
it compiles, yet i get "Exception System.DllNotFoundException was thrown in
debuggee: cannot load the DLL library (glibsharpglue)." (the part after the
semicolon baeing in my language.) i'm on windows xp, have mono 1.2.5.1
installed, the named dll is in the mono\bin directory. any ideas what could
be the problem, please?
>
> and a question more - how do i set a .NET application to run on mono
istead of .NET if i have the both istalled. (if possible.)
>
> TIA
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 14 Oct 2007 11:35:17 +0200
> From: Daniel Hofmann <daniel at hofmannmail.ath.cx>
> Subject: Re: [Mono-list] help on reporting tool
> To: dipendra kumar jaiswal <dipendrakumar.jaiswal at gmail.com>
> Cc: mono-list at lists.ximian.com
> Message-ID: <4711E2D5.3090904 at hofmannmail.ath.cx>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
>
> You might wanna have a look at NPlot http://netcontrols.org/nplot/wiki/
> We use it in a mono project and it hasn't made any problems so far.
>
> Daniel
>
> dipendra kumar jaiswal schrieb:
> > hello
> >
> >  i need a open source reporting tool for my web project (which is made
> > in .net2005 and deploying in mono)and i cannot found any reporting tool
> > expect reportman and fyireporting tool.
> >
> > these tool have many problem and not configure to the my project.
> >
> > so please some one tell me about any open source reporting tool which
> > is work with my project
> > or
> > send the company list which is make this tool.
> > thank you
> >
> >  dipendra
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 14 Oct 2007 07:56:22 -0700
> From: "murthy.sudarshan" <murthy.sudarshan at gmail.com>
> Subject: Re: [Mono-list] Which distribution is used when...
> To: <mono-list at lists.ximian.com>
> Message-ID: <000001c80e72$63656870$4801a8c0 at nawIna>
> Content-Type: text/plain; charset="us-ascii"
>
> Thanks Jonathan for the clarification. That explains which version of the
> runtime is chosen.
>
> At this point, my original question about which *distribution* of the
> runtime is used--Mono or Microsoft-- still remains.
>
> Assume I run a .NET application under each of the following conditions,
> using the Mono command prompt on Windows. Assume the simplest, default,
> installation of Mono and MS distributions of .NET.
>
> 1. Using the Mono CLR. That is, run "mono <app.exe>" where <app.exe> is
the
> .NET application.
> - I assume the libraries in the Mono distribution are used.
>
> 2. Using the Microsoft CLR. That is, run "<app.exe>".
> - I assume the libraries in the MS distribution are used.
>
> Thanks,
> sm.
>
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Jonathan Pryor
> Sent: Saturday, October 13, 2007 12:47 PM
> To: murthy.sudarshan
> Cc: mono-list at lists.ximian.com
> Subject: Re: [Mono-list] Which distribution is used when...
>
>
> On Fri, 2007-10-12 at 13:12 -0700, Charlie Poole wrote:
> > use  --runtime=VERSION to select the runtime
> >
> > for example, to run under the 2.0 profile, specify
> >   --runtime=v2.0.50727
> >
> > The weird argument format is inherited from .NET, which uses it in the
> > COMPLUS_VERSION environment variable.
>
> If you don't specify --runtime, you get whichever runtime the program was
> compiled against -- if you use mcs or CSC from .NET 1.0, you'll implicitly
> get a 1.0 runtime, and if you use gmcs or CSC from .NET 2.0, you'll
> implicitly get a 2.0 runtime.
>
> Mono's --runtime argument is largely to allow you to override the default
> specified in the assembly header.
>
> .NET also uses the program header to determine which runtime to use -- if
> you have *both* .NET 1.0 and .NET 2.0 installed, then the assembly header
> will be read to determine which runtime to use.  If you only have one
> version of .NET installed, then that version will be used to run your app,
> which *can* result in an exception (e.g. running a 2.0 app under a 1.0
> runtime won't work) or in imperfect compatibility (e.g. running a 1.0 app
> under a 2.0 runtime, as the behavior of some methods changed).
>
>  - Jon
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 14 Oct 2007 15:23:07 -0400
> From: Brenton Partridge <bapartridge at gmail.com>
> Subject: Re: [Mono-list] Gtk#
> To: mono-list at lists.ximian.com
> Message-ID: <8DEF6823-4C42-4FE4-80B5-7F5D2F425BDD at gmail.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Hi,
>
> On Oct 14, 2007, at 1:27 AM, <cichlasoma at centrum.cz>
> <cichlasoma at centrum.cz> wrote:
>
> >  hi. when i create a gtk# application in sharpdevelop and i try to
> > run it, it compiles, yet i get "Exception
> > System.DllNotFoundException was thrown in debuggee: cannot load the
> > DLL library (glibsharpglue)." (the part after the semicolon baeing
> > in my language.) i'm on windows xp, have mono 1.2.5.1 installed,
> > the named dll is in the mono\bin directory. any ideas what could be
> > the problem, please?
>
> Just warning you, I'm a little bit of a noob at this, so there's no
> guarantee, but you could try either of these:
>
> a) Put the dll in the mono\lib directory and recompile.
>
> b) If that doesn't work, put the dll somewhere else, navigate to the
> directory where the dll is, and run:
> $ gacutil -i glibsharpglue.dll
> See http://www.mono-project.com/Assemblies_and_the_GAC
>
> >
> > and a question more - how do i set a .NET application to run on
> > mono istead of .NET if i have the both istalled. (if possible.)
>
> Try running it it using the mono command from the command line, i.e.
> $ mono my_app.exe
> instead of double clicking it or running
> $ my_app.exe
>
> HTH,
> Brenton
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 15 Oct 2007 12:15:19 +0800
> From: Marc Glenn <mjamon at ntsp.nec.co.jp>
> Subject: [Mono-list] Need Help: Mono under Windows-problems in using
> events
> To: mono-list at lists.ximian.com
> Message-ID: <4712E957.4030102 at mnl.ntsp.nec.co.jp>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello guys,
>
>     I tried compiling a csharp code that uses gtk# and event handlers
> under Mono.
>
>     // 04-gtk/01-basics
>     using System;
>     using Gtk;
>     class MainClass {
>         public static void Main (string[] args)
>         {
>             Application.Init ();
>             Window w = new Window ("Gtk# Basics");
>             Button b = new Button ("Hit me");
>             w.DeleteEvent += new DeleteEventHandler (Window_Delete);
>             b.Clicked += new EventHandler (Button_Clicked);
>             // initialize the GUI
>             w.Add (b);
>             w.SetDefaultSize (200, 100);
>             w.ShowAll ();
>             Application.Run ();
>         }
>         static void Window_Delete (object o,
>             DeleteEventArgs args)
>         {
>             Application.Quit ();
>             args.RetVal = true;
>         }
>         static void Button_Clicked (object o, EventArgs
>             args)
>         {
>             System.Console.WriteLine ("Hello, World!");
>         }
>     }
>
>     The program prints a "Hello World" on the Console after clicking the
> button "Hit Me".
>
>     I executed it under Fedora Core 6 using the latest version of Mono
> compiler and it operates perfectly.
>
>     But when I try to run it under Mono-Windows(latest version) and
> click the button "Hit Me", the program crashes.
>     I have tried to comment out these lines
>                    w.DeleteEvent += new DeleteEventHandler
(Window_Delete);
>                    b.Clicked += new EventHandler (Button_Clicked);
>     and when I click the button "Hit Me", the program does not crash
> anymore.
>
>     Does this mean that Mono have problems with csharp events or I just
> have a wrong configuration of my Mono-Runtime..
>
>     Need help..
>
>     Thanks in advance
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
http://lists.ximian.com/pipermail/mono-list/attachments/20071015/17d814eb/attachment-0001.html
>
> ------------------------------
>
> Message: 7
> Date: Mon, 15 Oct 2007 08:47:56 -0400
> From: Jonathan Pryor <jonpryor at vt.edu>
> Subject: Re: [Mono-list] Which distribution is used when...
> To: smurthy at cs.pdx.edu
> Cc: mono-list at lists.ximian.com
> Message-ID: <1192452476.26421.82.camel at lina.magi.jprl.com>
> Content-Type: text/plain
>
> On Sun, 2007-10-14 at 07:56 -0700, murthy.sudarshan wrote:
> > \At this point, my original question about which *distribution* of the
> > runtime is used--Mono or Microsoft-- still remains.
> >
> > 1. Using the Mono CLR. That is, run "mono <app.exe>" where <app.exe> is
the
> > .NET application.
> > - I assume the libraries in the Mono distribution are used.
>
> Yes, Mono's runtime will be used.
>
> > 2. Using the Microsoft CLR. That is, run "<app.exe>".
> > - I assume the libraries in the MS distribution are used.
>
> Yes, Microsoft's runtime will be used (at least until someone writes the
> code necessary for Mono to be used in this fashion, at which point this
> question becomes much more complicated...)
>
>  - Jon
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 15 Oct 2007 10:08:35 -0500
> From: "Ashish Goyal" <agoyal at transitchicago.com>
> Subject: [Mono-list] Oracle Mono Integration Issue
> To: <mono-list at lists.ximian.com>
> Message-ID: <009401c80f3d$426053d0$98c60fac at agoyal>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
>
> I converted Sun One Asp code to ASP.NET using ASP2ASPX (www.netcoole.com)
to
> use with mono. I have application which uses databases. I have installed
the
> oracle client on the server. I can connect the database thru' sqlplus and
do
> a tnsping.
>
> But I am getting the following error which I tried to load a page with
> refrence to oracle database connection.
>
> Either it is a oracle mono integration issue or visual basic programming
> issue. Is somebody can help me in this matter?
>
>
> Ashish
> Server Error in '/' Application
>
> --------------------------------------------------------------------------
--
> ----
>
> Parser Error
> Description: Error parsing a resource required to service this request.
> Review your source file and modify it to fix this error.
>
> Error message:
>
> Only 1 page is allowed
>
> File name: /srv/www/htdocs/test/inc_cpc2ds.aspx
>
>     Line: 7
>
> Source Error:      Original File Name: C:\120n\120\asp2aspx\inc_cpc2ds.asp
> --%>
>
> <%@ Page language="vb" Debug="true"%>
> <%
>     Dim MM_dataconn_STRING As String
> %>
>
>
> --------------------------------------------------------------------------
--
> ----
> 10/15/2007 15:00:59
> ----- Original Message ----- 
> From: <mono-list-request at lists.ximian.com>
> To: <mono-list at lists.ximian.com>
> Sent: Wednesday, August 22, 2007 11:11 AM
> Subject: Mono-list Digest, Vol 28, Issue 23
>
>
> > Send Mono-list mailing list submissions to
> > mono-list at lists.ximian.com
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://lists.ximian.com/mailman/listinfo/mono-list
> > or, via email, send a message with subject or body 'help' to
> > mono-list-request at lists.ximian.com
> >
> > You can reach the person managing the list at
> > mono-list-owner at lists.ximian.com
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Mono-list digest..."
> >
>
>
>
> ------------------------------
>
> _______________________________________________
> Mono-list mailing list
> Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> End of Mono-list Digest, Vol 30, Issue 15
> *****************************************



More information about the Mono-list mailing list