| Which service in the CLR allocates the memory on the managed heap for an object in ASP.Net? |
| Code manager. |
|
|
|
|
|
| How to solve the memory leak problem in ASP.Net? |
| by using System.GC.Collect() |
|
|
|
|
|
| What are the differences between Web.Config and Machine.Config file? |
Machine.Config:
1. This is automatically installed when you install Visual Studio. Net.
2. This is also called machine level configuration file.
3. Only one machine.config file exists on a server.
4. This file is at the highest level in the configuration hierarchy.
Web.Config:
1. This is automatically created when you create an ASP.Net web application project.
2. This is also called application level configuration file.
3. This file inherits setting from the machine.config |
|
|
|
|
|
| How many web.config files can have single ASP.Net web application? |
| By default ASP.Net web application has only one web.config. but in sub folder you can create one web.cofing per sub folder to set configuration of that folder. eg. - if your web application have 3 folder then 4 web.config can be in your web application |
|
|
|
|
|
| Why Can not I run my .Net Application without .Net Framework? |
| All the .Net libraries you call within your code are not compiled into your assembly, and you need these assemblies in the destination machine, in order for it to run you need .Net Framework installed.
A program compiled in C# or VB is not a program in native code, it is a "pre" compilation in a Intermediate Language (MSIL). When you run this "program" the .Net Runtime, makes the final compilation to native code for the platform on which it is executed - this is called Just-In-Time compilation. |
|
|
|
|
|
| What is typed dataset? |
| A typed dataset is very much similar to a normal dataset. But the only difference is that the sehema is already present for the same. Hence any mismatch in the column will generate compile time errors rather than runtime error as in the case of normal dataset. Also accessing the column value is much easier than the normal dataset as the column definition will be available in the schema. |
|
|
|
|
|
| What is Dataset and Diffgram? |
| When sending and retrieving a DataSet from an XML Web service, the DiffGram format is implicitly used. Additionally, when loading the contents of a DataSet from XML using the ReadXml method, or when writing the contents of a DataSet in XML using the WriteXml method, you can select that the contents be read or written as a DiffGram. For more information, see Loading a DataSet from XML and Writing a DataSet as XML Data. While the DiffGram format is primarily used by the .NET Framework as a serialization format for the contents of a DataSet, you can also use DiffGrams to modify data in tables in a Microsoft SQL Server™ 2000 database. |
|
|
|
|
|