Wednesday, August 16, 2017

PowerShell Invoke-RestMethod Türkçe Karakter Problemi



PowerShell üzerinden rest method invoke etmeye çalışırken, post ettiğim parametre değerlerinde Türkçe karakterler problemi yaşandı. Gönderdiğim json parametresini  UTF8 encoding ile gönderince problem düzeldi.


$secpasswd = ConvertTo-SecureString "mypassword" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ("myuser", $secpasswd)

$jsonParam = "{""name"":""Özlem"",""surname"":""Arslan""}"

Invoke-RestMethod  -Uri $createUri -Credential $mycreds -Method "Post" -Body  ([System.Text.Encoding]::UTF8.GetBytes($jsonParam))  -ContentType "application/json"

Wednesday, August 2, 2017

Check In Yaparken Work Item Zorunlu Hale Getirmek


 
 
Check In işlemlerinde 'Related Work Items' alanın zorunlu hale gelmesini aşağıdaki kod ile   sağlayabilirsiniz.


  


 
   var ev = notificationEventArgs as CheckinNotification;

   CheckinNotificationWorkItemInfo[] workItemInfos = ev.NotificationInfo.WorkItemInfo;

   if ((workItemInfos == null || workItemInfos.Length == 0))
   {
         statusMessage = "Work Item ID numarası yazınız ";

         return EventNotificationStatus.ActionDenied;
    }

Friday, February 24, 2017

There is no source code available for the current location



Projede debug yapmaya çalışırken uygulama  'There is no source code available for the current location'  şeklinde hata verdi. 

Projeyi kontrol ettiğimizde belirtilen dizinde istediğimiz .cs mevcuttu. VS'de   Project-> Properties-> Common Properties -> Debug Source Files tabına geldiğimiz zaman "Do not look for these soruce files"  listesinde debug etmeye çalıştığımız .cs ye ait bilgi bulunmaktaydı. Bu bilgiyi sildiğimiz zaman yaşadığımız problem giderilmiş  oldu.










Monday, February 13, 2017

typings install unhandled promise rejection (rejection id: 1): Unable to connect to "https://api.typings.org" ..



     > typings install
       / Resolved "undefined"
       (node:6452) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id:    1):  PopsicleError: Unable to connect to https://api.typings.org/entries/dt/node/tags/6.0.0..
 
      Yukardaki gibi bir hata alıyorsanız, proxy ayarlarınız ile ilgili bir sorun yaşıyor olmanız muhtemeldir.
     
      Install komutunu 'typings --proxy "http://...:8080/" install' şeklinde çalıştırdığım zaman  kurulum başarılı  bir şekilde gerçekleşti.
 

Thursday, January 5, 2017

error MSB3491: Could not write lines to file "obj\Debug\xxx.csproj.FileListAbsolute.txt". Access to the path 'C:\blabla\1\s\x\obj\Debug\xxx.csproj.FileListAbsolute.txt' is denied.


Could not write lines to file "obj\Debug\xxx.csproj.FileListAbsolute.txt".
Access to the path 'C:\blabla\1\s\x\obj\Debug\xxx.csproj.FileListAbsolute.txt' is denied.

Proje derlenirken yukarıdaki gibi hata alırsanız, source kodunuzdan debug klasörünü silmeniz yeterli olacaktır.

Tuesday, January 3, 2017

If ildasm is installed in a non-standard location, please provide the full path to ildasm in the fortify-sca.properties file as com.fortify.sca.IldasmPath


Hp Fortify'da .Net uygulamasını taramaya çalışırken hata loglarında "If ildasm is installed in a non-standard location, please provide the full path to ildasm in the fortify-sca.properties file as com.fortify.sca.IldasmPath" şeklinde hata görebilirsiniz. Böyle bir durumda "fortify-sca.properties" config dosyasında "IldasmPath" bilgisi yok demektir.

fortify-sca.properties, Fortify kurulumunun yapıldığı yerede Core klasörünün altında bulunur. Bu dosyaya  aşağıdaki gibi tanım yaparsanız problem ortadan kalkacaktır.
 
"com.fortify.sca.IldasmPath=C:\\Program Files (x86)\\Microsoft
SDKs\\Windows\\v7.0A\\Bin\\ildasm.exe"



TFS Build 2015 - Ortak Kullanılan Referans Klasörü



Ortak kullanılan dll leri bir klasörde toplamış ve var olan diğer projeleriniz bu  klasörden referans alarak çalışıyor olabilir. Bu tarz projeleriz derlenirken hata almak istemiyorsanız tfs build ayarlarını yaparken 'Repository' ayarlarından ortak kullandığınız klasörü de maplemeniz gerekecektir.

 

 
 
 


 
 
 
 
 
 
 

 


Ürdün

  Çok hızlı bir şekilde karar alıp, harekete geçtiğim bir gezi oldu Ürdün. Nitekim bir pazar günü arkadaşım Firuze ile konuşup, pazartesi...