This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet1011/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1007   1008   1009   1010   1011   1012   1013   1014   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition



Source Code

The AppConfigReaderApp application can be found under the Chapter 15 subdirectory.



The Machine Configuration File

The configuration files you’ve examined in this chapter have a common theme: they apply only to a

specific application (that is why they have the same name as the launching application). In addi-

tion, each .NET-aware machine has a file named machine.config that contains a vast number of

configuration details (many of which have nothing to do with resolving external assemblies) that

control how a specific version of the .NET platform operates.

The .NET platform maintains a separate *.config file for each version of the framework

installed on the local machine. For example, the machine.config file for .NET 2.0 can be found

under the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG directory (your version

may differ). If you were to open this file, you would find numerous XML elements that control

ASP.NET settings, various security details, debugging support, and so forth. However, if you wish to

update the machine.config file with machinewide application settings (via an  ele-

ment), you are free to do so.

Although this file can be directly edited using Notepad, be warned that if you alter this file

incorrectly, you may cripple the ability of a specific version of the runtime to function correctly. This

scenario can be far more painful than a malformed application *.config file, given that XML errors

in an application configuration file affect only a single application, but erroneous XML in the

machine.config file can break a specific version of the .NET platform.



Summary

This chapter drilled down into the details of how the CLR resolves the location of externally refer-

enced assemblies. You began by examining the content within an assembly: headers, metadata,

manifests, and CIL. Then you constructed single-file and multifile assemblies and a handful of

client applications (written in a language-agnostic manner).

As you have seen, assemblies may be private or shared. Private assemblies are copied to the

client’s subdirectory, whereas shared assemblies are deployed to the GAC, provided they have been

assigned a strong name. Finally, as you have seen, private and shared assemblies can be configured

using a client-side XML configuration file or, alternatively, via a publisher policy assembly.

C H A P T E R   1 5  




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1007   1008   1009   1010   1011   1012   1013   1014   ...   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish