ArchiveOrangemail archive

mono-aspnet-list.lists.ximian.com


(List home) (Recent threads) (19 other Mono Project lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 1,531 messages, beginning Dec 2008
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

XSP2 Configuration

Ad
Arun Sandeep 1274273763Wed, 19 May 2010 12:56:03 +0000 (UTC)
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
Robert Jordan 1274280393Wed, 19 May 2010 14:46:33 +0000 (UTC)
On 18.05.2010 06:17, Arun Sandeep wrote: > > 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.
Since Mono's ASP.NET 3.5 configuration does not differ from MS.NET, you may want to have a look at MS' docs or at this article: http://www.4guysfromrolla.com/articles/121207... (the second part (with the yellow highlightings)) Robert
Arun Sandeep 1274345304Thu, 20 May 2010 08:48:24 +0000 (UTC)
@Robert Jordan

Thanks a ton...it works now!!! thank you very much...
Home | About | Privacy