11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 19: Securing Your ASP.NET <strong>Application</strong> <strong>and</strong> <strong>Web</strong> Services 549Note Windows executables, such as WinForm applications, are configured using configuration files.The names of these files are derived from the application executable name, for example,App.exe.config, where app is the application name.Changes that you make to configuration files are applied dynamically <strong>and</strong> do notnormally require that you restart the server or any service, except if changes are madeto the element in Machine.config, which is discussed later in thischapter.Table 19.1 shows where the configuration files are located.Table 19.1 Configuration File LocationsConfiguration fileLocationMachine.config%windir%\Microsoft.NET\Framework\{version}\CONFIG(one per machine per installed versionof the .NET Framework)<strong>Web</strong>.config(zero, one, or many per application)\inetpub\wwwroot\web.config\inetpub\wwwroot\Your<strong>Application</strong>\web.config\inetpub\wwwroot\Your<strong>Application</strong>\SubDir\web.configEnterprisesec.config(enterprise-level CAS) configuration)<strong>Security</strong>.config(machine-level CAS configuration)<strong>Security</strong>.config(user-level CAS configuration)<strong>Web</strong>_hightrust.config%windir%\Microsoft.NET\Framework\{version}\CONFIG%windir%\Microsoft.NET\Framework\{version}\CONFIG\Documents <strong>and</strong> Settings\{user}\<strong>Application</strong> Data\Microsoft\CLR <strong>Security</strong> Config\{version}%windir%\Microsoft.NET\Framework\{version}\CONFIG<strong>Web</strong>_mediumtrust.config<strong>Web</strong>_lowtrust.config<strong>Web</strong>_minimaltrust.config(ASP.NET <strong>Web</strong> application CASconfiguration)For more information about ASP.NET <strong>Web</strong> application CAS configuration files, seeChapter 9, “Using Code Access <strong>Security</strong> with ASP.NET.”

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!