ASP.NET fileupload doesn't work in server
<p>I have a website project in local and connection with database which database in server. I can add photo and country which I work in local but I can't add which I load project to server</p>

<p>public void resim_ekle()
   {
        if (FileUpload1.HasFile)
        {
            try
            {
                string fileExtension = Path.GetExtension(FileUpload1.FileName).ToLower();</p>

<pre><code>            string fileName = Guid.NewGuid().ToString(); // şifreli isim
            string fileName2 = Guid.NewGuid().ToString();

            if (File.Exists(fileName + fileExtension))
                fileName = Guid.NewGuid().ToString();
            if (File.Exists(fileName2 + fileExtension))
                fileName2 = Guid.NewGuid().ToString();

            if (FileUpload1.FileContent == null)
                return;
            if (FileUpload1.FileContent.Length == 0)
                return;

            System.Drawing.Bitmap originalBMP = new System.Drawing.Bitmap(FileUpload1.FileContent);

            int origWidth = 800;
            int origHeight = 600;

            int origWidth2 = 120;
            int origHeight2 = 90;

            double sgnRatio = Convert.ToDouble(origWidth) / Convert.ToDouble(origHeight);
            double sgnRatio2 = Convert.ToDouble(origWidth2) / Convert.ToDouble(origHeight2);

            System.Drawing.Bitmap newBMP = new System.Drawing.Bitmap(originalBMP, origWidth, origHeight);
            System.Drawing.Bitmap newBMP2 = new System.Drawing.Bitmap(originalBMP, origWidth2, origHeight2);

            System.Drawing.Graphics oGraphics = System.Drawing.Graphics.FromImage(newBMP);
            System.Drawing.Graphics oGraphics2 = System.Drawing.Graphics.FromImage(newBMP2);

            oGraphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighSpeed;
            oGraphics2.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighSpeed;

            oGraphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Low;
            oGraphics2.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Low;

            oGraphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighSpeed;
            oGraphics2.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighSpeed;

            oGraphics.DrawImage(originalBMP, 0, 0, origWidth, origHeight);
            oGraphics2.DrawImage(originalBMP, 0, 0, origWidth2, origHeight2);

            newBMP.Save(Server.MapPath("~/resimler/olkeler/" + fileName.ToString() + fileExtension));
            newBMP2.Save(Server.MapPath("~/resimler/olkeler/kucuk/" + fileName2.ToString() + fileExtension));


            olkeler ulke = new olkeler();



            ulke.resim_buyuk = ("~/resimler/olkeler/" + fileName.ToString() + fileExtension).ToString();
            ulke.resim_kucuk = ("~/resimler/olkeler/kucuk/" + fileName2.ToString() + fileExtension).ToString();
            ulke.olke_adi = txtulke_adi.Text;
            vt.insert_ulke(ulke);

            label_Uyari.Text = "Resim Başarıyla Yüklendi...";
        }
        catch { label_Uyari.Text = "Resim Yükleme İşlemi Esnasında Bir Hata Oluştu. Lütfen Tekrar Deneyiniz..."; }
    }
    else { label_Uyari.Text = "Resim Seçilmemiş..."; }

}
</code></pre>

<p>This code run in my loclhost but doesn't work in server. <code>FileUpload1</code> has no file in server </p>
