Esempio n. 1
0
 protected virtual bool GlobalAsaxYazmayıDene()
 {
     try
     {
         File.SetLastWriteTimeUtc(GenelYardımcı.MapPath("~/global.asax"), DateTime.UtcNow);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Esempio n. 2
0
 protected virtual bool WebConfigYazmayıDene()
 {
     try
     {
         // Orta güvenlikte, "UnloadAppDomain" desteklenmez.
         // AppDomaini yeniden başlatmayı deneyin.
         File.SetLastWriteTimeUtc(GenelYardımcı.MapPath("~/web.config"), DateTime.UtcNow);
         return(true);
     }
     catch
     {
         return(false);
     }
 }