Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:


Line 72: var km_open_basket = '@openBasket';
Line 73: </script>
Line 74: <script src="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "cdn_web").Value/js/pages/urun.min.js" type="text/javascript"></script>}@section meta{<meta property="og:site_name" content="@KaliteMagaza.Models.Entity.Setting.Data.FirstOrDefault(w => w.Title == "site_adres" && w.Status == true).Value"> <meta name="keywords" @Html.Raw("content=\"" + string.Join(",", item.Keywords.Select(ik => ik.Keyword)) + "\"") /> <meta property="og:keywords" @Html.Raw("content=\"" + string.Join(",", item.Keywords.Select(ik => ik.Keyword)) + "\"") /> <meta name="description" @Html.Raw("content=\"" + item.ShortDescription + "\"") /> <meta property="og:description" @Html.Raw("content=\"" + item.ShortDescription + "\"") /> <meta property="og:type" content="product" />@if (item.Photos.Count > 0){<meta property="og:image" content="@(Request.Url.Scheme + "://" + Request.Url.Host + "/Uploads/Products/" + item.ID + "/fb/" + item.Photos[0].Filename)" /><meta property="og:image:width" content="600" /><meta property="og:image:height" content="600" /><link rel="alternate" href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value@("/urun/" + item.SeoTitle + "/" + item.ID)" hreflang="tr" /><link rel="canonical" href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value@("/urun/" + item.SeoTitle + "/" + item.ID)" />}}@section scripts_foot {<script src="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "cdn_web").Value/js/pages/anatab.js" type="text/javascript"></script><script src="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "cdn_web").Value/js/main.js" type="text/javascript"></script>}<div class="urunalani clearfix" itemscope itemtype="http://schema.org/Product"><div class="breadCrumb mb20 clearfix" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value/@Url.Content("~/")">Ana Sayfa</a>  <a itemprop="url" href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value@Url.Content("~/kategori/" + item.Categories.FirstOrDefault().Category.SeoTitle + "/" + item.Categories.FirstOrDefault().Category.ID)">@item.Categories.FirstOrDefault().Category.Title</a><a href="#" itemprop="title">@item.Title</a></div><div class="urunresim mb40">@if (item.IsNew){<span class="kitap-rozet yeni"></span>}@if (item.Photos.Count > 1){foreach (var pp in item.Photos.Skip(1)){<img width="600" height="600" itemprop="image" src="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "cdn_web").Value/@Url.Content("~/Uploads/Products/" + item.ID + "/" + System.IO.Path.GetFileNameWithoutExtension(pp.Filename) + "-thumb-w-600" + System.IO.Path.GetExtension(pp.Filename))" @Html.Raw("alt=\"" + item.Title + "\"")>}}else if (item.Photos.Count == 1){foreach (var pp in item.Photos.Take(1)){<img width="600" height="600" itemprop="image" src="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "cdn_web").Value/@Url.Content("~/Uploads/Products/" + item.ID + "/" + System.IO.Path.GetFileNameWithoutExtension(pp.Filename) + "-thumb-w-600" + System.IO.Path.GetExtension(pp.Filename))" @Html.Raw("alt=\"" + item.Title + "\"")>}}</div><div class="urunaciklama"><h1 itemprop="name"> @Html.Raw("<strong>" + item.Title + "</strong>")</h1><meta itemprop="gtin14" content="@if (item.ProductInfo.Count > 0 && item.ProductInfo.SingleOrDefault(s => s.Title == "GTIN") != null){@Html.Raw(item.ProductInfo.SingleOrDefault(s => s.Title == "GTIN").Value_TR)}" />@if (item.ProductInfo.Count > 0){<p class="olcu">@item.ProductInfo.SingleOrDefault(s => s.Title == "Gram").Value_TR</p>}@if (item.ProductInfo.Count > 0 && item.ProductInfo.SingleOrDefault(s => s.Title == "AnaOzellik") != null){@Html.Raw(item.ProductInfo.SingleOrDefault(s => s.Title == "AnaOzellik").Value_TR)}<div>Koli içi adedi @if (item.DiscountRatio > 0){@item.DiscountRatio} adettir.</div>@if (item.MarketPrice > 0){<div class="fiyat-kutu clearfix">@if (item.StockRemaining == 0){<div>Bu ürün stoklarımızda bulunmamaktadır.</div>}else{if (KaliteMagaza.Models.Entity.Member.Session.IsLoggedIn && KaliteMagaza.Models.Entity.Member.Session.IsDealer){<div class="fiyat-piyasa" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><link itemprop="url" href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value@("/urun/" + item.SeoTitle + "/" + item.ID)" /><meta itemprop="priceValidUntil" content="2022-11-05" /><link itemprop="availability" href="http://schema.org/InStock" />Fiyatı:<span class="right" itemprop="price">@(KaliteMagaza.Models.Entity.Member.Session.IsLoggedIn && KaliteMagaza.Models.Entity.Member.Session.IsDealer ? (item.DealerPrice > 0 ? item.DealerPrice.ToString("f2") + " " + item.DealerPriceCurrency.ShortName : "Sorunuz") : item.RetailPrice.ToString("f2").Replace(",", "."))</span></div><form id="p_basket"><input type="hidden" name="id" value="@item.ID" /><div class="clearfix mb40" style="position:relative">@Html.TextBox("adet", "1", new { @class = "urun-adet left" })<input type="button" value="+" id="arttir" class="icos inputsag" onclick="arttirma()"/><input type="button" value="-" id="azalt" class="icos inputsol"  onclick="azaltma()"/><a href="javascript:;" class="sepet-button right"><i class="fa fa-shopping-cart fa-lg left"></i> <input type="button" class="btn btn-sepet" value="Sepete Ekle" data-role="addBasket" data-id="@item.ID" data-text="@Html.Raw(item.Title) - @item.RetailPrice.ToString("f2") @item.RetailPriceCurrency.ShortName" /></a></div>@if (KaliteMagaza.Models.Entity.Member.Session.IsLoggedIn){<a href="javascript:void(0)" class="liste-ekle" onclick="addToFavorites(this)">@(inFavs ? "[ - ] Favorilerimden Çıkar" : "[ + ] Favorilerime Ekle")</a>}</form>}else{<p class="girisyap">Ürün fiyatlarını görmek için lütfen <a href="https://www.toptankoyurunleri.com/bayigirisi">giriş </a>yapın</p>}}</div><ul class="share_widget clearfix"> <li>Sosyal Medya'da Paylaş:</li> <li><a href="https://www.facebook.com/sharer/sharer.php?u=@Request.Url.ToString()" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"><i class="fab fa-facebook-f"></i></a></li><li><a href="https://twitter.com/share?url=@Request.Url.ToString()&text=@item.Title" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"><i class="fab fa-twitter"></i></a></li></ul><div class="puan clearfix"> <div id="product_rate" data-canrate="@(rate.CanRate ? "yes" : "no")" data-current="@rate.TotalRate" class="product_rate"></div> <div class="yildiz-yan" itemprop="aggregateRating" itemtype="http://schema.org/AggregateRating" itemscope><meta itemprop="reviewCount" content="@rate.RateCount" /><meta itemprop="ratingValue" content="@rate.TotalRate" /><strong>@rate.TotalRate</strong> Puan Toplam @rate.RateCount oy kullanıldı.</div> </div>}</div>@if (item.RelatedProducts != null && item.RelatedProducts.Count > 0){<div class="yanliste"><ul class="clearfix">@foreach (var rp in item.RelatedProducts){var item_rp = new KaliteMagaza.Models.Entity.Product(rp);<li><a href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value/urun/@item_rp.SeoTitle/@item_rp.ID"><img alt="@item_rp.Title" width="210" height="210" src="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "cdn_web").Value@Url.Content(item.Photos.Count > 0 ? "/Uploads/Products/" + item_rp.ID + "/" + System.IO.Path.GetFileNameWithoutExtension(item_rp.Photos[0].Filename) + "-thumb-w-" + KaliteMagaza.Models.Entity.Setting.Data.SingleOrDefault(s => s.Title == "$thumbSizes").Value.Split('-')[5] + System.IO.Path.GetExtension(item_rp.Photos[0].Filename) : "/images/bck.jpg")" /><h2>@item_rp.Title<h2></a></li>}</ul></div>}<div class="clearfix"></div><div class="urunDetayTabs"><ul class="tabs clearfix"><li class="hizala"><a href="#tab-1">ÜRÜN BİLGİSİ</a></li> <li><a href="#tab-2">ÜRÜN YORUMLARI (@item.Comments.Count(c => c.Status == true))</a></li> <li><a href="#tab-3" style="display:none;">TAKSİT SEÇENEKLERİ</a></li> <li><a href="#tab-4">ÖNERİLERİNİZ</a></li><li><a href="#tab-6" style="text-transform: uppercase;">@item.Categories.FirstOrDefault().Category.Title HAKKINDA</a></li> </ul><div id="tab-1" itemprop="description">@if (item.ProductInfo.Count > 0 && item.ProductInfo.SingleOrDefault(s => s.Title == "Video") != null){<embed src="https://www.youtube.com/v/@Html.Raw(item.ProductInfo.SingleOrDefault(s => s.Title == "MobilVideo").Value_TR)" width="560" height="315" />}<p><a title="@item.Title satın al" href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value@("/urun/" + item.SeoTitle + "/" + item.ID)" />@item.Title hakkında merak ettiğiniz tüm bilgiler burada</a></p><h2>@Html.Raw(HttpUtility.HtmlDecode(item.Description))<p class="arabaslik">Teslimat Bilgileri</p><p>Siparişleriniz 2 iş gün içinde hazırlanır. Siparişinizi güvenilir bir şekilde strafor köpük kutularda gönderiyoruz. Taşıma esnasında ürün zarar görürse ürünü size tekrar gönderiruz</p><p class="arabaslik">İade / Değişim Bilgileri</p><p>*Cayma Hakkı Kullanımı ve İade Şartları, 6502 Sayılı Tüketicinin Korunması Hakkında Kanun ve Mesafeli Sözleşmeler Yönetmeliği hükümlerine tabidir.</p><p><strong>Toptan @item.Title nereden satın alınır:</strong><br><strong>Toptan @item.Title</strong> en uygun fiyata toptankoyurunleri.com sitesinden satın alınır</p><p><strong>Toptan @item.Title satın al:</strong><br><strong>Toptan @item.Title satın al</strong>mak isterseniz ürünü hemen sepete ekleyin, hızlı ve güvenli bir şekilde size ulaştıralım</p></h2><p class="yuzdeyuz">%100 Doğal</p><p class="slogan2">Akdeniz'in eşsiz doğası ve verimli topraklarından üretilen doğal ürünleri keşfetmenizi bekliyoruz. Ürünlerimiz sofranıza hem doğal bir tad, hem de ayrı bir lezzet katacak. </p><p class="slogan">@item.Title koruyucu, renklendirici ve katkı maddesi içermez.</p><span itemprop="sku">@Html.Raw(item.Code)</span><span itemprop="brand" href="http://schema.org/Organization"/>Toptan Köy Ürünleri</span></div><div id="tab-2">@if (item.Comments.Where(pc => pc.Status == true).Count() == 0){<i class="text">Bu ürün hakkında henüz kimse yorum yapmamış.</i>}else{foreach (var pc in item.Comments.Where(pcs => pcs.Status == true)){<p class="yorumyazan" itemprop="review" itemscope itemtype="http://schema.org/Review"><span itemprop="author">@(pc.Member.ID > 0 ? pc.Member.Name + " " + pc.Member.Lastname : pc.Fullname)</span>,<strong>@Html.Raw(item.Title)</strong> için <span itemprop="datePublished">@pc.RegDate.ToString("dd.MM.yyyy HH:mm") tarihinde yazdı:</span></p><p itemprop="description">@pc.Content</p><hr>}}@if (KaliteMagaza.Models.Entity.Member.Session.IsLoggedIn){<form id="p_comment">@Html.Hidden("productID", item.ID)<p class="mb10">@Html.TextArea("pc_content", new { @class = "sayfa-input", style = "width: 90%; height: 100px;" })</p><p><input type="button" id="pc_submit" value="Kaydet" class="btn btn-primary" /></p></form>}else{<i class="text">Yorum yapabilmek için <a href="@Url.Content("~/uyegirisi")">üye girişi</a> yapmalı veya <a href="@Url.Content("~/uyeol")">üye olmalısınız</a>.</i>}</div><div id="tab-4"> Ürünlerimiz ile ilgili düşüncelerinizi lütfen bizimle paylaşın. toptankoyurunleri@gmail.com adresine mail atabilirsiniz. </div><div id="tab-6"> @Html.Raw(item.Categories.FirstOrDefault().Category.Description) </div></div><div class="neden-sol"> <p class="baslik">Neden Doğal Ürünler Tüketmelisiniz?</p> <p>Günümüzde çabuk bozulan şeylerin başında içine katkı maddesi eklenen gıdalar gelmektedir. Doğal olmayan, katkı maddesi içeren, geleneksel yöntemlerle üretilmeyen ürünler piyasa da oldukça fazla yer almaktadır. Ve bu ürünlere çok daha kolay ulaşılmaktadır. Bu yüzden de birçok kişi doğal ürünleri alamamaktadır.</p> <p>Genel olarak kırsal bölgelerde yaşayan insanlar kendi besinlerini kendileri üretip yemektedir. Büyükşehirlerde ise bu ürünleri almak için yüksek ücretlerin ödenmesi beklenmektedir. Ücretleri bir yana bırakıldığı takdirde doğal ürünleri tüketilmesi hem faydalarından dolayı hem de sağlık açısından oldukça tavsiye edilmektedir. İmkanlar doğrultusunda katkı maddeli ürünlerin yerine katkısız ve doğal ürünleri seçmekte fayda vardır.</p> <p>Doğal ürün tüketmenin faydaları nelerdir?</p> <p>Doğal ürünler sağlıklıdır. Bu gıdalar toplandıktan sonra kısa süre içerisinde tüketildikleri için vitamin ve minerallerini kaybetmezler.</p> <p>Bu ürünlerin en büyük özelliği katkı maddesi içermemeleridir. Böylelikle kalp rahatsızlıkları, kemik erimesi, migren, obezite gibi problemelerin görülme riskleri azalır. Çünkü doğal olmayan ürünlerde kullanılan ve raf ömrünü uzatan kimyasallar uzun vadede oldukça kötü etkiler bırakmaktadır. Bu yüzden de katkı maddesi olan ürünlerin tüketilmemeleri gerekmektedir.</p> <p>Özellikle doğal ürünlerin yetiştirilmesinde zararlı canlılar ile olan mücadelede kimyasallar kullanılmaz. Bu da bazı yararlı canlıların yok olmamasını sağlar. Böylelikle yararlı canlıların ürünlere yapacağı katkılar engellenmemiş olunur.</p> <p>Doğal ürünlerin üretilmesi diğer ürünler gibi çevre kirliliğine neden olmaz. Bu da insanlara dolaylı yoldan fayda sağlamaktadır. Buna ek olarak yerel su kaynakları da kirletilmemiş olunur. Bu da ülke ekonomisine büyük katkılar vermektedir.</p> <p>Artık birçok kimse doğal ürünlerin daha lezzetli olduğuna ikna olmuş durumdadır. Çünkü katkı maddesi kullanılmadığı için ürünlerin kendine has tadı bozulmamış olur. Doğal ürünlerin kapağını açtığınızda meyvenin kokusunu rahatlıkla hissedebilirsiniz.</p> <p>Günümüz de bir çok ürün içerisinde doğala özdeş aromalar kullanılmaktadır. Bu aromalar meyve ile yaklaşık aynı tadı veren kimyasallardan oluşan bir karışımdır.</p> <p>Kısaca sağlığınız ve geleceğiniz için katkısız ve doğal ürünler tercih edin.</p></p> </div> <div class="neden-sag"> <p class="baslik">Ürünlerinizi nasıl gönderiyoruz?</p> <p>Tadına doyamayacağınız tüm ürünlerimizi enfes kokusuyla birlikte özenle paketleyip adresinize gönderiyoruz. </p> <p>Sipariş verdiğinizde özenle paketlediğimiz ürünlerimiz özel ambalajlarında kargoya verilir. Cam kavanozlu ürünler plastik koruyucu ile özenle sarılır ve özel kutusuna konularak kargoya teslim edilir. </p> <p>Bakliyat ürünlerini 5 kiloluk özel çuval içinde ağzı sıkıca bağlanmış şekilde kargoya teslim ediyoruz. </p> <p>Peynir gibi şarküteri ürünlerini ise ısıya duyarlı özel paketlerin içerisine -40 derecede dondurulan buz aküleri koyarak birlikte paketliyoruz. Uygulanan bu method sayesinde yöresel lezzetler en taze haliyle kargo ile adresinize teslim edilir. Yolculuk boyunca soğukluğunu muhafaza eder ve size buzdolabından çıkmış gibi soğuk bir şekilde ulaşır. </p> <p>Pazar hariç hergün saat 15:30'a kadar olan tüm siparişleriniz ayn gün kargoya verilmektedir.</p>  <p class="baslik">Silifke'de Tarım</p> <p>İlçemiz Silifke Akdeniz Bölgesinde Göksu Vadisinde kurulmuş olup, özel bir mikro klima iklim özelliği göstermektedir.</p> <p>Silifke tarımsal ürün çeşitliliği yönünden zengin bir ilçedir.Alüvyonlu toprak yapısıyla Göksu Deltası ve değişik rakımlardaki tarım arazileri yurtdışı pazarların talep ettiği bir çok tarım ürününün yetiştirilmesine imkan sağlamaktadır.</p></div><div class="clearfix"></div><div class="etiketler">@foreach (var pk in item.Keywords){if (pk.ID != item.Keywords[0].ID){@Html.Raw("")}<a title="@Html.Raw(pk.Keyword)" href="@KaliteMagaza.Models.Functions.Settings.SingleOrDefault(s => s.Title == "site_adres").Value@Url.Content("/arama?q=" + pk.Keyword)">@pk.Keyword</a>}<div style="clear:left;"></div></div></div>

Source File: c:\inetpub\WebSites\toptankoyurunleri.com\Views\Urun\Index.cshtml    Line: 74

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +77
   System.Collections.Generic.List`1.get_Item(Int32 index) +14626600
   ASP._Page_Views_urun_Index_cshtml.Execute() in c:\inetpub\WebSites\toptankoyurunleri.com\Views\Urun\Index.cshtml:74
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +448
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +448
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +187
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +59
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +30
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +44
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0