473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is it possible to debug the framework code?

Hi, I am relatively new to ASP.NET and I am experimenting with some code and
exercises.

My question: Say I have some stacktrace because I have some error.

[NotSupportedException: Specified method is not supported.]
System.Web.UI.DataSourceView.ExecuteDelete(IDictio nary keys, IDictionary
oldValues) +28
System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary
oldValues, DataSourceViewOperationCallback callback) +75
System.Web.UI.WebControls.GridView.HandleDelete(Gr idViewRow row, Int32
rowIndex) +927
System.Web.UI.WebControls.GridView.HandleEvent(Eve ntArgs e, Boolean
causesValidation, String validationGroup) +1134
System.Web.UI.WebControls.GridView.RaisePostBackEv ent(String
eventArgument) +199
System.Web.UI.WebControls.GridView.System.Web.UI.I PostBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +177
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Can I somehow place a breakpoint in
'System.Web.UI.DataSourceView.ExecuteDelete' and look at what is happening
there?

(Well, I think, probably not since the code for the framework is not shipped
as far as I can see.)
Aug 18 '08 #1
4 1249
On Aug 18, 5:49*pm, "Marc" <m.wenti...@removethischello.nlwrote:
Hi, I am relatively new to ASP.NET and I am experimenting with some code and
exercises.

My question: Say I have some stacktrace because I have some error.

[NotSupportedException: Specified method is not supported.]
* *System.Web.UI.DataSourceView.ExecuteDelete(IDicti onary keys, IDictionary
oldValues) +28
* *System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary
oldValues, DataSourceViewOperationCallback callback) +75
* *System.Web.UI.WebControls.GridView.HandleDelete(G ridViewRow row, Int32
rowIndex) +927
* *System.Web.UI.WebControls.GridView.HandleEvent(Ev entArgs e, Boolean
causesValidation, String validationGroup) +1134
* *System.Web.UI.WebControls.GridView.RaisePostBackE vent(String
eventArgument) +199
* *System.Web.UI.WebControls.GridView.System.Web.UI. IPostBackEventHandler.Rais*ePostBackEvent(String
eventArgument) +7
* *System.Web.UI.Page.RaisePostBackEvent(IPostBackEv entHandler
sourceControl, String eventArgument) +11
* *System.Web.UI.Page.RaisePostBackEvent(NameValueCo llection postData) +177
* *System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

Can I somehow place a breakpoint in
'System.Web.UI.DataSourceView.ExecuteDelete' and look at what is happening
there?

(Well, I think, probably not since the code for the framework is not shipped
as far as I can see.)
Hi Marc,

simply go to MSDN and find that

1) NotSupportedException happens when the ExecuteDelete operation is
not supported by the DataSourceView.

2) The DataSourceView class's default implementation is to throw a
NotSupportedException exception. If you extend the DataSourceView
class, override the ExecuteDelete method if your class supports
deletion from the underlying data storage.

3) Data-bound controls can determine whether the ExecuteDelete
operation is supported by a data source control by retrieving the
DataSourceView object using the DataSourceControl..::.GetView method,
and checking the CanDelete property.

http://msdn.microsoft.com/en-us/libr...utedelete.aspx

Hope this helps

Aug 19 '08 #2

"Alexey Smirnov" <al************@gmail.comwrote
Hi Marc,

simply go to MSDN and find that
....
Hope this helps
Well it helps solving the programming problem I had, but that was not really
my question. Sorry to see you go to all that trouble for nothing. At this
moment I am programming with some other tools then C# and ASP.NET and for
example in Delphi you can see the vcl library code in c:program
files\borland\delph\source\vcl and step through it. I wondered if could do
that with some parts of the .NET framework too.

Your post does help the coding problem by the way, it was not for nothing,
but this exception is another problem. I excuse myself for not being clear.

Marc Wentink
Aug 19 '08 #3
On Aug 19, 10:16*am, "Marc" <m.wenti...@removethischello.nlwrote:
"Alexey Smirnov" <alexey.smir...@gmail.comwrote
Hi Marc,
simply go to MSDN and find that

...
Hope this helps

Well it helps solving the programming problem I had, but that was not really
my question. Sorry to see you go to all that trouble for nothing. At this
moment I am programming with some other tools then C# and ASP.NET and for
example in Delphi you can see the vcl library code in c:program
files\borland\delph\source\vcl and step through it. I wondered if could do
that with some parts of the .NET framework too.

Your post does help the coding problem by the way, it was not for nothing,
but this exception is another problem. I excuse myself for not being clear.

Marc Wentink
Well, I thought you wanted to solve the problem at first :-) You can
debug .NET and you can also get access to its source code. Please take
a look at the following references:

http://weblogs.asp.net/scottgu/archi...libraries.aspx
http://blogs.msdn.com/sburke/archive...urce-code.aspx
Aug 19 '08 #4
On Aug 19, 10:16 am, "Marc" <m.wenti...@removethischello.nlwrote:
"Alexey Smirnov" <alexey.smir...@gmail.comwrote
Hi Marc,
simply go to MSDN and find that

...
Hope this helps

Well it helps solving the programming problem I had, but that was not really
my question. Sorry to see you go to all that trouble for nothing. At this
moment I am programming with some other tools then C# and ASP.NET and for
example in Delphi you can see the vcl library code in c:program
files\borland\delph\source\vcl and step through it. I wondered if could do
that with some parts of the .NET framework too.

Your post does help the coding problem by the way, it was not for nothing,
but this exception is another problem. I excuse myself for not being clear.

Marc Wentink
Hello Mark:
You can see framework's source using tools as Ildasm.exe to see the
result as IL code, or Reflector http://www.aisto.com/roeder/dotnet/
wich let you choose the language, including Delphi.Net ;-)
Aug 19 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joe Reazor | last post by:
I just upgraded to v1.1 of the framework and VS.Net 2003. I opened up one of my solutions and rebuilt my project and all went well. I then ran my project in debug mode. My program runs up fine,...
1
by: Eric Robert | last post by:
Hi, I am writing a C# application that uses a C++ unmanaged DLL. When I turn the unmanaged debug option ON, the application is much slower to start and the unmanaged code is very slow to debug....
0
by: Scott Collens | last post by:
Hi all, I have a question regarding web.config. I am ready to flip the application to the production server but when I switch the debug setting in the web.config from <compilation...
10
by: Scott | last post by:
I have a simple asp.net app which works fine in debug mode, but crashes on the following line when I run it on the production server: Dim dt As DataTable I have tried the following variations...
3
by: Mike | last post by:
I installed SP2 on my boxes and now I can no longer debug my asp.net web app. How can i fix that and be able to debug again?
7
by: ivo | last post by:
Hi everyone I am having trouble with deploying VS 2005 Express Edition web app to real server on the net. Since VS 2005 ExpressEdition is free - is it for that reason unpossible to do...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
16
by: jim | last post by:
Microsoft announced that it will be releasing its source code for the .Net libraries. But, don't get too excited at Microsoft's new SHARED source initiative. According to CNET (at...
28
by: Peter Oliphant | last post by:
I have written a program using MS VS VC++ 2005 Express, /cli pure. Upon compiling it it works fine in the GUI development environment. It also works fine as a Debug stand-alone. ut I had an odd...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.