Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 650 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server."

#11
This issue for me was caused by a database mapping error.

I attempted to use a select() call on a datasource with errors in the code behind. My controls were within an update panel and the actual cause was hidden.

Usually, if you can temporarily remove the update panel, asp.net will return a more useful error message.
Reply

#12
" 1- Go to the web.config of your application "

" 2- Add a new entry under < system.web > "

<httpRuntime requestValidationMode="2.0"/>

3- Also Find the pages tag and set validateRequest=False

Only this works for me. !!
Reply

#13
Check your `Application` `Event Log` - my issue was `Telerik RadCompression` HTTP Module which I disabled in the Web.config.
Reply

#14
Be sure to put tilde and forward slash(~/) when CDN is the root directory. I think it's an issue in IIS
Reply

#15
I also faced the same issue , and none of these worked. In my case this was fixed by adding these lines in config file.

<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="100000" />
</appSettings>

<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="false" enableCaching="true"/>
</scripting>
</system.web.extensions>

Reply

#16
I had this issue and I spent hours trying to fix it.

The solution ticked as answered will not fix the error only handle it.

The best approach is to check the IIS log files and the error should be there. It appears that the update panel encapsulates the real error and outputs it as a 'javascript error'.

For instance my error was that I forgot to make a class [Serializable]. Although this worked fine locally it did not work when deployed on the server.
Reply

#17
We also faced the same issue, and the problem could only be reproduced in the server (i.e., not locally, which made it even harder to fix, because we could not debug the application), and when using IE. We had a page with an update panel, and within this update panel a modalpopupextender, which also contained an update panel. After trying several solutions that did not work, we fix it by replacing every imagebutton within the modalpopupextender with a linkbutton, and within it the image needed.
Reply

#18
@JS5 , I also faced the same issue as you: ImageButton causing exceptions inside UpdatePanel only on production server and IE. After some research I found this:

> There is an issue with ImageButtons and UpdatePanels. The update to
> .NET 4.5 is fixed there. It has something to do with Microsoft
> changed the x,y axis of a button click from Int to Double so you can
> tell where on the button you clicked and it's throwing a conversion
> error.

[Source][1]

I'm using NetFramework 2.0 and IIS 6, so, the suggested solution was to downgrade IE compatibility adding a meta tag:

<meta http-equiv="X-UA-Compatible" content="IE=9" />

I've done this via Page_Load method only on the page I needed to:

Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim tag As HtmlMeta = New HtmlMeta()

tag.HttpEquiv = "X-UA-Compatible"
tag.Content = "IE=9"

Header.Controls.Add(tag)
End Sub

Hope this helps someone.

[1]:

[To see links please register here]

Reply

#19
as my friend @RaviKumar mentioned above one reason of following problem is that some piece of data transferred from code to UI contain raw html tags which make request invalid for example I had a **textarea** and in my code I had set its value by code below

`txtAgreement.Text = Data.Agreement`

And when I compiled the page I could see raw html tag inside textarea so I changed textarea to **div** on which **innerhtml** works and render html (instead of injecting raw html tags into element) and it worked for me

happy coding
Reply

#20
<add key="aspnet:MaxHttpCollectionKeys" value="100000"/ >

Add above key to Web.config or App.config to remove this error.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through