.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Getting an error while trying to debug an ASP.NET (WebForms) app that I've migrated

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :ASP.Net

I'm trying to migrate an ASP.NET 2.0 app (WebForms) to ASP.NET 3.5.  I've finally fixed a 500.19 IIS 7.5 error I was having.  Now it will run, so long as I don't attempt to debug it.  If I do attempt to debug it I get an error message.  I've searched for help on this error and there's precious little out there.  Here's the text of the error message:

"Unable to start debugging on the web server.  Check for one of the following.

1) The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supported by the debugger.
2) The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use.
3) The Microsoft .NET Framework version specified by you for debugging is incorrect.

Please see the Visual Studio .NET debugger documentation for correctly specifying the Microsoft .NET Framework version your application is going to use for debugging."

Well, as far as I know, I'm using the correct version of the .NET Framework (3.5) for this app.  Although I am not as familiar with IIS 7.5 on Windows 7.  Anyway, I could use help on this error, please.

View Complete Post

More Related Resource Links

error 500 in IIS, but work in debug



I have a website that is built in .Net framework 4. I have set up the site in IIS 7 on a win 7 and set the applicationpool to .Net 4. But the weird thing is that I cannot access the site if I go through IIS, I can only access the site if I debug the site from within VS 2010. 

Anyone got any ideas of where I should start to look?

What is error Sys.Webforms.PageRequestManagerServerErrorException

I have a server button in an aspx page. On click of the button I am opening a new aspx page as follows:Protected Sub btnView_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnView.ClickDim script As String = "OnLoadComplete();window.open('ViewReport.aspx?id=" & requestId & "','mywindow','width=1000,height=675,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,left=10,top=10');"ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "script1", script, True)       End Sub Sometimes not frequently when I click the button, I get an alert box with message as follows:Sys.Webforms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was : 500Please let me know why I am getting this error randomly and what is the solution to this.I guess there is some configuration issue as on one machine I am getting error, on other its working fine.ThanksVikas

SSRS 2008 error - Sys.WebForms.PageRequestManagerServerErrorException: status code 12029



I am executing a huge report in SSRS 2008, after some time the report doesn't renders and there is an error icon at the left bottom of the web page. When I click open it to see the details, it gives following error;

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while
processing the request on the server. The status code returned from the server was: 12029.

Any help on this will be appreciated.


Sys.WebForms.PageRequestManager ServerErrorException: An unknown error occurred while processing the



I am executing a SSRS 2008 report from report manager so it opens in a web browser. Since it is a big report it takes some time for execution. During this time i get an error icon on the left bottom of the web browser and the execution stops. When I click open the error icon to see the details it says,

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029." 

I have no clue what it is up to. Please help me on this.

The other relatively smaller reports are coming up successfully without any issue.

I am using SQL Server 2008 R2 64 bit ent. edition and the OS is Win Server 2003 64 bit SP 2.


Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object referen



 i have a dropdownlist and Datagrid control on form. i wanted to refresh the grid

on changing  the DropDown OnSelectedIndexChanged, but when i do change

the dropdown value then it give me fallowing error message.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

Can any one help me, how to solve this problem?

Code given below.


                <asp:DropDownList ID="ddColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddColor_SelectedIndexChanged"
                    <asp:ListItem Selected="True">Red</asp:ListItem>

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the



 I am using Ajax RC 1.0

Initially my application was simple ASP.NET 2.0 application and later on client decided for implementing AJAX.

My form is containg datagridview inside UpdatePanel and one textbox also. datagridview is having all rows editable. I have master page implemented.

I am updating records on lost focus of any text box(inside datagridview  and outside also) 

Problem is that I am able to run my application locally without any problem. But when I am publishing my website on server it is giving me following error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

I have uploaded following DLL's on server: AjaxControlToolkit.dll, AJAXExtensionsToolbox.dll, Microsoft.Web.Extensions.Design.dll and Microsoft.Web.Extensions.dll

Please let me know the solution of this problem.

Error: Sys.WebForms.PageRequestManagerServerErrorException


When    I am going to export datatable into excel , I am getting a problem.

From Visual studio It's working fine but when I published it , gives error in windows 7

error : Sys.WebForms.PageRequestManagerServerErrorException

but when I browse through XP it gives error :Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500.

The code I used  for Export given below :








xlApp =

xlWorkBook = xlApp.Workbooks.Add(misValue);

