Thursday, November 1, 2012

what is Marshaling?

Marshaling is a process of making an object in one process (the server) available to another process (the client). There are two ways to achieve the marshalling.

Marshal by value: The server creates a copy of the object passes the copy to the client. When a client makes a call to an object marshaled by value (MBV), the server creates an exact copy and sends that copy to the client. The client can then use the object's data and executable functionality directly within its own process or application domain without making additional calls to the server. Objects that the application accesses frequently are best remoted using MBV.

Marshal by reference: The client creates a proxy for the object and then uses the proxy to access the object. When a client makes a call to an object marshaled by reference (MBR), the .NET framework creates a proxy in the client's application domain and the client uses that proxy to access the original object on the server. Large objects that the application accesses relatively infrequently are good candidates for MBR.

What are remotable objects in .NET Remoting?

Remotable objects are the objects that can be marshaled across the application domains.
You can marshal by value, where a deep copy of the object is created and then passed to the receiver.
You can also marshal by reference, where just a reference to an existing object is passed.

When would you use .NET Remoting and when Web services?

.Net Remoting
Used for more efficient exchange of information when you control both ends of the application.

Web Services
Used for open-protocol-based information exchange when you are just a client or a server with the other end belonging to someone else.

If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?

use the security state maintained using a database. (Use Authentication mode as database


Which are the namespaces that are imported automatically by Visual Studio in ASP.Net?

There are 7 namespaces which are imported automatically.

 
System

System.Collections

System.IO

System.web

System.web.UI

System.web.UI.HTMLControls

System.web.UI.WebControls

What are the types of Authentication? Describe

There are 3 types of Authentication.
(a)Windows Authentication
(b) Forms Authentication
(c) Passport Authentication.


Windows authentication uses the security features integrated into the Windows NT and Windows XP operating systems to authenticate and authorize Web application users.

Forms authentication allows you to create your own list/database of users and validate the identity of those users when they visit your Web site.

Passport authentication uses the Microsoft centralized authentication provider to identify users. Passport provides a way to for users to use a single identity across multiple Web applications. To use Passport authentication in your Web application, you must install the Passport SDK.