473,698 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

[NotSupportedExc eption: Specified method is not supported.]
System.Web.UI.D ataSourceView.E xecuteDelete(ID ictionary keys, IDictionary
oldValues) +28
System.Web.UI.D ataSourceView.D elete(IDictiona ry keys, IDictionary
oldValues, DataSourceViewO perationCallbac k callback) +75
System.Web.UI.W ebControls.Grid View.HandleDele te(GridViewRow row, Int32
rowIndex) +927
System.Web.UI.W ebControls.Grid View.HandleEven t(EventArgs e, Boolean
causesValidatio n, String validationGroup ) +1134
System.Web.UI.W ebControls.Grid View.RaisePostB ackEvent(String
eventArgument) +199
System.Web.UI.W ebControls.Grid View.System.Web .UI.IPostBackEv entHandler.Rais ePostBackEvent( String
eventArgument) +7
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +177
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +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 1268
On Aug 18, 5:49*pm, "Marc" <m.wenti...@rem ovethischello.n lwrote:
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.

[NotSupportedExc eption: Specified method is not supported.]
* *System.Web.UI. DataSourceView. ExecuteDelete(I Dictionary keys, IDictionary
oldValues) +28
* *System.Web.UI. DataSourceView. Delete(IDiction ary keys, IDictionary
oldValues, DataSourceViewO perationCallbac k callback) +75
* *System.Web.UI. WebControls.Gri dView.HandleDel ete(GridViewRow row, Int32
rowIndex) +927
* *System.Web.UI. WebControls.Gri dView.HandleEve nt(EventArgs e, Boolean
causesValidatio n, String validationGroup ) +1134
* *System.Web.UI. WebControls.Gri dView.RaisePost BackEvent(Strin g
eventArgument) +199
* *System.Web.UI. WebControls.Gri dView.System.We b.UI.IPostBackE ventHandler.Rai s*ePostBackEven t(String
eventArgument) +7
* *System.Web.UI. Page.RaisePostB ackEvent(IPostB ackEventHandler
sourceControl, String eventArgument) +11
* *System.Web.UI. Page.RaisePostB ackEvent(NameVa lueCollection postData) +177
* *System.Web.UI. Page.ProcessReq uestMain(Boolea n
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +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) NotSupportedExc eption happens when the ExecuteDelete operation is
not supported by the DataSourceView.

2) The DataSourceView class's default implementation is to throw a
NotSupportedExc eption 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 DataSourceContr ol..::.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\d elph\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...@rem ovethischello.n lwrote:
"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\d elph\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...@rem ovethischello.n lwrote:
"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\d elph\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
3858
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, but then I try to open up a file that it typically works with, my program has custom serialization to a file for work that users do. This has always worked in the past, as I could open and resave my files with no problems. Now I am unable to...
1
2559
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. Is it normal? Eric Robert
0
1522
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 defaultLanguage="vb" debug="true" /> to
10
4892
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 which produce the same result: Dim dt As System.Data.DataTable Dim dt As DataTable = New DataTable The error message reads: System.NullReferenceException: Object reference
3
1430
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
1313
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 deployment ... What do I need to copy to remote server ...
6
9140
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++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
16
1472
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 http://www.news.com/8301-10784_3-9790863-7.html), "The source code will be released under Microsoft's Reference License. This means that you can only use the source as a reference for debugging, maintaining or enhancing your applications. You cannot modify or...
28
2105
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 behavior when it comes to the Release varsion when I renamed its project directory name it was in! I tracked the problem down to it being the NAME of the DIRECTORY the application is in! Let me explain. I compiled the code, and it worked in ALL...
0
8673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4365
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.