SubSonic Forums
All Your Database Are Belong To Us

Mono support

Latest post 11-11-2008 12:19 AM by sharique. 11 replies.
  • 02-24-2008 2:29 PM

    Mono support

    Did mono is supported in subsonic?

    I  tried getting started on mono  i get this error.

    Directory '/home/sharique/projects/MD test/subsonic/subsonic/\App_Code' not found.

    It seems that it not able to parse linux file path.

    Pls also provide getting started for Mono as well. 

    I'm using mysql database. 

    Filed under: ,
  • 02-24-2008 8:18 PM In reply to

    • ranomore
    • Top 10 Contributor
    • Joined on 11-05-2007
    • Salt Lake City
    • Posts 317

    Re: Mono support

    a search for "mono" on the forums suggests that you are the only one who has ever asked...

    I didn't know that mono supported .NET 2.0 either.

     What's the stack trace on your error message? Line Numbers/ file names would be helpful--the error just looks like a hardcoded slash instead of using path.combine.

  • 02-24-2008 8:48 PM In reply to

    Re: Mono support

    I tried it like 2 weeks ago while playing around with Mono. I tried the SubSonic.Sugar and that worked but haven't gotten into the Database stuff.

    And are you trying the Build Provider?

    If I am I because I am I, and You are You because You are You, then I am I, and you are you. But If I am I because You are You, and You are You because I am I, then I am not I and You are not You. -Rabbi of Kotzk

  • 02-25-2008 1:18 AM In reply to

    Re: Mono support

    Latest  Mono 1.2.6 is almost complete support for.net 2.0 (webparts and few things in winform are missing).

     Here s the stack strace. This is the only details I get.

    Server Error in '/' Application


    Directory '/home/sharique/projects/MD test/subsonic_1/subsonic/\App_Code' not found.

    Description: Error processing request.

    Error Message: HTTP 500. System.IO.DirectoryNotFoundException: Directory '/home/sharique/projects/MD test/subsonic_1/subsonic/\App_Code' not found.

    Stack Trace:

    System.IO.DirectoryNotFoundException: Directory '/home/sharique/projects/MD test/subsonic_1/subsonic/\App_Code' not found.
    at System.IO.Directory.GetFileSystemEntries (System.String path, System.String pattern, FileAttributes mask, FileAttributes attrs) [0x00000]
    at System.IO.Directory.GetFiles (System.String path, System.String pattern) [0x00000]
    at System.IO.DirectoryInfo.GetFiles (System.String pattern) [0x00000]
    at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:GetFiles (string)
    at SubSonic.BuildProvider.GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00000]
    at System.Web.Compilation.AppCodeAssembly.Build (System.String[ binAssemblies) [0x00000]
    at System.Web.Compilation.AppCodeCompiler.Compile () [0x00000]
    at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000]

     

    Filed under:
  • 02-25-2008 10:48 PM In reply to

    Re: Mono support

    It looks like you are using the Build Provider, and in the Build Provider the dir seperator is hard coded "\" (Windows folder seperator).

    Try this in  SubSonic\CodeGeneration\BuildProvider.cs
    Line 40: Try changing 

     + "\\App_Code");

    To

     + System.IO.Path.PathSeparator + App_Code");

     

    You might want to try first getting the code generated on a windows computer (Maybe linux) With SubCommander
    Then getting that to run on Linux.:)

    The code generation is the small problems that can come up I think.

    (The mono IDE is good but it needs some more work)

    If I am I because I am I, and You are You because You are You, then I am I, and you are you. But If I am I because You are You, and You are You because I am I, then I am not I and You are not You. -Rabbi of Kotzk

  • 02-26-2008 3:01 AM In reply to

    Re: Mono support

    I'm able to successfully able to generate code using SubCommander on Mono. There are some problem when when I complie.

    The nested type `ComponentModel' does not exist in the type `Northwind.System'(CS0426)]

    I'm using mono 1.2.6 and monodevelop 0.19.

    I reported this  issue in Mono-list.

    Is there any plan to officallly support Mono? 

    Filed under:
  • 08-05-2008 12:47 AM In reply to

    Re: Mono support

     I too am very interested of a Subsonic that officially support Mono.  Mono is gaining a lot of traction in the industry I'm in because of Linux (and the number of .NET programmers) available.  I hope our voice will be heard.  If you are successful in getting a mono port, can you give me directions on how I can install and set-up sonic on Ubuntu Linux with the latest version of Mono?

    Thanks

  • 08-07-2008 3:57 AM In reply to

    Re: Mono support

    Install Subsonic in wine (thank god installer doesn't check for .net Framwork.) Than run subcommander with mono to generate code.

    Right now only way to use Subsonic is to use generated code.

    Sustage won't run on mono because it is a WPF app.

  • 08-07-2008 12:48 PM In reply to

    Re: Mono support

    SubStage is not a WPF app it is a Win Form app.
    And I dont think ComponentFactory.Krypton.Toolkit.DLL uses WPF

    If I am I because I am I, and You are You because You are You, then I am I, and you are you. But If I am I because You are You, and You are You because I am I, then I am not I and You are not You. -Rabbi of Kotzk

  • 08-08-2008 1:15 AM In reply to

    Re: Mono support

    I tried Substage on mono on windows, it didn't run and also don't show any error message.

  • 11-06-2008 5:39 PM In reply to

    Re: Mono support

    Hey just wondering if you had any success at running Subsonic on Mono.   I am looking at building an application using Visual Studio on a windows box so I don't need to run substage on Mono.  I just want to deploy the final poduct on a Ubuntu box that is running mono 1.9 (Debian has not yet moved to Mono 2.0 which has been released)

    Filed under: , , ,
  • 11-11-2008 12:19 AM In reply to

    Re: Mono support

    Generated code works fine on mono. But substage is not working on mono 1.9.

    I suggest to use mono 2.0, because it contains alot of  bug fixes and perf improvments.

    I've not test with mono 2.0.

Page 1 of 1 (12 items) | RSS