Last post Apr 14, 2010 11:03 AM by tamilcodes
Apr 14, 2010 05:12 AM|eng-jebrini|LINK
am running .NET framework 3.5 on my machine, and want to build ASP.NET site that will work on Windows server 2003, the server have .NET Framework 1.1 and 2.0 installed on, and i want to know how to build the site then publish it without errors ?
because each time i tried to build the site i got version error for dll files, i can change it to the local version but is that okey to change the web.config file after publishing the site and change the dll versions ?
Apr 14, 2010 05:18 AM|XIII|LINK
either you install .NET 3.5 (with service pack 1 preferably) on the server or you can make your project with .NET 2.0. Visual studio 2008 has multitargeting on board so when you create a new project you can choose which framework to target for your project.
I would opt to upgrade the server with .NET 3.5 SP1. In the mean time you can also install .NET 4.0 which was released this monday.
Apr 14, 2010 05:55 AM|eng-jebrini|LINK
Kris, thank you for your help full answer,
i changed the target framework on Build window, but there is some libraries which haver 1.1 or 1.0 versions deleted from the config file ...
like this :
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=XXXXXXXXXXXXXX"/>
it removed completely !
Apr 14, 2010 11:03 AM|tamilcodes|LINK
It does not matter if it delets the codes, Just target to the .net version and rebuild your site. If it works perfectly then, you can upload it to the server.