Showing posts with label dot net faqs. Show all posts
Showing posts with label dot net faqs. Show all posts

DotNet Deployment Interview Questions

DotNet Deployment Interview Questions

What do you know about .NET assemblies?
Assemblies are the smallest units of versioning and deployment in the .NET application. Assemblies are also the building blocks for programs such as Web services, Windows services, serviced components, and .NET Remoting applications.

What’s the difference between private and shared assembly?
Private assembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong name.

What’s a strong name?
A strong name includes the name of the assembly, version number, culture identity, and a public key token.

How can you tell the application to look for assemblies at the locations other than its own install?
Use the
directive in the XML .config file for a given application.
should do the trick. Or you can add additional search paths in the Properties box of the deployed application.

How can you debug failed assembly binds?
Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched.

Where are shared assemblies stored?
Global assembly cache.

How can you create a strong name for a .NET assembly?

With the help of Strong Name tool (sn.exe).

Where’s global assembly cache located on the system?
Usually C:\winnt\assembly or C:\windows\assembly.

Can you have two files with the same file name in GAC?
Yes, remember that GAC is a very special folder, and while normally you would not be able to place two files with the same name into a Windows folder, GAC differentiates by version number as well, so it’s possible for MyApp.dll and MyApp.dll to co-exist in GAC if the first one is version 1.0.0.0 and the second one is 1.1.0.0.

So let’s say I have an application that uses MyApp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name MyApp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new MyApp.dll?
Use publisher policy. To configure a publisher policy, use the publisher policy configuration file, which uses a format similar app .config file. But unlike the app .config file, a publisher policy file needs to be compiled into an assembly and placed in the GAC.

What is delay signing?
Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the development process is complete and the component or assembly is ready to be deployed. This process enables developers to work with shared assemblies as if they were strongly named, and it secures the private key of the signature from being accessed at different stages of development.

ADO.NET Interview Questions

ADO.NET Interview Questions
How to retrieve the third table value from the data set?
Which type of database is used while processing
Explain acid properties?
Explain what a diffgram is and its usage?
What is the usage of data adapters and tell the
Which are the different Isolation Levels?
What does ADO.NET consists of?
What are the three Ado objects?
What is the difference between Dataset.clone and Dataset.copy?
What is the use of parameter object?
Write steps of retrieving data using ado.net?
What is sequence of code in retrieving data from database?
Where do you store connection string?
Explain about ADO and its objects?
What are the 4 types of classes in ADO.NET?
What is a dataset?
How to generate XML from a dataset and vice versa?
What is a database provider?
What are the differences between RAW, AUTO?
How can implement dropdown list in particular of
What is a data grid?
What is ODP.NET?
How to add Primary key in Data Set?
Explain different methods and Properties of Data Reader?
What is method to get XML and schema from Dataset?
How to get OLEDB connection?
What is the provider and namespaces being used
What is the difference between Dataset and Data Adapter?
What we do with the object of ado.net dataset after using it?
How many commands do the OLEDB command takes?
What are the steps in connecting to database?
What providers do ado.net uses internally?
How to check if a data reader is closed or opened?
How can you implement sub data grid in a master data grid?
What are the functions of OLEDB data adapter?
What is the key feature of ADO.NET compared to ADO?
What is the difference between ADO and ADO.net?
What are different types of Commands available
What is the difference between Data Reader and Data Adapter?
What is ADO .NET and what is difference between
How to get the new OLEDB connection of oracle
What is data column and how it is used?
How to you declare connection strings and how to
Explain the ADO.Net Architecture?
What are the different namespaces used in the
If a dataset contains 100 rows, how to fetch rows
What are advantages and disadvantages of Microsoft
What is a data table?
What providers do you use to connect to oracle database?
Explain the structure of ADO.NET?
What are differences between dataset.clone
What are the differences between ADO and ADO.NET?
What provider ADO.net use by default?
Can you edit data in the Repeater control?
How do you handle data concurrency in .NET?
What is the difference between OLEDB Provider
How to find the count of records in a dataset?
What are the two fundamental objects in ADO.NET?
What are the advantages of OLEDB compared with other classes?
What does connection string consists of?
What are the different row versions available?
What is the advantage of ADO.Net?
How do you merge two datasets into the third
What is the difference between OLEDB reader and
Where do ADO.NET and XML web services come
How you will set the data relation between two columns?
How would you connect to database using .NET?
How do u implement locking concept for dataset?
How do we invoke queries from the application?
Which method do you invoke on the Data Adapter
What are relation objects in dataset?
What’s the role of the Data Reader class in ADO.NET connections?
What is dataset and tell about its features?
How to sort the data in Data table?