Doubt Reg server without ASP.Net AJAX installed!

Last post 11-04-2008 10:54 PM by Lance Zhang - MSFT. 1 replies.

Sort Posts:

  • Doubt Reg server without ASP.Net AJAX installed!

    11-03-2008, 1:21 AM

    Hi All,

    This many be very basic question. We have a server which .net 2.0 build but without ASP.Net AJAX installed. I have built ajax application and when deployed it said

    "Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (D:\inetpub\wwwroot\apps\toolkitsample\web.config line 40)"

    Installing ASP.Net AJAX application will install 'System.Web.Extensions in GAC. Since this is not done on our server, i mnaully copied this dll to my BIN directory. Now, the application is working fine! Was there a problem in this approach?

    one more Q: 

    So, it means that i can follow the same approach with a private hosting provider if they havent installed ASP.Net AJAX on their server? i,e. copying 'System.Web.Extensions to bin folder..

    Could someone clarify?

    Thanks in advance!

    Regards,

    Sathish


     

  • Re: Doubt Reg server without ASP.Net AJAX installed!

    11-04-2008, 10:54 PM
    Answer
    Hi sathish_kumar
     
    You can copy the files System.Web.Extensions.dll and System.Web.Extensions.Design.dll from the following directory on your dev pc:  C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 into the bin folder of your web application on the host.
     
    However, it is not recommended, because The Ajax Extensions need GAC really; especially for the proxy stuff. The host must install ASP.NET AJAX on their servers (the install GAC's the DLL).  You can copy the file to your bin folder and get it to run, but only if your application is in Full Trust (not likely in a hosted scenario).
     
    Thanks.

     

    Lance Zhang
Page 1 of 1 (2 items)