Tuesday 18 February 2014

.Net WCF interview questions and answers

  1. When should i use message security versus transport security in WCF
    1. http://msdn.microsoft.com/en-us/library/ff648863.aspx
    2. http://msdn.microsoft.com/en-us/library/vstudio/ms733137%28v=vs.100%29.aspx
  2. When should i use resource-bases authorization versus roles bases authorization in WCF
    1. http://msdn.microsoft.com/en-us/library/ff647503.aspx
  3. When should i impresonate the original caller in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650591.aspx
    2. http://blogs.msdn.com/b/irenak/archive/2009/12/02/sysk-373-how-to-impersonate-the-original-caller-when-calling-the-wcf-service-in-asp-net-by-configuration-only.aspx
  4. How do i migrate to WCF service from a ASMX webservice
    1. http://www.codeproject.com/Articles/312490/Migrating-ASMX-Services-To-WCF-services
    2. http://msdn.microsoft.com/en-us/library/ms730214%28v=vs.110%29.aspx
    3. http://msdn.microsoft.com/en-us/library/aa738697%28v=vs.110%29.aspx
  5. How do i enable logging and auditing in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650832.aspx
    2. http://msdn.microsoft.com/en-us/library/ms734737%28v=vs.110%29.aspx
  6. How do i stop my service if there has been an auditing failure in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650832.aspx
  7. How do i authenticate against active directory  in WCF
    1.  http://social.msdn.microsoft.com/Forums/vstudio/en-US/18dcfcc7-28db-4bb4-8cf9-af2dbe3fddbe/wcf-service-and-active-directory-authenticationautorization-through-internet
    2. http://forums.asp.net/t/1680469.aspx
  8. How do i authenticate against SQL Store in WCF
    1. http://msdn.microsoft.com/en-us/library/ff647294.aspx
  9. How do i send credentials in the message when i an using transport security  in WCF
    1.  http://msdn.microsoft.com/en-us/library/ms789011%28v=vs.110%29.aspx
  10. How do i avoid clear text password  in WCF?
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20avoid%20cleartext%20passwords?
  11. How do i use the windows token role provider for ASP.Net role authorization in WCF ?
    1.  http://msdn.microsoft.com/en-us/library/ff649821.aspx#Authorization5
  12. How do i encrypt sensitive data in the WCF configuration file.
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20encrypt%20sensitive%20data%20in%20WCF%20configuration%20file?
  13. How do i run the WCF service with a particular identity ?
    1.  http://msdn.microsoft.com/en-us/library/ff650534.aspx#ConfigurationManagement2
  14. When should i use a service principal name (SPN)  in WCF ?
    1.  http://social.msdn.microsoft.com/Forums/vstudio/en-US/6b8862f8-39bd-4af5-8616-4abab369da87/wcf-userprincipalname-and-serviceprincipalname-confusion?forum=wcf
  15. How do i configure a least privileged account for my WCF service ?
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20configure%20a%20least%20privileged%20account%20to%20host%20my%20service?
  16. Should i validate before or after message serialization  in WCF ?
    1.  http://msdn.microsoft.com/en-us/library/ff647141.aspx#InputDataValidation4
  17. How do i protect my service from malformed messages  in WCF?
    1.  http://msdn.microsoft.com/en-us/library/ff647141.aspx#InputDataValidation7
  18. When should i use a channel factory  in WCF?
    1.  http://msdn.microsoft.com/en-us/library/ms734681%28v=vs.110%29.aspx
    2. http://msdn.microsoft.com/en-us/library/ms576132%28v=vs.110%29.aspx
  19. What is REST in WCF ? how do we implement REST service in WCF ?
    1. http://msdn.microsoft.com/en-us/magazine/dd315413.aspx
  20. WCF poison message, WCF Dead letter
    1. http://www.michaelfcollins3.me/blog/2012/09/20/wcf-msmq-bad-message-handling.html
  21. Method overloading in WCF
    1. http://www.codeproject.com/Tips/656042/Method-Overloading-in-WCF
  22. dynamic and var
    runtime polymorph.
    viewbag
    jquery selectors
    2 default delegates
    flag enums
     

Sunday 16 February 2014

ASP.Net MVC interview questions

 ASP.Net MVC interview questions

  1.  Explain MVC process to handle request using MHPM events
    1. http://myfrequentlyasked.blogspot.com/2011/08/process-request-using-mhpm-events-fired.html
    2. http://www.codeproject.com/Articles/73728/ASP-NET-Application-and-Page-Life-Cycle
  2. Explain the MVC ASP.Net flow to process the request
    1. http://msdn.microsoft.com/en-us/library/dd381612%28v=vs.100%29.aspx
  3. Explain the page life cycle of an ASP.Net MVC page
    1. http://stackoverflow.com/questions/17953756/mvc4-and-page-life-cycle
    2. http://stackoverflow.com/questions/460145/what-is-the-page-lifecycle-of-an-asp-net-mvc-page-compared-to-asp-net-webform
    3. http://www.dotnet-tricks.com/Tutorial/mvc/TbR0041112-Asp.net-MVC-Request-Life-Cycle.html
  4. Explain the function of URL routing system in the ASP.Net MVC
    1. http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx
    2. http://careerride.com/view.aspx?id=2185
  5. When I type return view() how does it know which view to return ?
  6. Explain how to access viewstate value of this page in next page.
  7. Is it possible to combine ASP.net webpages and MVC application and make a single application ?
    1. http://weblogs.asp.net/rajbk/archive/2010/05/11/running-asp-net-webforms-and-asp-net-mvc-side-by-side.aspx
  8. How can you share a view across multiple controllers ?
    1. Put the view in shared folder.
  9. Name different return types of a controller action method 
    1. http://msdn.microsoft.com/en-us/library/dd410269%28v=vs.100%29.aspx
    2. http://careerride.com/view.aspx?id=3840
  10. How route table is created in ASP.Net MVC
    1. http://www.asp.net/mvc/tutorials/older-versions/controllers-and-routing/asp-net-mvc-routing-overview-cs
    2. http://msdn.microsoft.com/en-us/library/cc668201.aspx
  11. What are the 3 segments of default route that are present in an ASP.Net MVC application ?
  12. What is the difference between adding routes to a ASP.Net webform application and an MVC application ?



http://www.dotnet-tricks.com/Tutorial/mvc/4XDc110313-return-View%28%29-vs-return-RedirectToAction%28%29-vs-return-Redirect%28%29-vs-return-RedirectToRoute%28%29.html