Saturday, March 24, 2012

Configuring a Web Server for AJAX

I am new to programming and trying to use AJAX. It works fine on my local machine, however, when I move it to my server, I get all kinds of errors. I am sure what to do to configure my web server.

Hi,

Can you paste the error message so that we can get some hints on the exact issue? Also, check out this post for details on latest AJAX release:

http://weblogs.asp.net/scottgu/archive/2007/01/23/asp-net-ajax-1-0-released.aspx

More information on configuration settings can be found on thehttp://ajax.asp.net website.

Hope this helps,

Vivek


Below is the error message, I believe my web server does not have the correct configuration or I did not move out the right .dlls. Thanks alot!

Server Error in '/ajax' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: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.

Source Error:

Line 34: <!--<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->Line 35: <!--<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->Line 36: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 37: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>Line 38: </compilation>


Source File:D:\Inetpub\wwwroot\AJAXEnabledTest1\web.config Line:36

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


Below is the error message, I believe my web server does not have the correct configuration or I did not move out the right .dlls. Thanks alot!

Server Error in '/ajax' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: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.

Source Error:

Line 34: <!--<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->Line 35: <!--<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->Line 36: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 37: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>Line 38: </compilation>


Source File:D:\Inetpub\wwwroot\AJAXEnabledTest1\web.config Line:36

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


All I needed to do was to install theASP.NET 2.0 AJAX Extensions 1.0 framework, which contains all files needed


Thanks, it woks!

pls help me

hey sir if u find out ur this problem then pls u send me any help related to this

i have also same problem taht my web site works fine on my local machine and it's give error like this on web server

Server Error in '/' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: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:\WebRoot\Domains\rajasthanjewellery.com\wwwroot\web.config line 54)

Source Error:

Line 52: Line 53: <httpModules>Line 54: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 55: </httpModules>Line 56: </system.web>


Source File:D:\WebRoot\Domains\rajasthanjewellery.com\wwwroot\web.config Line:54


Have you installed ASP.NET AJAX on the server? (That's what worked for the original poster.)

No sir i have not installed asp.net ajax on my server

pls tell me how to install asp.net ajax on server.

i don't know how to install it on server.


wish_dev:

No sir i have not installed asp.net ajax on my server

pls tell me how to install asp.net ajax on server.

i don't know how to install it on server.

Check this out:

http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx

Hope this helps,

Vivek


hey sir,

i install asp.net ajax on my local computer and i have also option in for create new web site with ajax enabled.

and i also install asp control toolkit.

my all website works well on my local computer and after made setup it's works fine on my localhost but when i upload this web site i get some problem like this

Server Error in '/' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: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:\WebRoot\Domains\rajasthanjewellery.com\wwwroot\web.config line 54)

Source Error:

Line 52: Line 53: <httpModules>Line 54: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 55: </httpModules>Line 56: </system.web>


Source File:D:\WebRoot\Domains\rajasthanjewellery.com\wwwroot\web.config Line:54


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


You need to log on to the server and run the installer, just like you did on your local machine.

u mean first i upload (ASPAJAXExtSetup.msi) in my httpdocs folder and then i have to install this msi from httpdocs folder.

is it correct or not.


Sure. It doesn't really matter where you download the file, just run it on the actual server.

hello.

you need to install it in the server. however, it looks like you only have access to a folder used to put your web app files. in that case, you must get in touch with the hosting comapny and ask them if they support ajax extensions.

No comments:

Post a Comment