[Mono-list] Mono does not handle NumberService.asmx file
Andrus
kobruleht2 at hot.ee
Sat Dec 20 11:16:36 EST 2008
I'm trying to run web service as described in
http://www.mono-project.com/Writing_a_WebService
using Apache with mod_mono in windows and mono from svn.
Mod_mono is loaded and configured according to
http://anmar.eu.org/mono/mod_mono/
<IfModule !mod_mono.c>
LoadModule mono_module modules/mod_mono.so
AddType application/x-silverlight-app .xap
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>
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
<IfModule mod_dir.c>
DirectoryIndex index.aspx default.aspx
</IfModule>
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:\silverlightwebservices\WebServicesApp_Web"
MonoDocumentRootDir "C:/silverlightwebservices/WebServicesApp_Web"
MonoApplications "/:./"
MonoDebug true
</VirtualHost>
Typing
http://localhost/NumberService.asmx
shows error in browser:
A name was started with an invalid character. Error processing resource
'http://localhost/NumberService.asmx'. Line 1, Pos...
<%@ WebService Language="C#" Class="MathService.MathService" %>
-^
It probably means that asmx file is not processed by mono
Apache error.log contains:
[Sat Dec 20 16:44:33 2008] [warn] handler: mono
[Sat Dec 20 16:44:33 2008] [warn] config = 0xda0720
[Sat Dec 20 16:44:33 2008] [warn] dir_config = 0xda0718
[Sat Dec 20 16:44:33 2008] [warn] idx = -1
[Sat Dec 20 16:44:33 2008] [warn] Alias not found. Checking for
auto-applications.
[Sat Dec 20 16:44:33 2008] [warn] try_connect: 0
[Sat Dec 20 16:44:33 2008] [warn] After setup_socket
[Sat Dec 20 16:44:33 2008] [warn] Sending init data
[Sat Dec 20 16:44:33 2008] [warn] Send init
[Sat Dec 20 16:44:33 2008] [warn] Initial data size: 630
[Sat Dec 20 16:44:33 2008] [warn] Accept: image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/x-ms-application,
application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap,
application/x-shockwave-flash, application/msword, */*
[Sat Dec 20 16:44:33 2008] [warn] Accept-Language: et
[Sat Dec 20 16:44:33 2008] [warn] UA-CPU: x86
[Sat Dec 20 16:44:33 2008] [warn] Accept-Encoding: gzip, deflate
[Sat Dec 20 16:44:33 2008] [warn] User-Agent: Mozilla/4.0 (compatible; MSIE
7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR
3.5.30729; .NET CLR 3.0.30618)
[Sat Dec 20 16:44:33 2008] [warn] Host: localhost
[Sat Dec 20 16:44:33 2008] [warn] Connection: Keep-Alive
[Sat Dec 20 16:44:33 2008] [warn] Loop
[Sat Dec 20 16:44:33 2008] [warn] Command received: DECLINE_REQUEST (9)
[Sat Dec 20 16:44:33 2008] [warn] Done. Status: -1
How to force mono to process asmx file ?
Andrus.
More information about the Mono-list
mailing list