Kayıtlar

2016 tarihine ait yayınlar gösteriliyor

asp.net web api 2 http.delete 500 -internal server hatası veya 405 hatası

Merhabalar ASp.net web Api 2.0 da http.delete kullanıpta 500 veya 450 hatası alıyorsanız api niz bulunduğu web.config de aşağıdaki ayarları yapınız. <system.webServer>     <validation validateIntegratedModeConfiguration="false"/>     <modules>       <remove name="WebDAVModule"/>    </modules>    <handlers>      <remove name="WebDAV" />   </handlers> </system.webServer> İyi çalışmalar.

Cannot implicitly convert type 'void' to 'System.Collections.Generic.ICollection'

Merhaba ; Bir list Colleciton 'a object eklemek istediğinizde  aşağıdaki hatayı alıyorsanız ; Örnek ;  ... Images = new List<Image>().Add( new Image() { Image = "name", ImageId = 1 }) ... Hata ; Cannot implicitly convert type 'void' to 'System.Collections.Generic.ICollection<xxx>' Add methodu void olduğundan hata verecektir. Yapmanız gereken Add methodunu silip {} parantez kulanmalısınız; ....Images = new List<Image>() { new Image() { Image = "name", ImageId = 1 }}... İyi çalışmalar

'AutoMapper' already has a dependency defined for 'NETStandard.Library'.

Merhabalar; Nuget consoledan  AutoMapper yüklemeye çalışıyor ve bu hatayı alıyorsanız. Visual Studioda nuget galerryi güncelleyip. Visual Studio açıp kapadığınızda sorununuz fidecektir. Kaynak : http://stackoverflow.com/questions/38247961/nuget-package-manager-automapper-already-has-a-dependency-defined-for-micros İyi Çalışmalar

signalr post hubs The specified policy origin 'localhost' is invalid. It must be correctly formed with the scheme, the host, and optionally, the port Hatası

Resim
Merhaba, Asp.net signalr kullanıyorsanız ve client tarafında  post ettiüiniz datanızdan "signalr post hubs The specified policy origin 'localhost' is invalid. It must be correctly formed with the scheme, the host, and optionally, the port" hatası alıyorsanız yapmanı gereken iki şey vardır; 1- Startup.cs classınızda bulunan hub konfigirasyonunuzu aşağıdaki gibi yapmanız gerekmektedir. 2- client js dosyanızda connection hub startınıza jsonp:true eklemeniz gerekmektedir.        $.connection.hub.start({ jsonp: true }); İyi yazılımlar.