Brad;
This will work.
1) With your site you need to make it a webApplication.
2) Make all of the references that are 3.5 and have them copied
locally. System.Core is one but there are others - you'll need to work on
that.
3) Pre-compile your site using the command line tool. I have the
command line at work so if you can't figure it out let me know, I'll get it.
The problem you're having is that ASP.NET compiles your site on the
first time the page is hit. It is trying to use the 2.0 compiler to compile
your 3.5 site. There is a section in your Web.Config that shows what
compiler to use. The 2.0 compiler doesn't work.
Pre-Compiling on your 3.5 machine and moving it to your server means
that when a page is hit for the first time, ASP.NET doesn't try to compile.
And your code will work fine with the locally copied 3.5 DLLs.
I have gotten this to work. I have a win 2000 machine, and it can't
run anything higher that .NET 2.0.
This also makes sense because when LINQ and others were in CTP, they
would send around builds that would run off of the 2.0 runtime.
Anyway I have some more notes on this at work, so if you are having issues
getting this to work let me know, and I'll get them out.
Good luck
Eric
-----Original Message-----
From: Discussion of development on the .NET platform using any managed
language [mailto:DOTNET-***@DISCUSS.DEVELOP.COM] On Behalf Of Brady Kelly
Sent: Friday, March 28, 2008 9:48 AM
To: DOTNET-***@DISCUSS.DEVELOP.COM
Subject: Re: Automatic Properties on 2.0
Post by Daniel PeterssonBrad; It is pretty obvious that the code for the 3.5 compiler won't
compile in a 2.0 project!
(even if they used the same compiler in different modes) MS did slipp-
up when they decided
on their current versioning scheme but I seems that you did a rather nasty slip yourself =)
--Daniel
Not so nasty, the project is an ASP.NET prototype, and I got four data
capture pages, and two list/ grid pages for captured data, all working with
about five or six lines of code altogether. My client just didn't have 3.5
installed yet, so I quickly wanted to send him a 2.0 version. I made three
automatic properties public fields and, as they say, Voila!
===================================
This list is hosted by DevelopMentor. http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com