Microsoft LINQ Books

Programming Microsoft LINQ & Introducing Microsoft LINQ
Welcome to Microsoft LINQ Books Sign in | Join | Help
in Search

Deployment with ASP.NET and Orcas

Last post 08-25-2007, 9:34 by Jay. 4 replies.
Sort Posts: Previous Next
  •  06-20-2007, 9:12 34

    Deployment with ASP.NET and Orcas

    I bought the book and I think its great. I've got a simple ASP.NET application with Linq working on my development machine working. Now I'd like to have it run on my server. How do I deploy ASP.NET with Linq? If I copy the web, the source is also copied, but my ASP.NET server does not know linq. Is precompiling the way? Is there some example avialable?

    Thanks

    Filed under:
  •  06-21-2007, 1:02 35 in reply to 34

    Re: Deployment with ASP.NET and Orcas

    Robert,

    you need to install the .NET 3.5 Beta 1 redistributable that you should find here: [cd]:\WCU\dotNetFramework\dotNetFX35\x86\netfx35_x86.exe

    Please note that this beta is not intended to be used in a production environment. After you install .NET 3.5 Beta 1, you might lose the capability to remove such a version to install a future release (beta or RTM). May be you will be lucky, but the point here is that you are not supported if you install this Beta in a production server.

    Marco Russo
    http://www.introducinglinq.com/

     

  •  08-24-2007, 11:02 44 in reply to 35

    Re: Deployment with ASP.NET and Orcas

    I thought LINQ was supposed to be backwards compatible. The first chapter in your book says "Runs on the .NET 2.0 CLR - Avoid requiring a new runtime and creating unnecessary deployment hassles.".

    Has this changed in LINQ?

    I am having a hard time finding out answers to this (basically can a C# 3 (using LINQ) program run on .NET 2).

    Thanks!

  •  08-25-2007, 9:12 47 in reply to 44

    Re: Deployment with ASP.NET and Orcas

    LINQ is part of the .NET 3.5 Framework Library. This version of .NET (like the 3.0 version) don't change the CLR runtime, but only adds new assemblies to the .NET 2.0 Framework runtime. The deployment of a .NET 3.5 (or LINQ) program only requires the deployment of a small set of assemblies and, most important, doesn't change existing .NET 2.0 runtime components. This grants that installing a .NET 3.0 or .NET 3.5 library shouldn't break existing programs and don't require compatibility check to newer runtime versions of existing programs.

    This is true until current Beta 2 and we don't have any information about a change in this model. May be that a future .NET version (4.0?) will upgrade also the runtime, but this is only a speculation about the future :-)

    From a practical point of view: if you install Visual Studio 2008 Beta 1 (or Beta 2), create a C# application, remove references to System.Core and System.Xml.Linq (two assemblies that are part of .NET 3.5 extensions) and compile, you obtain a program that can be run on a .NET 2.0 machine where .NET 3.5 is not installed.

    Please note that early CTP of LINQ didn't require the deployment of .NET 3.5 assemblies, since LINQ assemblies could be deployed locally (privately) to the application on a .NET 2.0 provided machine. May be this is still possible with current beta (but I suspect this doesn't work anymore), however I wouldn't suggest to do it.

    I hope it is more clear now. We had several space constraint on the book (we had to limit the number of pages) and sometime we needed to be very short in some descriptions.

    Marco Russo
    http://introducinqlinq.com

     

  •  08-25-2007, 9:34 48 in reply to 47

    Re: Deployment with ASP.NET and Orcas

    Thanks for the explanation!!

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems