[Mono-list] Web service run causes exception `automatically implemented properties' cannot be used
Andrus
kobruleht2 at hot.ee
Sun Dec 21 19:09:06 EST 2008
I tried to run web service with mod_modo + Apache using Mono SVN code
Typing
http://localhost/Hetkesei.asmx?WSDL
in browser causes exception below.
Maybe this is caused by gmcs switch /langversion:ISO-2
Any idea ?
Andrus.
Server Error in '/' Application
--------------------------------------------------------------------------------
Compilation Error
Description: Error compiling a resource required to service this request.
Review your source file and modify it to fix this error.
Compiler Error Message: CS1644: Feature `automatically implemented
properties' cannot be used because it is not part of the C# 2.0 language
specification
Show Detailed Compiler Output:
c:\mono\bin\mono.exe "c:\mono\lib\mono\2.0\gmcs.exe" /target:library /debug-
/optimize+ /warn:0
/out:"C:\Windows\TEMP\SYSTEM-temp-aspnet-0\d39308ff\App_Code.5f9df038.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\DbLinq.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\DbLinq.PostgreSql.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Eeva.Business.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Eeva.Resource.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Eeva_Web.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\LinqToSqlServerHelper.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Mono.Security.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Npgsql.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\System.Web.Silverlight.dll"
/r:"c:\mono\lib\mono\gac\System\2.0.0.0__b77a5c561934e089\System.dll"
/r:"c:\mono\lib\mono\gac\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"
/r:"c:\mono\lib\mono\gac\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll"
/r:"c:\mono\lib\mono\gac\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/r:"c:\mono\lib\mono\gac\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/r:"c:\mono\lib\mono\gac\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll"
/r:"c:\mono\lib\mono\gac\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll"
/r:"c:\mono\lib\mono\gac\System\2.0.0.0__b77a5c561934e089\System.dll"
/r:"c:\mono\lib\mono\gac\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"
/r:"c:\mono\lib\mono\gac\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll"
/r:"c:\mono\lib\mono\gac\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/r:"c:\mono\lib\mono\gac\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/r:"c:\mono\lib\mono\gac\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll"
/r:"c:\mono\lib\mono\gac\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\DbLinq.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\DbLinq.PostgreSql.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Eeva.Business.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Eeva.Resource.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Eeva_Web.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\LinqToSqlServerHelper.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Mono.Security.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\Npgsql.dll"
/r:"I:\raamat\EevaWeb\SilverlightApplication4_Web\Bin\System.Web.Silverlight.dll"
/langversion:ISO-2 --
"C:\Windows\TEMP\SYSTEM-temp-aspnet-0\d39308ff\App_Web_3b33642b_0.cs"
C:\Windows\TEMP\SYSTEM-temp-aspnet-0\d39308ff\App_Web_3b33642b_0.cs(14,19):
error CS1644: Feature `automatically implemented properties' cannot be used
because it is not part of the C# 2.0 language specification
--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433
Hetkesei.asmx contains:
<%@ WebService Language="C#"
CodeBehind="Eeva.Business.dll"
Class="Eeva.Business.Hetkesei" %>
web.config is copied from mono, only
<webServices>
<wsdlHelpGenerator
href="c:\Mono\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx"/>
</webServices>
is added.
start of web.config is:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<webServices>
<wsdlHelpGenerator
href="c:\Mono\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx"/>
</webServices>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs"
compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
....
More information about the Mono-list
mailing list