ATLAS: unknown error popup issue

I figured out that in some case the update panel will create runtime errors which happens as popup in the browser window with the error message "unknown error". I guess the same guy who have invented the hresult have created this feedback modell.

scenario

Using a ATLAS updatepanel and user can interact eg with textbox

Problem 1) user is typing reserved chars like < or &

Solution: set ValidateRequest="false" in page direktive

Problem 2) Page title or meta tags contains reserved chars like < or &

Solution: remove this from page title or comment out metatags in whole HEAD region

if you have additions pleas write it into comments

Published Wednesday, August 23, 2006 9:59 PM by preishuber
Filed under: ,

Comments

# re: ATLAS: unknown error popup issue

Monday, August 28, 2006 4:32 AM by SundaraLingam.MH

I have tried as your suggession, But now also it doesn't work.

# re: ATLAS: unknown error popup issue

Tuesday, August 29, 2006 3:59 AM by amit

i still have errors with response.write in atlas updatepanel.Are there any properties to set for atlas to work response object?

mail me at lohogaonkar.amit@comdaq.net

# re: ATLAS: unknown error popup issue

Tuesday, August 29, 2006 3:46 PM by Jose Roberto Chavez Rodriguez

Hello, I have the alert error when use the Response.Write too. If anyone have a solution , I use the Response.Write to alert user about error when they typing wrong words

# re: ATLAS: unknown error popup issue

Thursday, August 31, 2006 1:56 AM by Bhavesh

I did all

Solution: set ValidateRequest="false" in page direktive

Solution: remove this from page title or comment out metatags in whole HEAD region

even I am facing same error "unknown error popup"

pls if you solution then let me know..

atm_bhavesh@yahoo.com

thanks

# re: ATLAS: unknown error popup issue

Friday, September 01, 2006 11:04 AM by TAP

Depending on how you structure your pages, you may also need to move any javascript on your page into a file and reference it.

In my case I have a master page with atlas and a global js function to block the enter key from submitting the form from a text box; I had the js in the head and got the error. Im oved it to a separate file and referenced it with the src attribute and everything works again.

# re: ATLAS: unknown error popup issue

Tuesday, September 05, 2006 7:45 PM by Dan

Thank you for the comments TAP.  I have been researching this error forever and it turned out the reason I was getting the "Unknown Error" message was because I had inline JS in my header.  I moved the JS to a file and referenced it as you stated above and everything worked.

# re: ATLAS: unknown error popup issue solved

Tuesday, September 12, 2006 1:32 AM by Amit Lohogaonkar

Hi friends,

recently we solved our some issues with atlas.

Some times there was unknown errors pop up window problem.We took these steps to remove all unknown errors

1>removed response.write from all pages.Replace it with this.page.registerclientscriptblock(function)

2>put your complex javascript functions in cdata tags.

3>Check all syntaxes of html,css,javascript

4>Removed characters which xml does not recognize

5>Try to build pages sometimes with updatepanel or sometimes with web methods in aspx page with the use of atlas.js file & javascript functions to call those web method without page refresh.

If you have any suggestions mail me at lohogaonkaramit@yahoo.com

mcp,mcad

# re: ATLAS: unknown error popup issue

Monday, September 18, 2006 1:22 AM by Jithendra

I got the same problem, after seeing last comments i did following thing.

Previously script let was <script language=javascript></script>

once i modified to

<script language="javascript"></script>

Its working fine.

# re: ATLAS: unknown error popup issue

Wednesday, September 20, 2006 4:51 AM by Shikhar

Hi I have a Button In UpdatePanel. On the click event of that button I am writing Response.Writ("Hello World"); ..  But It through a popup "Unknown Error" .. Plz help me to solve it.

# re: ATLAS: unknown error popup issue

Wednesday, September 20, 2006 5:00 AM by Hannes Preishuber

@shikhar

very easy: never ( and i mean never) use response.write

use a label

# re: ATLAS: unknown error popup issue

Wednesday, September 20, 2006 5:34 AM by Shikhar

thanks ! But can I use AJAX and Atlas Simultaneously . I mean I have done some AJAX coding (By using controleName. Attribute.Add.. on page load).  Does this code can run If I add the whole page in UpdatePanel..

# re: ATLAS: unknown error popup issue

Saturday, September 30, 2006 5:12 PM by FReD

Thanks for the big tip!  I've been struggling with this error for a while.  I got rid of my functions within the <head> section and the problem disappeared.  Thanks again!!!

# re: ATLAS: unknown error popup issue

Monday, October 09, 2006 4:36 AM by Hala-3amme

Ok .... I have another case which cause the "unknown error popup ".....

I use ATLAS on 3 dropdown list the first one brings some products the second brings products pepinding on the item id which has been selected from the first dropdown list, the third dropdown list brings products depinding on the second dropdown list....

i use "SqlDataSourced" control to bring the data from Sql2000 Data base....

the error occures when i change the selected item from any of the three dropdown lists ...

Please can any body help!!!

# re: ATLAS: unknown error popup issue

Wednesday, October 11, 2006 9:08 AM by McGurk

I had the Unknown Error popup.  I removed any overrides for rendering from my web controls, made sure every xml tag had its attributes in quotes (<script type="text/javascript" src="myfile.js"></script>) and removed all javascript into a separate file.  Realize that if you're registering client script that it'll be placed in the header, which will cause the error popup.

# re: ATLAS: unknown error popup issue

Wednesday, October 11, 2006 11:21 AM by sb

