Kayıtlar

Insufficient memory to continue the execution of the program.

Merhaba; 55 mb dan büyük .sql dosyalarınızı execute ettiğinizde böyle bir hata alırsanız. 1-Command Prompt çalıştırınız. 2- Kod satırına : c:\ sqlcmd  -S <server name> -i "<.sql path>". Örnek : c:\ sqlcmd  -S DBSERVER\MSSERVER14 -i "C:\Data\testData.sql". İyi çalışamalar.

ADDITIONAL INFORMATION: Insufficient memory to continue the execution of the program. (mscorlib)

Resim
Merhaba Eğer script dosyanızın boyutu büyük ve Sql Management Studio da Aşağıdaki hatayı alıyorsanuz "ADDITIONAL INFORMATION: Insufficient memory to continue the execution of the program. (mscorlib)" Scripti sqlcmd den çalıştırarak işleminizi devam ettirebilirsiniz.  Comman Prompt dan aşağıdaki kod ile birlikte çalıştırabilirsiniz;

JSON Tarih alanını Javascriptte Çevirip Angularjs de Göstermek. Angularjs /date(1318798800000)/

Resim
Merhabalar, Eğer Angularjs kullanıyorsanız ve yazdırmaya çalıştığınız alan tarih ise Html e deger olarak /date(1318798800000)/  vb. şekilde dönecektir. Tarihe çevirmeniz için filter olarak aşağıdaki kodları modulüneze eklemeniz gerekmektedir. filter kullanımı ; İyi çalışmalar.

Introducing FOREIGN KEY constraint 'xxx' on table 'xxx may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Could not create constraint. See previous errors.

Merhaba; "Introducing FOREIGN KEY constraint 'xxx' on table 'xxx may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Could not create constraint. See previous errors." EF code Firt update-database dediğimizde aldığımız bu hatanın çözümü için oluşturulan migration dosyamızı açıp içerisnde bulunan ilgili tabloların kodlarındaki ForeignKey in cascadeDelete  özelliğini false yapmamız gerekmektedir. Örnek:  ".ForeignKey("dbo.AspNetUsers", t => t.UpdateUserId, cascadeDelete: false)" yada ; ModelContext dosyanıza  aşağıdaki gibi WillCascadeOnDelete özelliğini false yapabilirsiniz ;         modelBuilder.Entity<AspNetUser>()              .HasMany(e => e.TAble)              .WithRequired(e => e.AspNetUser)              .HasForeignKey(e =...

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