Problems executing compiled 3.5 code on a server that has only a 2.0 structure

I cannot get my application to work and work on my dev server, and I'm not sure why.

I compiled my code in VS 2008 with a target structure of 3.5. I use 3.5 mainly because I implemented LINQ quite widely. Compiling and running local without problems.

Hang up that my server has only 2.0.Net framework and the upgrade to 3.5 does not seem to happen.

I got the impression that after some research, while I was trying to execute the compiled code, the server would not need 3.5.

Today I am trying to publish on the server and I can not get this error in my WEB.CONFIG

Configuration error

Parser error message: Invalid child nodes.

providerOption name = Value "CompilerVersion" = "v3.5" /

EDIT ADD ON QUESTION: I saw some messages about the ability to set links to "copy local", which may allow me to run on server 2.0. Thoughts?

+3
source share
9 answers

You can simply copy 3.5 dll to the server. You can absolutely run code 3.5 on server 2.0.

-2
source

You are correct that 3.5 runs on the 2.0 CLR, but 3.5 contains libraries, and if you used any of them, you were out of luck if you did not install 3.5 on this server.

There are many possibilities for the correct operation of program 3.5 only on version 2.0, so I would think about lowering the performance of the program or updating the server.


. 3.5 , , , , , , . , .NET.

, LINQ, 3.5.

, 2.0.

+7

, LINQ , 3.5. , - .., .

System.Linq - 3.5, .

2.0 , .

+2

, 3.0 3.5, 2.0, , 3.0+. 2.0 , . -.NET 2.0, .NET 2.0; .NET. , Win95, WinNT, , , API .

, 3.5- 2.0 , , . - , .NET 2.0, . , , , . , , , WPF. , , , , .NET 2.0.

, VS 2008 .NET Framework 2.0 SP1, SP1 , 2.0. Visual Studio .

, -, web.config 3.5- web.config 2.0. , web.config. , , . .NET 2.0, web.config . , - 3.0 + - , - , web.config.

+2

, 3.5 , 3.5.

, , .

+1

. CLR (, v1.1 v2.0). . 3.5, 3.5 fraework. Linq 3.5.

0

Web.Config. Web.Config , .NET 3.5, .

, . LINQ, , .NET 2.0.

0

# 3, .NET 2.0. , , IL, CLR 2.0 , CLR 2.0 .

, , , , LINQ, , 3.5

LINQ to Object, LINQBridge .

, , , -, , , .cs App_Code.

#, # 3, , # 2. - .

, .NET 2.0 Visual Studio , # 3. , 2.0.

, -, .

0

. , lassevk , , , . , , , , 3.5 IIS (6 ). IIS -, ASP.Net. 3.5 Framework, 3.5. 2.0.50727. , . - ( Microsoft) . , , , , , 2.0 3.5. , , -, , , .

0
source

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


All Articles