Archive for September, 2009

Debugging asp.net applications

Sunday, September 27th, 2009
  1. Set the debug=”true” flag in the <compilation debug=”true”></compilation> tag section of web.config
  2. 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).
  3. 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.
  4. At the service level in IIS, the debugging option needs to be set.

C#, Asp.net & Sql questions

Saturday, September 19th, 2009
  1. What is a transaction?
  2. What happens when transaction fails? Rollback.
  3. Can the trigger be part of a transaction? No. Because it can’t roll back.
  4. What is an index?
  5. What are the different types of indexes? What are the differences?
  6. What is a view state?
  7. 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.
  8. What is the method being used to populate the dataset from the adapter? Fill
  9. What kind of control being used to populate data from a dataset?
  10. What is the difference between Server.Transfer and Request.Redirect?
  11. Can a url be transferred from one website to other like yahoo.com with Server.Transfer? Can it be done with Request.Redirect?
  12. What is locking in sql? When is an exclusive lock being used?
  13. Can an abstract class be derived from an Interface? What is the difference between abstract class and interface?
  14. What are the four sections of a wsdl?
  15. Why transaction is important? Commit and Rollback.
  16. How do you develop a software if there is help for the requirement is not available? How do you estimate a project?
  17. Why you had to re-factor a project? Performance?
  18. Have you done migration of data from legacy systems in flat files to sql.

.net questions

Thursday, September 17th, 2009
  1. How the relationship in a DataSet is defined? By DataRelation.
  2. What does pageoutput=false in the trace section of system.web mean? Don’t dump trace information on the page.
  3. Is Data.SqlClient compatible with any sql server? Yes.
  4. Different controls in asp.net? System.Web.UI.WebControl, System.Web.UI.UserControl, System.Web.UI.Control
  5. Asp.net Server control is derived from?
  6. csc options /t and /r mean?
  7. What is the class library being used for asp.net health monitoring? WebBaseEvent
  8. What is CLR?
  9. Early Binding Vs Late Binding? Known Type Vs Object creation
  10. Where does asp.net look for this file ~/default.aspx? ~ means root.
  11. Is delegate a valid control event?
  12. What are the different caching options in asp.net? Why it is being used?
  13. What is the inproc library being used for asynchronous communication?
  14. How is the Master Page communication take place in asp.net?
  15. What @Master tag being used for?
  16. How the content page says what master page is being used for it? MasterPageFile, ConentPlaceHolder, Cotent
  17. Explain the various options to control errors in the CustomErrors page section?
  18. Is Array part of System.Collections? No
  19. What are two different state management in asp.net? Client, Server
  20. What are the two different types of session state management in asp.net? Inproc Vs outproc.
  21. How the timeout handled in sessionstate server?
  22. How a method is exposed in a web service? webmethod
  23. What are the different data providers supported in .net 2.0?
  24. Where do you use user control and web part?
  25. In a multi-threaded application, how the time out is handled? A thread times-out because of a database problem. How that is handled?
  26. How to force the user not to save a document like an image? The amount of information downloaded need to be controlled.
  27. What is a http handler?
  28. What are the four sections of wsdl?
  29. What is Yahoo UI?
  30. Why do we use certificates?
  31. What is xaml? Is this being used in wpf only?
  32. How wpf supports multi-threading and long process?
  33. What is a .net entity framework?
  34. What is Linq2Sql?
  35. What is a declarative UI?
  36. What is the purpose of a web service?
  37. Is a trigger part of transaction? No. Trigger output can’t be rolled back.
  38. What method being used to fill a dataset?

Side Effects of Test Driven Development

Saturday, September 5th, 2009

Test Driven Development? Or is it Test First Development or Test Assisted Development?

The side effects of Test Driven Development:

  1. Class explosion
  2. High maintainability
  3. Architecture dilution
  4. Developers drive contracts

IIS5, IIS6, IIS7 differences

Thursday, September 3rd, 2009

The 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.

More Info