[Mono-list] ASP Compilation Problems (Freebsd 6.3/Apache 2.2)

pezking pezking at gmail.com
Tue Mar 11 16:25:35 EDT 2008


Hello,

I'm quite new to Mono, and I'd like to say firstly that it appears to be a
very professional and excellent project. I am impressed just by the error
messages (never thought I'd be seeing .NET errors over apache J).

Anyways, this is basically a brand new box. System information:

FreeBSD 6.3
Apache 2.2.6_2
Mono 1.2.6_1
Mod_mono 1.2.6
XSP 1.2.6_2

All packages are installed from ports, and I am currently just using the
auto configuration file generated by mod_mono. Here is my mod_mono.conf for
clarity:

# Acthung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.
MonoServerPath /usr/local/bin/mod-mono-server2

 <IfModule !mod_mono.c>
    LoadModule mono_module /usr/local/libexec/apache22/mod_mono.so

    AddType application/x-asp-net .asp
    AddType application/x-asp-net .aspx
    AddType application/x-asp-net .asmx
    AddType application/x-asp-net .ashx
    AddType application/x-asp-net .asax
    AddType application/x-asp-net .ascx
    AddType application/x-asp-net .soap
    AddType application/x-asp-net .rem
    AddType application/x-asp-net .axd
    AddType application/x-asp-net .cs
    AddType application/x-asp-net .config
    AddType application/x-asp-net .Config
    AddType application/x-asp-net .dll
    DirectoryIndex index.asp
    DirectoryIndex Default.asp
    DirectoryIndex default.asp
    DirectoryIndex index.aspx
    DirectoryIndex Default.aspx
    DirectoryIndex default.aspx
</IfModule>

Basically, I am just getting very general ASP compilation errors. As an
example:

*Error message: *

/var/tmp/www-temp-aspnet-0/84d7ae77/3e4e833d.0.cs(65,1) : error CS0103: The
name `response' does not exist in the current context

All the test aspx file has in it right now is:

<%@ Language=VBScript %>
<%
OutputText = "Hello World"
HttpContext.Current.Response.Write(OutputText);
%>

Is there a step I am missing or anything I need to do specific to BSD to get
this up and running? Thanks in advance for any help that comes my way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080311/87ada56d/attachment-0001.html 


More information about the Mono-list mailing list