{"id":4,"date":"2009-02-13T11:29:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=4"},"modified":"2009-02-13T11:29:00","modified_gmt":"1970-01-01T00:00:00","slug":"asp-net-konfigurasyon-dosyalari","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2009\/02\/13\/asp-net-konfigurasyon-dosyalari\/","title":{"rendered":"ASP.NET Konfig\u00fcrasyon Dosyalari"},"content":{"rendered":"<p align=\"left\" style=\"margin: 12pt 0cm 3pt; text-align: left;\" class=\"MsoTitle\"><span style=\"font-size: 11pt; font-family: Calibri;\"><strong>ASP.NET K<span class=\"w\">onfig&uuml;rasyon Dosyalari<\/span><\/strong><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Web uygulamalarini konfig&uuml;re etmek i&ccedil;in tutmak i&ccedil;in basit ve pratik bir yol olan <em style=\"\">.config <\/em>dosyalarinin kullanimini inceleyelim.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Web siteleri Hiyerarsik XML&rsquo;lerden olusan konfig&uuml;rasyon dosyalari ile yapilandirilir. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Hiyerarside en tepede olan <em style=\"\">machine.config<\/em> konfig&uuml;rasyon dosyasi, Framework&uuml;n y&uuml;kl&uuml; oldugu dizinde bulunur. Genellikle:<span style=\"\">&nbsp; <\/span>%WINDIR%\\Microsoft.NET\\Framework\\<\/span><em><span style=\"font-size: 11pt; font-family: Calibri;\">version<\/span><\/em><span style=\"font-size: 11pt; font-family: Calibri;\">\\Config\\machine.config<span style=\"\">&nbsp; <\/span>adresinde bulunur. Machine.config dosyasi makinedeki b&uuml;t&uuml;n .NET uygulamalari i&ccedil;in yapilandirmalari i&ccedil;erir, Windows, Console, ClassLibrary ve Web uygulama tiplerinin hepsi i&ccedil;in ge&ccedil;erlidir. Machine.config dosyasindaki ayarlardan bazilari &uuml;zerine web.config dosyasi tarafindan yazilabilir, bazilari ise daha globaldir ve &uuml;zerine yazma i&ccedil;in korumalidir. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Hiyerarsideki ikinci dosya global Web.Config dosyasidir, Machine.config<span style=\"\">&nbsp; <\/span>ile ayni dizinde bulunur ve Machine.config&rsquo;teki bazi ayarlarin &uuml;zerine yazabilir. Web sunucusunun varsayilan ayarlarini tutar. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Bahsedilen hiyerarsi asagidaki semada g&ouml;sterilmektedir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\"><img decoding=\"async\" loading=\"lazy\" height=\"346\" width=\"522\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Orhan\/13_2_resim1.jpg\" \/><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Her bir Web sitesinin k&ouml;k dizinine, bir Web.config dosyasi ekleyebilirsiniz. Bu dosya istege baglidir ve hiyerarside daha global olan konfig&uuml;rasyon dosyasinin &uuml;zerine yazabilir ve lokal ayarlari i&ccedil;erebilir. Her bir Web uygulamasi i&ccedil;in de yine bir web.config dosyasi olusturulabilir. Son olarak, her bir Web uygulamasinin her bir alt dizininde istege bagli olarak ayarlarin yalnizca bir alt k&uuml;mesi ge&ccedil;erli olabilen bir Web.config dosyasi olabilir.<\/span><\/p>\n<h1 style=\"margin: 12pt 0cm 3pt;\"><span style=\"font-size: 11pt; font-family: Calibri;\">Konfig&uuml;rasyon dosyalarinin islenmesi <\/span><\/h1>\n<p style=\"margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;\" class=\"Default\"><span style=\"font-size: 11pt; font-family: Calibri;\"><span style=\"\">1)<span style=\"font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: 11pt; font-family: Calibri;\">Web uygulamasini ilk &ccedil;alistirdiginizda, Web uygulamasi i&ccedil;in konfig&uuml;rasyon dosyalarinin katmanlarini d&uuml;zlestirerek asagidaki gibi etkin bir &ouml;nbellek(cache) olusturulur.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;\" class=\"Default\"><span style=\"font-size: 11pt; font-family: Calibri;\"><span style=\"\">2)<span style=\"font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: 11pt; font-family: Calibri;\">Machine.config dosyasi ayarlarina erisilir. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;\" class=\"Default\"><span style=\"font-size: 11pt; font-family: Calibri;\"><span style=\"\">3)<span style=\"font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: 11pt; font-family: Calibri;\">Ana Web.config dosyasi ayarlari cache&rsquo;e eklenir ve daha &ouml;nce Machine.config&rsquo;ten okunan ayarlarla karsilastirilir, uyusanlarin &uuml;zerine yazilir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;\" class=\"Default\"><span style=\"font-size: 11pt; font-family: Calibri;\"><span style=\"\">4)<span style=\"font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: 11pt; font-family: Calibri;\">Web sitesinin ana dizininde de bir web.config dosyasi varsa<span style=\"\">&nbsp; <\/span>cache&rsquo;e okunur, var olan ayarlar &uuml;zerine yazilir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;\" class=\"Default\"><span style=\"font-size: 11pt; font-family: Calibri;\"><span style=\"\">5)<span style=\"font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: 11pt; font-family: Calibri;\">Ayni sekilde Web uygulamasinin i&ccedil;erisindeki web.config dosyasi ve &uuml;zerine varsa alt dizinler i&ccedil;erisindeki web.config dosyasi okunur. Her konfig&uuml;rasyon dosyasi okundugunda &ccedil;akisan ayarlar bir &ouml;ncekinin &uuml;zerine yazilir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"Default\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<h1 style=\"margin: 12pt 0cm 3pt;\"><span style=\"font-size: 11pt; font-family: Calibri;\">Konfig&uuml;rasyon dosyalarinin d&uuml;zenlenmesi<\/span><\/h1>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Konfig&uuml;rasyon dosyalari XML dosyasi oldugundan herhangi bir Metin edit&ouml;r veya<span style=\"\">&nbsp; <\/span>XML edit&ouml;r ile d&uuml;zenleyebilirsiniz. Veya Microsoft Management Console (MMC) &uuml;zerindeki .NET Framework 2.0 Configuration snap-in &lsquo;inin kullanici aray&uuml;z&uuml; sayedinde y&ouml;netici olarak ayarlari d&uuml;zenleyebilirsiniz. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Ayni Zamanda Visual Studio 2005, bir&ccedil;ok ayari yapabileceginiz bir ara&ccedil; olan Web Site Administration Tool&rsquo;u i&ccedil;ermektedir. WebSite | Administration Tools &lsquo;u se&ccedil;erek ulasabilirsiniz. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Web Site Administration Tool size G&uuml;venlik, Uygulama, Veritabani Saglayici(Provider) kategorilerindeki ayarlari yapmaniza olanak saglar.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Web Site Administration Tool hakkinda daha fazla bilgi i&ccedil;in: <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/yy40ytx0.aspx\"><span style=\"color: rgb(0, 0, 255);\">http:\/\/msdn.microsoft.com\/en-us\/library\/yy40ytx0.aspx<\/span><\/a> <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Programatik olarak Konfig&uuml;rasyon dosyalarini d&uuml;zenlemek i&ccedil;in <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.configuration(VS.80).aspx\"><span style=\"color: rgb(0, 0, 255);\">System.Configuration Namespace<\/span><\/a> <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Bu makalenin b&uuml;t&uuml;n haklari yazilimmutfagi.com &lsquo;a aittir. Sadece Link verilerek kullanilabilir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">Orhan KIZILTEPE<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size: 11pt; font-family: Calibri;\">MCAD<span style=\"\">&nbsp; <\/span>&amp; MCTS<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Web uygulamalarini konfig&#252;re etmek i&#231;in tutmak i&#231;in basit ve pratik bir yol olan .config dosyalarinin kullanimini inceleyelim&#8230;<\/p>\n","protected":false},"author":528,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[407],"tags":[4229,5591,4967,5288,5815,4549],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/528"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/4\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}