- Set the debug=”true” flag in the <compilation debug=”true”></compilation> tag section of web.config
- To debug an already deployed asp.net application, in vs.net, select the processes and attach to aspnet_wp.exe (IIS5) or w3wp.exe (IIS6).
- To debug an already deployed asp.net application on a remote server, install the remote debugging components. Do the same in step 2. In the case of C++, use the Remote Via DCOM in the project settings.
- At the service level in IIS, the debugging option needs to be set.
Archive for September, 2009
Debugging asp.net applications
Sunday, September 27th, 2009C#, Asp.net & Sql questions
Saturday, September 19th, 2009- What is a transaction?
- What happens when transaction fails? Rollback.
- Can the trigger be part of a transaction? No. Because it can’t roll back.
- What is an index?
- What are the different types of indexes? What are the differences?
- What is a view state?
- There is a data grid populated with 30,000 records and have view state for each record? In addition to the client gets slower, what is the disadvantage of view state? The view state travels between the client and server, so expensive.
- What is the method being used to populate the dataset from the adapter? Fill
- What kind of control being used to populate data from a dataset?
- What is the difference between Server.Transfer and Request.Redirect?
- Can a url be transferred from one website to other like yahoo.com with Server.Transfer? Can it be done with Request.Redirect?
- What is locking in sql? When is an exclusive lock being used?
- Can an abstract class be derived from an Interface? What is the difference between abstract class and interface?
- What are the four sections of a wsdl?
- Why transaction is important? Commit and Rollback.
- How do you develop a software if there is help for the requirement is not available? How do you estimate a project?
- Why you had to re-factor a project? Performance?
- Have you done migration of data from legacy systems in flat files to sql.
.net questions
Thursday, September 17th, 2009- How the relationship in a DataSet is defined? By DataRelation.
- What does pageoutput=false in the trace section of system.web mean? Don’t dump trace information on the page.
- Is Data.SqlClient compatible with any sql server? Yes.
- Different controls in asp.net? System.Web.UI.WebControl, System.Web.UI.UserControl, System.Web.UI.Control
- Asp.net Server control is derived from?
- csc options /t and /r mean?
- What is the class library being used for asp.net health monitoring? WebBaseEvent
- What is CLR?
- Early Binding Vs Late Binding? Known Type Vs Object creation
- Where does asp.net look for this file ~/default.aspx? ~ means root.
- Is delegate a valid control event?
- What are the different caching options in asp.net? Why it is being used?
- What is the inproc library being used for asynchronous communication?
- How is the Master Page communication take place in asp.net?
- What @Master tag being used for?
- How the content page says what master page is being used for it? MasterPageFile, ConentPlaceHolder, Cotent
- Explain the various options to control errors in the CustomErrors page section?
- Is Array part of System.Collections? No
- What are two different state management in asp.net? Client, Server
- What are the two different types of session state management in asp.net? Inproc Vs outproc.
- How the timeout handled in sessionstate server?
- How a method is exposed in a web service? webmethod
- What are the different data providers supported in .net 2.0?
- Where do you use user control and web part?
- In a multi-threaded application, how the time out is handled? A thread times-out because of a database problem. How that is handled?
- How to force the user not to save a document like an image? The amount of information downloaded need to be controlled.
- What is a http handler?
- What are the four sections of wsdl?
- What is Yahoo UI?
- Why do we use certificates?
- What is xaml? Is this being used in wpf only?
- How wpf supports multi-threading and long process?
- What is a .net entity framework?
- What is Linq2Sql?
- What is a declarative UI?
- What is the purpose of a web service?
- Is a trigger part of transaction? No. Trigger output can’t be rolled back.
- What method being used to fill a dataset?
Side Effects of Test Driven Development
Saturday, September 5th, 2009Test Driven Development? Or is it Test First Development or Test Assisted Development?
The side effects of Test Driven Development:
- Class explosion
- High maintainability
- Architecture dilution
- Developers drive contracts
IIS5, IIS6, IIS7 differences
Thursday, September 3rd, 2009The IIS5 has applications. To start an application, the whole server need to be restarted.
The IIS6 & IIS7 have site and applications. The application is a IIS term. The AppDomain is a .net term.
A site can have multiple apppools. One app pool can have multiple applications. If all the applications under a pool need to be restarted, recycle the apppool. If just one application under a apppool need to be restarted, then start the appdomain. Starting appdomain is not available through IIS, it should be done through the application.