Interview FAQs

Microsofts COM is a technology for component software development. It is a binary standard which is language independent. DCOM is a distributed extension of COM.
Session and cache data are stored on Web Server. If a State Server or SQL Server is used to Store Session Data then Session data is stored on these server instead of Web Server. 

Side-by-side execution is the ability to run multiple versions of an application or component on the same computer. You can have multiple versions of the common language runtime, and multiple versions of applications and components that use a version of the runtime, on the same computer at the same time. Since versioning is only applied to shared assemblies, and not to private assemblies, two applications one using private assembly and one using shared assembly cannot be stated as side-by-side executables.

Debug mode for ASP.Net applications - 
To set ASP.Net application in debugging mode, edit the applications web.config and assign the "debug" attribute in < compilation > section to "true" as show below:
< configuration >
< system.web >
< compilation defaultLanguage="C#" debug="true" / >
< / configuration>

The term managed is the cause of much confusion. It is used in various places within .Net, meaning slightly different things.

Managed code: The .Net framework provides several core run-time services to the programs that run within it - for example exception handling and security. For these services to work, the code must provide a minimum level of information to the runtime. Such code is called managed code. All C# and Visual Basic.Net code is managed by default. 

Managed data: This is data that is allocated and deallocated by the .Net runtimes garbage collector. C# and VB.Net data is always managed.

Managed classes: This is usually referred to in the context of Managed Extensions  for C++. When using C++, a class can be marked with the _gc keyword. As the name suggests, this means that the memory for instances of the class is managed by the garbage collector, but it also means more than that. The class becomes a fully paid-up member of the .Net community with the benefits and restrictions that brings. An example of a benefit is proper interop with classes written in other languages - for example, a managed C++ class can inherit from a VB class. An example of a restriction is that a managed class can only inherit from one base class.

Web Forms are an asp.net technology that you use to create programmable Web pages. Web Forms render themselves as browser-compatible HTML and script, which allows any browser on any platform to view the pages. Using Web Forms, you create Web pages by dragging and dropping controls onto the designer and then adding code, similar to the way that you create Visual Basic forms. 

Advantage includes automatic garbage collection, memory Error! Hyperlink reference not valid., security, type checking, versioning Managed code is compiled for the .Net run-time environment. It runs in the Common Language Runtime (CLR), which is the heart of the .Net Framework. The CLR provides services such as security, memory management, and cross-language integration. Managed applications written to take advantage of the features of the CLR perform more efficiently and safely, and take better advantage of developers existing expertise in languages that support the .Net Framework.
Unmanaged code includes all code written before the .Net Framework was introduced this includes code written to use COM, native Win32, and Visual Basic 6. Because it does not run inside the .Net environment, unmanaged code cannot make use of any .Net managed facilities. 


<sessionstate mode="inproc" cookieless="false" timeout="20" sqlconnectionstring="data source=;user id=<userid>;password=<password>;"

server="" port="42424"/>


Mode: The mode setting supports three options: inproc, sqlserver, and stateserver. As stated earlier, asp.net supports two modes: in process and out of process. There are also two options for out-of-process state management: memory based (stateserver), and SQL Server based (sqlserver). 

Cookieless: The cookieless option for ASP.NET is configured with this simple Boolean setting.
Timeout: This option controls the length of time a session is considered valid. The session timeout is a sliding value; on each request the timeout period is set to the current time plus the timeout value.
Sqlconnectionstring: The sqlconnectionstring identifies the database connection string that names the database used for mode sqlserver.
Server: In the out-of-process mode stateserver, it names the server that is running the required Windows NT service: ASPState.
Port: The port setting, which accompanies the server setting, identifies the port number that corresponds to the server setting for mode stateserver.

When you request dynamic content like Active Server Pages (ASP) page, an Internet Services API (ISAPI) application, or a Common Gateway Interface (CGI) application on a Microsoft Windows Server 2003 server that is running on IIS 6.0 you receive a error message like File or Directory not found.

It is a common error that is a trouble of asp.net users.The 500 internal server error is related to Server error. It indicate that the server failed to complete the request because server server is unable to specify what exactly did. This error 500 not related to client, the fault is in webpage/website request that resides on server.
For more https://support.microsoft.com/en-us/kb/311766

PreviousDisplaying 44 of 46Next
Need Help? Contact Us.

Log in


Forgot password?


New User