[Mono-aspnet-list] XSP2 Configuration

Arun Sandeep chadasandu at gmail.com
Tue May 18 00:17:13 EDT 2010

Hi All,

I have been trying to host an application developed in ASP.NET 3.5 with c#
3.0. I have used the advanced features in C# 3 like "extension methods" and
"collection initializers". The project compiles successfully in monodevelop
but once i deploy it using mod_mono and xsp2, I get an error saying "CS1644:
Feature `collection initializers' cannot be used because it is not part of
the C# 2.0 language specification"

I have checked the compile command and it has the langversion set to ISO-2,
after some research from the internet I found out that I need set the
langversion to default or 3 or linq to enable c# 3.0 features, which I did
in mono develop, but unable to do the same for XSP2. I have tried changing
the web.config file adding  section with compileoption but still I get the
same error.

I am using openSuse 11.2, mono 2.6 and xsp2.

Please help me fix the issue as I need to modify around 100 source files to
make it work with the C# 2.0 :(.

Thanks and Regards
Sandeep Chada
View this message in context: http://mono.1490590.n4.nabble.com/XSP2-Configuration-tp2220712p2220712.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100517/44c43d89/attachment.html 

More information about the Mono-aspnet-list mailing list