Missing mod_mono.conf

View: New views
3 Messages — Rating Filter:   Alert me  

Missing mod_mono.conf

by arkain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have searched high and low and am unable to find an answer to this.

I am running Debian and using Apache 1.3.34. I have installed libapache-mod-mono and mono-apache-server2.

I can run xsp2 and serve the example asp.net pages. However when I try to use apache I get an error:
"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:
Type not found.

File name: /var/www/xsp/index2.aspx    Line: 59

Source Error:

<td>Here are some ASP.NET examples:

<form id="form1" runat="server">
    <asp:TreeView style="margin:10px" ID="TreeView1" Runat="server"
        EnableClientScript="true"
        PopulateNodesFromClient="false"  
        ExpandDepth="1"
        >
     </asp:TreeView>
</form>
</td>"

Now I see on the mono website that I need to include mod_mono.conf in my apache configuration. But I don't have the mod_mono.conf file. Also I note that it is supposed to be in the /etc/apache2 folder. I've read in places that Apache 1.3/2.0 is supported. Is mod_mono supported for Apache 1.3?

Re: Missing mod_mono.conf

by Philip Wobst :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You will need to edit your httpd.conf configuration file and create a mod-mono.conf for apache:

1. activate the mod_mono module (maybe you did that already) in httpd.conf
2. Look for an existing mod_mono.conf file befor creating a new one! (For example using the shell and the following commands:
su root
cd /
find -name '*mono.conf'
3. add a reference to the mono configuration file in httpd.conf. Please note - this is where my mod-mono.conf is located on the Mono VMWare Image
....
# Mono Module
Include /etc/apache2/conf.d/mod_mono.conf
....
4. If you did not find the mod_mono.conf, create the mono configuration file /etc/apache2/conf.d/mod_mono.conf
5. edit the file and include all the configuration details found here:
http://www.mono-project.com/Mod_mono

6. or use the default file from the Mono VMWare Image, that looks like this:
<----------------- mod_mono.conf ---------------------->
# mod_mono.conf

# Achtung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.

<IfModule !mod_mono.c>
    LoadModule mono_module modules/mod_mono.so

    MonoAutoApplication enabled

    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 .vb
    AddType application/x-asp-net .master
    AddType application/x-asp-net .sitemap
    AddType application/x-asp-net .resources
    AddType application/x-asp-net .skin
    AddType application/x-asp-net .browser
    AddType application/x-asp-net .webinfo
    AddType application/x-asp-net .resx
    AddType application/x-asp-net .licx
    AddType application/x-asp-net .csproj
    AddType application/x-asp-net .vbproj
    AddType application/x-asp-net .config
    AddType application/x-asp-net .Config
    AddType application/x-asp-net .dll
    DirectoryIndex index.aspx
    DirectoryIndex Default.aspx
    DirectoryIndex default.aspx
</IfModule>
<----------------- END ---------------------->

arkain wrote:
I have searched high and low and am unable to find an answer to this.

I am running Debian and using Apache 1.3.34. I have installed libapache-mod-mono and mono-apache-server2.

I can run xsp2 and serve the example asp.net pages. However when I try to use apache I get an error:
"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:
Type not found.

File name: /var/www/xsp/index2.aspx    Line: 59

Source Error:

<td>Here are some ASP.NET examples:

<form id="form1" runat="server">
    <asp:TreeView style="margin:10px" ID="TreeView1" Runat="server"
        EnableClientScript="true"
        PopulateNodesFromClient="false"  
        ExpandDepth="1"
        >
     </asp:TreeView>
</form>
</td>"

Now I see on the mono website that I need to include mod_mono.conf in my apache configuration. But I don't have the mod_mono.conf file. Also I note that it is supposed to be in the /etc/apache2 folder. I've read in places that Apache 1.3/2.0 is supported. Is mod_mono supported for Apache 1.3?

Re: Missing mod_mono.conf

by arkain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey thank you. I was able to get a copy from the original .deb package file. I don't know why it didn't go in the right place the first time.