Will linq to sql work in asp.net 2.0 web application?

Will linq to sql work in asp.net 2.0 web application?

Just realized that the server does not support asp.net 3.5 (do not control it!)

+4
source share
3 answers

The server only needs to understand ".net 2.0". When linq was added in .NET 3.0, the CLR was not updated. So far, everything has been compiled on a machine that, at least .NET 3.0 , will work fine.

It often seems that this web server does not support 3.0, because ASP parameters in IIS only provide you with parameters 1.0.3705, 1.1.4322 and 2.0.50727. But ".NET 3.5" still uses the CLR "2.0.50727".

+4
source

If the server is Windows 2000 (or earlier), LINQ will not work because you cannot install DotNet 3.5. However, as Patrick noted, do not move on to the CLR option that you see in IIS, as it may look like it only has 2.0 on the machine, although 3.5 is installed.

+1
source

I assume the key is in the LINQ part, which is a 3.5 feature, so probably not ...

0
source

Source: https://habr.com/ru/post/1306488/


All Articles