I can’t seem to get my application up and running on my dev server and I’m not sure why.
I have compiled my code in VS 2008 with a target framework of 3.5. I am using 3.5 mainly because I have implemented LINQ rather extensively. Compiling and runs local without any problems.
The hang up is that my server only has the 2.0 .Net framework and upgrading to 3.5 is apparently not going to happen.
I was under the impression after doing some research that as long as I was trying to execute compiled code the server would not need 3.5 installed.
Today I am trying to publish to the server and I can’t get past this error in my WEB.CONFIG
Configuration Error
Parser Error Message: Child nodes not allowed.
providerOption name=’CompilerVersion’ value=’v3.5’/
EDIT ADD ON QUESTION: I have seen some posts about possibly setting my references to ‘copy local’ which might allow me to run on the 2.0 server. Thoughts?
You can just copy over the 3.5 dlls onto the server. You can absolutely run 3.5 code on a 2.0 server.