This error is killing me... I have GridView in the UpdatePanel and get Unknown Error on postback. I tried everything...

# re: ATLAS: unknown error popup issue

Thursday, October 12, 2006 5:50 PM by Rob B

I had the same problem and was pulling my hair out all day.  I changed CodeBehind="blah.aspx" to CodeFile="blah.aspx" and it suddenly worked.

# re: ATLAS: unknown error popup issue

Tuesday, October 17, 2006 12:31 PM by Seva

Please help ,

Same error ("unknown error") in IE 5.5 browser ,

in IE 6.0 evrything works fine .

Any suggestions

# re: ATLAS: unknown error popup issue

Thursday, October 19, 2006 3:34 AM by JD

the pop error will diplay on Response.Write

# re: ATLAS: unknown error popup issue

Thursday, October 19, 2006 7:16 AM by jnegocio

Remove, one by one, tag´s in head section or keep only :

<head runat="server">

   <title>Untitled Page</title>

</head>

work for me...

# re: ATLAS: unknown error popup issue

Monday, October 30, 2006 7:43 AM by LoneTiger

Hi all.

I had a similar problem. This post pointed out the script formatting problems. After inspecting my page I found out there was a PayPal Donate button script inside one of the UpdatePanel-s and that was the thing cousing errors. The Google AddSense adds work fine however.

# re: ATLAS: unknown error popup issue

Tuesday, October 31, 2006 10:44 AM by Emailcurry

My situation is with the update panel and dundas chart. I get the 'unknown error' popup too. To resolve it I remove EnablePartialRendering and add EnableScriptComponents="false" in ScriptManager and it works like a charm.  Hope it helps.

# re: ATLAS: unknown error popup issue

Sunday, November 19, 2006 11:19 PM by anitha

Hi,

I was facing the similar problem.I moved my javascript validation to seperate file and Included the source file to script tag

<script language="javascript" src="myfile.js">

</script>

Every thing works fine

Thanks

# re: ATLAS: unknown error popup issue

Tuesday, November 28, 2006 1:03 AM by Prashant

Hi,

First of all I would like to thak you for suggesting the solution.

I used:

EnableEventValidation="false"

in the page directive and it worked.

May got bless you.

Thanks

# re: ATLAS: unknown error popup issue

Thursday, December 14, 2006 4:07 AM by Chris

The following meta tag broke my atlas update panels:

<base target="_self" href="<%=Request.Url.OriginalString %>"></base>

This line is needed to prevent a new window to be loaded when the page is navigated away.

How else can I acheive this that won't break atlas?

# re: ATLAS: unknown error popup issue

Wednesday, January 10, 2007 8:36 AM by Sudhir

Please help ,

Same error ("unknown error") pop up on button click in IE 6 browser ,

in IE 7.0 evrything works fine .

Any suggestions

# re: ATLAS: unknown error popup issue

Thursday, January 18, 2007 2:02 AM by Karthik

I had the same problem. I have included the updatepanel tags inside a form element. After removing that , it works fine.

# re: ATLAS: unknown error popup issue

Tuesday, March 13, 2007 4:51 AM by Noam

Thanks all for your suggestions.

I had the same problem, and I spent a long time to resolve it.

I had no a shadow of idea why, but the solution was to replace :

DropDownList1.Items.FindByText(str).Selected = true;

to this

DropDownList1.SelectedValue = DropDownList1.Items.FindByText(str).Value;

Hope it will be helped.

# re: ATLAS: unknown error popup issue

Tuesday, March 20, 2007 1:36 PM by Merlin

I found that I also need to wrap ALL the editable controls (textboxes, checkboxes, etc) inside an atlas update panel. Once everything was inside the panel, I stopped receiving the unknown error popup.

# re: ATLAS: unknown error popup issue

Friday, April 06, 2007 6:44 AM by Neelima

I'm trying to remove the update panel used in my page using the property EnablePartialRendering="False", I'm getting the following errors..

1.Assertion Failed: Could not resolve refernce to object named "_PageRequestManager" for "dataContext" property on object of type "Sys.Binding"

2.Assertion Failed: No data context available for binding with ID "" and dataPath "inPostBack" on object of type "Sys.UI.Control"

Can any body help me outwith this issue..???

Thanks..

# re: ATLAS: unknown error popup issue

Sunday, April 29, 2007 10:36 AM by Tasneem Alam

I had the same problem. I have included the updatepanel tags inside a form element. After removing that , it works fine.

# re: ATLAS: unknown error popup issue

Wednesday, May 02, 2007 2:20 AM by prashant

my web application working on development server but when i am make it live, it gives this error any

# re: ATLAS: unknown error popup issue

Thursday, August 09, 2007 7:46 AM by Ashu

Hi prashant,

EnableEventValidation="false" is not working..any other way?

# re: ATLAS: unknown error popup issue

Thursday, August 09, 2007 1:58 PM by andre

but updatepanel tags has to be inside the form tag or else you will get an error.

# re: ATLAS: unknown error popup issue

Thursday, October 04, 2007 11:57 AM by Vue

That was it?!?! Whew...Thanks for the tip!

# re: ATLAS: unknown error popup issue

Saturday, January 12, 2008 10:03 PM by TAS Nagoya Japan

I found it depends on client OS or security setting.

Privacy in IE option,site or cookie must be on.

Most of OS are works not setting,I do not know why this works.

# re: ATLAS: unknown error popup issue

Wednesday, July 02, 2008 9:10 PM by seman

EnableEventValidation="false"

good

Leave a Comment

(required) 
(required) 
(optional)
(required)