Showing posts with label machine. Show all posts
Showing posts with label machine. Show all posts

Wednesday, March 28, 2012

ASP.NET AJAX Deployment error

i,

I`ve done an ASP.NET AJAXwebsite and it works perfectly on my development machine. Ok! But whenI try to deploy my application on a webfarm scenario my website doesn`twork properly.
It comes out with the following error message sometimes:

"
Sys.WebForms.PageRequestManagerParserErrorException:The message received from the server could not be parsed. Common causesfor this error are when the response is modified by calls toResponse.Write(), response filters, HttpModules, or server trace isenabled.

Details: Error parsing near '

<!DOCTYPE html P'.
"

Thisproblem occurs randomly. Apparently, it`s due to the load balanceconfiguration on our web servers. I think when the request goes toanother machine my website crashes.

Any hint would be very appreciated. :]

You may want to check this out

http://www.rosshawkins.net/rfh/articles/webresource.axd.html

Let me know if this helps.

Saturday, March 24, 2012

asp.net 2.0: is there any where where we can check ajax version

Hi,

Sometimes I run into problems in the server that I don t run in my developement machine, especially regardingAjax,validation,Ajax control toolkitlikeValidatorCalloutExtender...etc

Are you aware if there re different versions of Ajax or any thing else that might be causing these little weird behaviours on the production machine different from our dev machines?

If so how can we check the Ajax or customValidators version?

I m just making a hypothesis, let me know pls if any other possibility?

Thank thee

You can check the version of the currently installed Ajax Control Toolkit.dll by going to C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AJAX Control Toolkit\Binaries and setting the view to Tiles or just hovering your mouse over the AjaxControlToolkit.dll. The latest version is currently 1.0.10920.0.

You can also check the versions of the AJAX individual controls by right-clicking in the Toolbox and selecting Choose Items then under the tab .NET Framework Components you can scroll through and check the versions of all the AJAX Controls by clicking on them.


hello.

another option is to look at the web.config file and see the info that is shown on the <assemblies> element...


I can t check that, because all those files are copied from my development machine to the server anyway, so obviously the web.config file is the same and gonna say the same version. There must be something outside the web site solution that interfers.

I can't check toolbox in the server since there is no visual studio there. On my dev machine , the ajaxcontrolToolkit controls version is: 1.0.10618.0

One more thing, when I remove the UpdatePanel from my page, every thing works well.

Thanks for tryimg to help me.


Is the ajaxcontroltoolkit.dll version on the server the same as the one on your dev box? Also if you haven't already, take a look at the following link and more specifically the section "Controls that Are Not Compatible with UpdatePanel Controls". I'm not sure if this will help, but if nothing else you'll be better informed.Smile

http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx


hello.

tutus:

I can t check that, because all those files are copied from my development machine to the server anyway, so obviously the web.config file is the same and gonna say the same version. There must be something outside the web site solution that interfers.

well, then use reflector to load the dlls and check the versions of the assemblis you want

btw, if you're building a 2.0 web site, you'll need to download the compat validators since the ones that come with asp.net 2.0 don't work with the updatepanel.

ASP.NET 2.0 AJAX Extensions Installation Fails

I am trying to install ASP.NET 2.0 AJAX Extensions 1.0 (RC) on a Windows 2000 Server machine and it will not install. I am getting the following error:

ASP.NET 2.0 AJAX Extensions 1.0 -- Installation failed

Can anyone please help?

I am logged in with an account that belongs to the Administrators group.

Thank You

Try to take a look at the installation log and fix the error.You should install?.net?framework?in?your?PC?first?and?then?install?Ajax?RC?1.0?&?Futures?
Dec?CTP. Try to post installation error message here. This will help us to fix the problem.

Wednesday, March 21, 2012

Arrgggh - AJAX just wont run?

I've seen a lot about this and never any good fixes - clean machine, XP SP2 - all service packs, .NET 1.1/2/3 and service packs, VS 2005 Pro SP1 and just downloaded and installed AJAX Extensions and none of my Ajax projects work not even new ones and of course I keep getting this useless error msg: and yes I do have the extensions dll in my bin folder.

Error 1 Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Web.config 66

My web.config is correct because I have this running in 5 VM's and many production servers but also got this error on a couple of those and it just magically went away ...

Hi craig,

This is locally where you get the problem? Well, if the ajax extentions are installed on your local machine, then they shouldn't be in your bin folder. Since they are present in the GAC. (But, this couldn't be causing the error I guess ....)

Euhm, what about making a plain website and ajax enabling it? will that work?

Just place the system.web.extentions.dll and the system.web.extentions.design.dll in the bin, and paste the following in the web.config under the <system.web> tag:

<!--AJAX ENABLE WEBSITE--><httpHandlers><remove verb="*" path="*.asmx"/><add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/><add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/></httpHandlers><httpModules><add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/></httpModules><!--END AJAX ENABLING-->

What is the effect of this? Same error?
Can you also provide the error? Maybe the line in the web.config the error mentioned?

Kind regards,
Wim


I just figured it out and it makes no sense - I found an ASPAJAXExtSetup.msi that was released in Dec 2006 which to me looks "Identical" to the one I download a few days ago, it has the same version number etc but any machine I install this one on works first time .... including solving my local issue. Same version number! ...

thanks

-c