[Bsd-sharp-list] Feedback on mono 1.9 and monodevelop 1.0
dstrbck at freenet.de
dstrbck at freenet.de
Sun May 18 06:35:41 MDT 2008
Hi, I'm new to FreeBSD and mono, with some previous experience with MS Dotnet without web related stuff.
Currently I'm on a FreeBSD 7.0 / amd64 system and installed the mono port with the mono-merge utility. Everyting built without errors and seems to work. When I try monodevelop, the hello world projects for C, C++ and Cs work. Only when I try the Asp.Net example I get into trouble. I have no clue how to resolve the problem. Nonetheless, here is what happens:
With IP address 127.0.0.1:8080 in the Xsp project settings Monodevelop crashes, leaving this error
on the console:
---
Unhandled Exception: GLib.GException: There was an error launching the default action command associated with this location.
at Gnome.Url.Show (System.String url) [0x00000]
at MonoDevelop.Platform.GnomePlatform.ShowUrl (System.String url) [0x00000]
at AspNetAddIn.AspNetAppProject.LaunchWebBrowser (System.Object o) [0x00000]
---
Xsp gives the following message on 127.0.0.1:8080:
---
Server Error in '/' Application
Compiler failed to produce the assembly. Stderr='', Stdout=''
Description: HTTP 500. Error processing request.
Stack Trace:
System.Exception: Compiler failed to produce the assembly. Stderr='', Stdout=''
at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00294] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:269
at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00011] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:149
at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00014] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System/System.CodeDom.Compiler/CodeDomProvider.cs:119
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.String virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x0018e] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web.Compilation/AssemblyBuilder.cs:540
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.String virtualPath) [0x00000] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web.Compilation/AssemblyBuilder.cs:483
at System.Web.Compilation.BuildManager.BuildAssembly (System.String virtualPath) [0x00151] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:856
at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x0001b] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:432
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.String virtualPath, System.Type requiredBaseType) [0x0000c] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:264
at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web.UI/PageParser.cs:154
at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x00000] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web.UI/PageHandlerFactory.cs:40
at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x0003c] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web/HttpApplication.cs:1249
at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext () [0x0077a] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web/HttpApplication.cs:942
Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42
---
Then, after some time, the process disappears from the output of ps -A:
36337 p3 S 0:01.42 /usr/local/bin/mono --debug /usr/local/lib/mono/2.0/xsp2.exe --port 8080 --address 127.0.0.1 --nonstop --verbose
With IP address 0.0.0.0:8080 in the Xsp project settings Monodevelop doesn't crash but the example doesn't work either.
The application output is:
---
xsp2
Adding applications '/:.'...
Registering application:
Host: any
Port: any
Virtual path: /
Physical path: /usr/home/daniel/HalloWeb/HalloWeb
Listening on address: 0.0.0.0
Root directory: /usr/home/daniel/HalloWeb/HalloWeb
Listening on port: 8080 (non-secure)
---
And a popup message says:
---
Could not connect to webserver http://0.0.0.0:8080.
Exception occurred: Error: ConnectFailure
System.Net.WebException: Error: ConnectFailure
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000]
at System.Net.HttpWebRequest.GetResponse () [0x00000]
at AspNetAddIn.AspNetAppProject.LaunchWebBrowser (System.Object o) [0x00000]
---
Xsp which is obviously running says the following on 127.0.0.1:8080
and 0.0.0.0:8080:
---
Server Error in '/' Application
Thread was being aborted
Description: HTTP 500. Error processing request.
Stack Trace:
System.Threading.ThreadAbortException: Thread was being aborted
at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext () [0x0096d] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web/HttpApplication.cs:958
at System.Web.HttpApplication.Tick () [0x00000] in /usr/ports/lang/mono/work/mono-1.9/mcs/class/System.Web/System.Web/HttpApplication.cs:697
Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42
---
I guess there is something I didn't configure properly. At the moment I don't know how to do it. I'll do a little reading about all this to find a solution. If you think, it's an error / bug, please tell me.
Best
Daniel
Unbegrenzter Speicher, Top-Spamschutz, 120 SMS und eigene E-MailDomain inkl.
http://office.freenet.de/dienste/emailoffice/produktuebersicht/power/mail/index.html
More information about the Bsd-sharp-list
mailing list