xlWorkSheet = (Excel.

xlWorkSheet = (Excel.

xlWorkSheet.get_Range(xlWorkSheet.Cells[1, 1], xlWorkSheet.Cells[65535, 1]).EntireColumn.NumberFormat =

xlApp.Visible =



data = dataTable.Columns[i].ColumnName.ToString();

xlWorkSheet.Cells[1, i + 1] = data;







data = dataTable.Rows[i].ItemArray[j].ToString();

xlWorkSheet.Cells[i + 2, j + 1] = data;




xlWorkBook.SaveAs(sFileName, Microsoft.Office.Interop.Excel.

xlWorkBook = xlApp.Workbooks.Open(sFileName,misValue, misValue, misValue, misValue, mi

Error Help: Sys.WebForms.PageRequestManagerParserErrorException


Hello Everyone,

I've checked out Eilon's blog on this error, tried everything he mentioned, and it still doesn't work.  Also, I've added the "enablepartialrendering" to my script manager and it points me to another error that I can't seem to fix ("sys.webforms.pagerequestmanager is null...").

That being said, I have 2 pages in the same directory.  Telerik AJAX controls work fine on one but do not work on the other, the one giving me this error.  The 2 pages are set up identically, Telerik loading panels, ajax panels, radgrids, tab strips, multi-page viewers, the code behind...

I get the above error when I try clicking the "add new record" button.

What could the problem be?  If I need to paste some code in here to diagnose, please let me know and I will do so.  Thanks for taking the time out of your day to assist me.


Turn ON Custom Error and disable debug mode



We have a ASP .Net based web service setup and hosted on a IIS v6.0. We wish to turn on custom error and disable debug mode. I understand these can be accomplished by modifying the web.config and machine.config file. However, since web service does not have a UI...please let me know if the changes made to the config files will take into effect. The reason why we wish to do these changes is because, our external auditors have flagged these as a vulnerabiity.



Venkatesh Selvaraju

sys.webforms.pagerequestmanagerservererrorexception 503 Error


Hi All,

I am using VS2005, .net2.0, Ajax with Oracle 11g and ODP.Net. I have a report that I am calling from .aspx page.
Its a complex report so its taking approx. 5mins. to load. I am using update panel.
But exactly after 3mins after the page load, I am getting this error.. "sys.webforms.pagerequestmanagerservererrorexception: 503" Error and its stop loading the page further.
This is happening only in DEV and UAT server(DEV & UAT both in the same box). This is working fine in my local system.

I donno whether this error related to timeout. So I have tried allmost all possibilities like..
1) Increasing the timeout by adding...<asp:ScriptManager id="ScriptManager1" runat="server" EnablePartialRendering ="true" AsyncPostBackTimeout ="36000">.
2) Increased the Oracle ODP.Net command timeout "OracleCommand.CommandTimeout = 36000"
2) Added.. <sessionState mode="InProc" timeout="3600"></sessionState> in the web.config file.
3) Added.. <httpRuntime timeout="3600"> in the web.config file.
4) IIS server, I have set these values for the "Default Website"....... "Connection timeout : 600 secs",&nbs

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: RAISEERROR


I'm getting this error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: You cannot add to the repair list until the barcode is added to Inventory first.

 Now the 'You cannot add to the repair list until the barcode is added to Inventory first.' is my own message being returned from

sql server.


I have a datagrid with a new button on it. When the user clicks on the button I insert a blank row in the grid. They then go to edit the record to put info in the grid.

Since the system is a barcode driven system, I check the barcode they entered to make sure it's in the system. If not I throw the message from sql server using the RAISEERROR event.

Here is the partial sql code:

	if not exists(select * from dbo.tblIndentification 
				where Identification_Barcode = @barcode) 
		RAISERROR(50020,11,1)  with NOWAIT
		return -1


Here  is the c# code:

                else if (e.CommandName.Equals("Update"))
                    //for use in conjuction when the user inserts a new row
                    if  (txtCurrentRowBeingEdited.Text=="")

MonthCalendar control - debug error



I'm use Visual C++ 2008.
OS: Windows 7W
Windows Forms

I have checked all the exceptions in the debugger.

I added MounthCalendar control.

When I run without debugging all is ok.

But if I run with debugging and I try to seleced some day on the MounthCalendar control, then i get this debug error:


A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

Additional information: Value does not fall within the expected range.

Whu I get it ?

please help, me

Line 4723 Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an


I am using Visual Web Developer 2008 Express Edition SP1. I have created a Dynamic Data application for basic CRUD operations on some extremely simple admin tables (each table has 3 columns: ID, Code, and Description) with no foreign keys.  I get this error whenever I click on either the "Insert" or "Cancel" links on the insert.aspx page or on the "Update" or "Cancel" links on the edit.aspx page for any of these tables or if I click on a "Delete" link on the List.aspx page and then confirm the delete. The "Details" link on the List.aspx page works fine.

If I debug the error, it appears in a code block that starts with "Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor()" in a ScriptResource.axd file.

When I created the DataClasses.dbml, I dragged the tables onto the left design surface (create classes) and they appear in the diagram (step 8 of the "To create the data model using LINQ to SQL" section of the walkthrough at http://msdn.microsoft.com/en-us/library/cc488469.aspx). However, I did not drag anything onto the right design surface (create methods). This may

Saving Site as a Template Results in an Error in Migrated SharePoint 2010



We've migrated our corporate SharePoint 2007 farm to 2010. We're having an issue with Saving Sites as Templates. I've created a blank site and attempted to Save the Site as a template and receive an error. The logs have the following below about the error:

System.InvalidOperationException: Error generating solution files in temporary directory.

The strange thing is, we have 3 web applications and only one exhibits this behavior.

Any ideas where I can look further?

Thanks in advance.


What's new in ASP.NET 4.0 - Part II - Routing in Webforms

This post covers one such feature which is Routing in Webforms. Although Routing was available even in .NET 3.5 SP1, (check this excellent post by Phil Haack on implementing Routing in ASP.NET 3.5 with .NET 3.5 SP1), it was kind of less known. Also the plumbing work was too much for getting it implemented.

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend