Showing posts with label following. Show all posts
Showing posts with label following. Show all posts

Wednesday, March 28, 2012

Ajax Update Pable not working

Hi!

I m using VS2005.I am just download & Install Ajax Extention & Controle fro asp.net.

After running the project, Web page give me following JAVA Script ERRRO:

'Sys' is undefined.

Please give me suggestion.

Abhishek

Hi,

Sys undefined means that you're not getting the client side files loaded on your browser.

See'Sys' is undefined. for more information and find out a solution.

This error have many different causes.

A lot of people run into it,and most of them finally figured out it and post up their solution.

Best Regards,

Monday, March 26, 2012

Ajax Toolkit installation on windows vista / IIS 7.0

I tried to install the ajax toolkit localy on a windows vista / iis 7.0 system. Whe I try to call the default.aspx page I get the following error:

Serverfehler in der Anwendung "Default Web Site"


HTTP-Fehler 404.3 - Not Found

Beschreibung: Die angeforderte Seite kann aufgrund der für den Webserver konfigurierten MIME (Multipurpose Internet Mail Extensions)-Zuordnungsrichtlinien nicht angezeigt werden. Die angeforderte Seite weist eine unbekannte Dateinamenerweiterung auf. Sie ist daher nicht zul?ssig.

Fehlercode: 0x80070032

Benachrichtigung: ExecuteRequestHandler

Modul: StaticFileModule

Angeforderte URL: http://localhost:80/default.aspx

Physikalischer Pfad: C:\DevTools.Net2005\AjaxSite\default.aspx

Angemeldeter Benutzer: Anonym

Anmeldemethode: Anonym

Handler: StaticFile

Any idea which mime types I have to define? Thanks

This should just work out of the box. You should not need to set any mime types explicitly. Did you make any changes to the Default web site?

Saturday, March 24, 2012

AJAX Timer doesnt work with page trace

Whenever I trace the output of my site, I get the following error: sys.webforms.pagerequestmanagerparsererrorexception. message from the server cannot be parsed. common causes of this error are when the resposne is modified by calls to response.write, response filters, httpmodules, or server trace is eneabled.

Error parsing near [timer1,1000], etc......

and it's an alert pop-up, that continues to alert every second after I close it. Its really annoying.


The site works fine when trace isn't eneabled, but obviously trace is needed for debug reasons.

I can catch the trace event in Page.Trace.IsEnabled, but how do I destroy or deactivate the timer, or the scriptmanager, or whatever it is that causing all these javascript alerts?

Hi bbaxter,

In general trace won't "play nice" with ajax (as it alters the page by appending the trace information to it).

I'd suggest taking a look atthis page to see how Microsoft recommends handling Debug and Trace situations when Ajax is involved.

You can use thetrace viewer to avoid appending the information to the page.

Add something like this to your web config

<configuration>
<system.web>
<trace enabled="true" pageOutput="false" requestLimit="50" localOnly="false"/>
</system.web>
</configuration>

And surf to http://yourapplication/trace.axd

I hope that helps.


Page level Tracing is not enabled if the page contains UpdatePanel, Instead use Trace.axd.

Well, see I have a page class that only sets trace=true when the url contains a ?trace=1 argument.

Can't I programmatically just ignore the update panel when trace=1, or using page.trace.isenabled in the page load?

Basically what I'm saying is on every page of our site adding ?trace=1 makes the trace enabled, this is useful for testing and live because you can see the debug information. Is there a way to just make the popups stop... popping up? the trace isn't the problem I suppose, the popups caused by the timer are.


Hi bbaxter,

Ah I see...I'd suggest looking at migrating to the suggested way of doing this. Any use of updates panels and trace will cause the errors you are seeing. There may be a way to eat those exceptions (I'm not aware of one) but it's not going to update the updatepanel, making it rather pointless.

I think the best way is probably to set the EnablePartialRendering property on your script manager to false wherever you're manually turning on tracing. That will eliminate the ability for updatepanels to do asynchronous postbacks. You probably also want to set the Timer.Enabled property to false or change its Interval to something longer as it'll cause regular postbacks that will refresh the page.

I hope that helps.

Ajax Throws Sys.WebForms.PageRequestManagerErrorException with Response.Redirect

Hi,

I am Getting following error while using Ajax(Update Panel) .

Throws Sys.WebForms.PageRequestManagerErrorException .

Any Help ?

 Hi, I checked the internet and read something about page smartnavigation that f*cks up the page redirection.

What they suggested was the following:

Page.SmartNavigation=false; Response.Redirect("yourpage.aspx");
Give it a try!
Good luck
Wim

No Buddy this is not what i m looking 4.


Hi,

Can you post some stripped-and-fully working code?

Can you also specify where/when it goes wrong?

Hopefully we can help you better then!
Kind regards
Wim


Checkout this threadhttp://forums.asp.net/t/1130621.aspx


Thanks...

Resolved...Smile

Wednesday, March 21, 2012

AJAX sys is undefined PLEASE HELP!

I just upgraded my site to ASP.NET AJAX EXTENSIONS 2.0 RC

I am getting an error in IE sys is undefined

I added the following line to the<httpHandlers> section of web.config

<

addverb="GET"path="ScriptResource.axd"type="Microsoft.Web.Handlers.ScriptResourceHandler"validate="false"/>

I am still getting this error in ie - the site works fine in FireFox.

Your help is appreciated.

Thank you

try this :

<

addverb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"validate="false"/>

I already have this line in my web.config.

I am still having the same problem. It still says sys is undefined in ie, firefox works just fine.

Here is the section of code from web.config:

<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"/>
<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>
</httpHandlers>

PLEASE HELP ME!!


I'm having the same issue. I just installed the controls today. My own apps fail trying to access "Sys", but also when I go to the main project page and look at the online demo, it also fails to work properly. It worked once on the first example on the list, but ever since then it fails with multiple scripting errors. It works fne in FireFox 2.01 though.

OS is 2000 Sp 4, browser is IE 6.0.2800.1106. (AFAIK I have all SP's installed, but I recently reinstalled IE because it would not let me turn on debugging at all.)

Regular ASP.Net AJAX seems to work fine.

If it wasn't the fact that the main site fails, I'd blame myself, but as that doesn't work for me, I'm lost!

Help! (indeed)


Removing this line resolved this error for me:

<

addverb="GET"path="ScriptResource.axd"type="Microsoft.Web.Handlers.ScriptResourceHandler"validate="false"/>