asp.net-newbie

  • Thread starter Thread starter reiks
  • Start date Start date
R

reiks

I'm a learner of asp.net . I'm want to know the meaning of
few basic terms clearly.

1.What is meant by configuration?
what exactly is it's role in an application?
can an application exist without any configuration?If so,
are there any disadvantages?if not,why not?

2.What do you mean by client application and server
application? I have created few sample projects(asp web
applications) in .Net.what are they-client or server
applications?

3.what is an Executable0hosted application?

Lastly, Can a single process act as a client and server?
if so, plz give some examples?


thanks
 
Hi Reiks,
1.What is meant by configuration?
what exactly is it's role in an application?

Each application can a have a Configuration file[Eg.
can an application exist without any configuration?If so,
are there any disadvantages?if not,why not?

Yes. Application need not have a configuration. However
you can store some frequently used values like database
connection string etc here so that you can change it if
the string changes. Else, If you have used db connection
string in the app, you may have to recompile the app to
make changes.

It is advised to use configuration file to store all those
variables that has may change in future.
2.What do you mean by client application and server
application? I have created few sample projects(asp web
applications) in .Net.what are they-client or server
applications?

The applicaiton that u have created is a server
application. Your client is Internet explorer that renders
the page.
Server is something that servers page/data to the client.
Client accesses server for page/data. If you write an
application like say MSN Messenger [which will be your
client], all your data will be stored in Microsoft's
server and when you login it servers the page.
3.what is an Executable hosted application?

From MSDN..
The configuration file for an application hosted by the
executable host is in the same directory as the
application. The name of the configuration file is the
name of the application with a .config extension. For
example, an application called myApp.exe can be associated
with a configuration file called myApp.exe.config.

This means, you can say an application as an executable
hosted application if it uses configuration file and the
file exists in same directory.
Lastly, Can a single process act as a client and server?
if so, plz give some examples?

I can't think of something that is both server and client.

Hope that helps
R. Pooran Prasad
Itreya Technologies Pvt Ltd.,
Mail: (e-mail address removed)
Phone(Off) : 5200179/80/81/82/83 Extn: 42
Mobile: +91 98860 29578
 
Back
Top