21 Ekim 2014 Salı

Visual Studio 2013 Task host node exited prematurely.

Derleme yaparken aşağıdaki hata geliyor ise

 

ERROR C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2348,5): Task host node exited prematurely. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt.

ERROR C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2366,7): The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type.

 

C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe  dosyasını   C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe  klasorune kopyalıyoruz.

 

 

http://stackoverflow.com/questions/23791689/visual-studio-2013-and-update-2-intermittent-build-errors

 

14 Ekim 2014 Salı

worker process'in process id'sini bulmak için

 
C:\Windows\System32\inetsrv> 

Dizininde
 
 > appcmd list wps
 
Komutunu çalıştırmalısınız.

1 Ekim 2014 Çarşamba

RadWindow ReloadOnShow

Aşağıdaki şekilde çağırdığımız sayfalarda (dialog windowlarda) Eğer ReloadOnShow=true olarak tanımlanmış ise, İlgili window içinden açılan (dialog) sayfası, PrepareControls() den 2 defa geçiyor (sayfa 2 kez yükleniyor). Bu da hem performans kaybına, (veri güncelleyen) bazı senaryolarda da hataya neden oluyor. (YNA şu ana kadar hep böyle çift dikiş çalışmış.)
 
CS
        private void DhDaHizmetEkleDialogGoster(long DhDaHizmetId)
        {
            PopUpBoyutlari popUpBoyutlari = new PopUpBoyutlari(800, 980, 100, 10);
            PopUpOzellikleri popUpOzellikleri = new PopUpOzellikleri(false, true, false, false, false, false);
            List<Parameter> parametreList = ParametreleriAta(DhDaSeferKumpanyaId, DhDaHizmetId);
            JScriptFactory.RadPopUpEkranAc(this, DisHesaplarPath.DhDaHizmetEkleDialogPath, DhDaHizmetEkleDialogRadWindow, parametreList);
        }
 
ASPX
<telerik:RadWindow ID="BildirimZamaniEkleWindow" runat="server" Width="500px" ReloadOnShow="true" AutoSize="false" Height="200px" Behaviors="Close" VisibleOnPageLoad="false" ShowContentDuringLoad="false" Modal="true">
        
 
2 Defa çalışan metod
    public partial class DhDaHizmetEkleDialog : YnaDialogBasePage
    {
       protected override void PrepareControls()
        {
            PreparePageTitle(ResourceHelper.GetString("HizmetSaglayici", "PageTitleHizmetEkle"));
 
 
Peki bu alan neden var derseniz, window’un içeriğinin cachlenmeden farklı kaynaklardan doldurulması için olduğu söylenmekte.  Biz iki sayfada değişikliklerimizi test ettik. Sorun gözükmüyor. İçerik her zaman güncel. Buna rağmen olur da AÇILAN PENCERELERDE ESKİ BİLGİLER GELİYOR..**acil** acil*** mesajları gelirse bir yerden, önce burayı kontrol edelim.
 
Detayli bilgi için buyrun...

30 Eylül 2014 Salı

ScalableList: Index outside the allowed range

“ScalableList: Index outside the allowed range” hatası alıyorsanız,
 
Rapordaki Column  Properties’i  “HIDDEN” yapılmış kolonları kaldırıp SİLİP tekrar deneyiniz.  Kolonlar expressiona bağlı olmaksızın HIDDEN tanımlandığı için rapor çıktısında bir değişiklik olmayacaktır.
 
(Remove “HIDDEN” Columns and try again.)
 
 
 
 
source="Microsoft.ReportViewer.WebForms"
  detail="Microsoft.Reporting.WebForms.ReportServerException: An internal error occurred on the report server. See the error log for more details. (rsInternalError)&#xD;&#xA;   at Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String&amp; mimeType, String&amp; fileNameExtension)&#xD;&#xA;   at Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String&amp; mimeType, String&amp; fileNameExtension)&#xD;&#xA;   at Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, String&amp; mimeType, String&amp; fileNameExtension)&#xD;&#xA;   at Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String&amp; mimeType, String&amp; fileExtension)&#xD;&#xA;   at Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)&#xD;&#xA;   at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)&#xD;&#xA;   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()&#xD;&#xA;   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)"

Missing URL parameter: IterationId

Chrome ve firefoxtan gelen bir hata.
2 çözümü var.
1))Birincisi giden requestlerde URL’i güncelleyeip, ?IterationId=0  eklemek.
2)) Raporda buna sebebiyet veren bir LINE kontrolu olmalı. Onu bulup, silip devreye alıp tekrar deneyelim.
Bu işleme başlamadan önce CHROME’dan hatayı önce alalım li, çözdüğümüze emin olalım.

<error
  host="34ISTYNAWEBSRV1"
  type="Microsoft.Reporting.WebForms.HttpHandlerInputException"
  message="Missing URL parameter: IterationId"
  source="Microsoft.ReportViewer.WebForms"
  detail="Microsoft.Reporting.WebForms.HttpHandlerInputException: Missing URL parameter: IterationId&#xD;&#xA;   at Microsoft.Reporting.WebForms.HandlerOperation.GetAndEnsureParam(NameValueCollection urlQuery, String paramName)&#xD;&#xA;   at Microsoft.Reporting.WebForms.ReportImageOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)&#xD;&#xA;   at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)&#xD;&#xA;   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()&#xD;&#xA;   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)"

VS2013 CONVERT PROBLEMLERI

Selamlar;
 
Vs2013 Convert yaptıkran sonra, local makinenizde telerik bileşenlerinde görüntüleme problemi oluyorsa ,  EnableBrowserLink özelliğini kapatmanız gerekebilir. Web config’e aşağıdaki anahtari eklemek sorunu çözecektir.
 
<add key="vs:EnableBrowserLink" value="false" />
 
Browser Link nedir?
 
 
Convert ettiğiniz Solution dosyalarının simgeleri, Hala Visual Studio 2010 projesi gibi gözüküyorsa,  “12” simgesini göremiyorsanız. Solution’ın versiyon bilgisini solution dosyasına güncel olarak yazılmasını  tekrar tetikleyebilirsiniz. Bunun için solutiıon’ı açıp, solution explorer’dan solution’a tıklayıp, SAVE AS yapabilirsiniz.
 
Orjinal Metin.
Manual editing of the solution file is not necessary, or recommended. Simply open the VS2010 solution in VS2012, left-click the solution (at the very top of the Solution Explorer), then use File | Save As to overwrite the original file. This will effectively convert the VS2010 solution file to a VS2012 solution file.
 

22 Eylül 2014 Pazartesi

VS2013 Debug Problemi

Hata ayıklama yaparken yaparken, “break point” lerde duramıyor (break point will not hit  uyarısı alıyorsanız)  aşağıdaki senaryoyu kontrol ediniz.
               
Tools à Options à Project and Solutions à Build and Run à Only build startup projects and dependencies on Run
İŞİN DETAYI
İlgili seçenek , seçili olduğunda ;  Değişikliklik yaptığınız (hata ayıklama yapmak istediğiniz) proje sizin “startup proje” nizin altında referans olarak ekli değil ise ( Dependencies de yer almıyorsa) , projede yaptığınız değişiklik, BUILD yapmadığınız müddetçe , debug session’ınıza yansımıyor. VS2010’da bu seçenek seçilmemiş olarak geliyordu.  VS2013 te “Convert” yapılmış projelerimizde seçili olarak gelmiş.
Kolay gelsin.

18 Eylül 2014 Perşembe

Visual Studio 2013 Yeni Ozellikler

Quick lunch
Browser seçimli debug (2012de vardı sanıyorum, bizim için yeni olacak)
Tfs Bağlantısı – Detaylı Kod  Tarihçesi, Referanslar
Referanslar
CodeMap – Visual Debugging
Debug ta iken, code map’i tıklayınız. F10 / 11 ile ilerleyiniz.

Peek Definition – Alt+F12

İçinde olduğumuz class’ı kapatmadan, “navigate” penceresi açar. Açılan pencere içinden ALTf12 ile yeni  “peek” ler yapmaya devam edilebilir. Zincirleme çağrıları takip etmek, bulunduğumuz class’ı terketmeden bi bakıp çıkmak için ideal.

Code Lens   (ALT-2)

Roaming Settings

MSDN hesabınızla SIGN-IN olursanız, IDE ayarlarınızı istediğiniz makineye taşıyabilirsiniz.

Browsing Link

YNA da kapatmak zorunda kaldık. Gridler dağıldı.
Birden fazla browser açıp, aynı anda güncelleme ve görüntüleme sağlıyor.

Examine return values of method calls

Metod dönen değeri bir değişkene atanmamış olsa dahi AUTO penceresinden izlenebiliyor. (örnekte aramayın, kodda örnek bulamadım. Çıkacağı yerin görüntüsünü koydum)

Find Matching Clones

Sonuç

DİP NOT Sonuçları inceleyince, 2 metodun içinin %99 aynı olduğunu keşfettim. Yani gayet faydalı bir özellik olmuş.
TypeScript
TypeScript, JavaScript geliştirme sürecine sınıflar, modüller ve opsiyonel statik tipleri getiriyor. Visual Studio’da bu, yazma sırasında hata bildirimi, IntelliSense ve Rename tekrar düzenleme gibi zengin araçlar sağlıyor.

10 Eylül 2014 Çarşamba

5 Eylül 2014 Cuma

windows service olusturma ve kurulum

Selamlar,

 

Windows service olusturma ve install ile ilgili guzel bir msdn yazısı.

http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx

 

Ayrı bir install paketi icin VS2010 projelerinde setup ve deployment proje yaratıyorduk.

2012 de kaldırılmış. Installshield Limited Edition Template’i gelmiş.

http://msdn.microsoft.com/en-us/library/2kt85ked(v=vs.110).aspx

 

26 Ağustos 2014 Salı

SSRS The request failed with HTTP status 401: Unauthorized

SSRS  “The request failed with HTTP status 401: Unauthorized”

SOLVED

(Advanced Settings) ApplicationPool à  (Process Model)   NetworkService à Identity à NetworkService

Server Error in '/' Application.


The request failed with HTTP status 401: Unauthorized.
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.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[WebException: The request failed with HTTP status 401: Unauthorized.]
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +192
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +51
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +12
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.ProxyMethodInvocation.Execute(RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod) +417
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +180
   Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() +79
   Microsoft.Reporting.WebForms.ServerReport.GetParameters() +49
  


   YnaDialogBasePage.Page_Load(Object sender, EventArgs e) +130
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772



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

12 Ağustos 2014 Salı

TELERIK 2014.2.618.35 GEÇİŞİNDE ORTAYA ÇIKAN SORUNLAR VE ÇÖZÜMLERİ

TELERİK 2014.2.618.35 GEÇİŞİNDE ORTAYA ÇIKAN SORUNLAR VE ÇÖZÜMLERİ

HTML Hataları

<![if !supportLists]>·       <![endif]>Hataları ortaya çıkarmak için Internet Explorer Document Mode 7 ye geçmek gereklidir.
<![if !supportLists]>·       <![endif]>Maddeler kontrol önceliğine göre sıralanmıştır.
1))  RadGrid içindeki kolonların UniqeName değerlerinin farklı  (tekrar etmiyor) olması gerekiyor. Özelllikle Hem template column’a hem bound column’a aynı UniqeName verildiği örnekler var. Ayrıca birerbir aynı (kopyala/yapıstır) bound column tanımlanmış örneklere de rastladık.  TemplateColumnlar için Kolon ismini  =”TutarTemplateColumn” gibi verilebilir. Code behind’da bu yeniden adlandırılan (unique name ‘i değiştirilen ) kolonu kullanan yerlerde refactor yapılması gerekiyor.
 
2))  Bir kolonun DataField=”” alanında, bind edilen data da olmayan bir alan adı yazıyor ise, grid kolonları eksik gösteriyor. Örneğimizde bir kolonda DataField=”KumpanyaID” yazılmış. Halbuki bind edilen tabloda “KumpanyaID” diye alan yok “KumpanyaId” olmalı.
 
3))  <GridBoundColumn  Display=”false”> olan kolonlar, <columns></columns> bloğunun en altında yer alması gerekiyor.
 
4))  GridBoundColumn sayısı, griddeki diğer kolonlardan fazla olduğunda Grid’in kolonlarında bozukluk oluyor. Bu sayı aşmasa dahi kullanılmayan databoundcolumnlar silinmelidir.
<GridBoundColumn  Display=”false”> alan adedini azaltmak için
BoundColumn’u silip, Multiple datakeyname kullanabiliriz.
Griddten çektiğimiz Id ile, güncel bilgiye VT den erişecek bir yapıya geçeriz.
 
 


 
(Yukarıdaki maddelerin yol açabildiği kolonların eksik gösterildiği RadGrid’in görüntüsü)
 
5))          RadGrid’te detayları açan kolonun gözükmediği durumlarda, code behind’e ekleme yapmak gerekiyor.
 
 
 
6))          Html içinde bozukluk var ise görüntüde bozukluklar meydana geliyor.
<![if !supportLists]>                                                               i.      <![endif]>Aynı tablonun TR lerinde, TD lere farklı Width’ ler vermek.
<![if !supportLists]>                                                             ii.      <![endif]><TD> lerin %Width’lerin toplamının 100 yapmaması.
<![if !supportLists]>                                                            iii.      <![endif]>Kapanmamış veya hiç açılmamış “tag” ler
 


 

Breaking Changes

 
<![if !supportLists]>1.       <![endif]>Breaking Change : Visible yerine Display özelliği kullanılması gerekiyor. Visible false kalırsa item’dan değer gelmez. <telerik:GridBoundColumn DataField="BookingId" UniqueName="BookingId" Visible="false"   Display="false">
 
<![if !supportLists]>2.       <![endif]>Breaking Change : NoRecoudsTemplate grid’in en sağında yeni bir kolon olarak gözüküyordu. Arka planda colspan a değer atandığı için. Bu bir Bug. Bunu YNAMasterPage.master dosyasına aşağıdaki eklemeyi yaparak çözdük. Bu madde için başka bir müdehale yapılmasına artık gerek yok.
 
<![if !supportLists]>3.       <![endif]>Breaking Change : Uploaded file content lenght int->long
 

11 Temmuz 2014 Cuma

IIS subpath'te ayrı bir uygulama çalıştırmak

Merhaba,

 

IIS 7 ve üzerinde host edilen uygulamalarımızda, aynı domain ve subpath’lerinde farklı uygulamalar çalıştırmamız gereken durumlar olacaktır.

 

Örneğin;

xyz.fabrikam.com isimli dns’ten yayın yapan bir web application var. Klasik bir asp.net uygulaması. Forms authentication ile çalışıyor.

xyz.fabrikam.com\ozelservis isimli bir adresten web servis ile farklı uygulamalara data yayınlamak istiyoruz.

 

Mevcut durum:

 

İstenilen:

1)      Sağ click, add application

 

2)      Alias tanımlama ve web servis path’i gösterme

 

3)      Sonuç

Çalışma ortamını hazırladık.

Devamında yaşanan en büyük sorun, child uygulamanın, master uygulamanın web.config dosyasından etkilenmesi (en sık yaşanan örnek, site forms authenticationlı, web servis’e erişimde sıkıntı yaşanır).

Bunu yönetmek için en yaygın çözüm yöntemi inheritInChildApplications kullanımı.

Tag’in kullanımı ile ilgiye aşağıdaki linkten bakabilirsiniz.

http://msdn.microsoft.com/tr-tr/library/system.configuration.sectioninformation.inheritinchildapplications(v=vs.110).aspx

 

İyi çalışmalar

9 Temmuz 2014 Çarşamba

The report parameter is read-only and cannot be modified. (rsReadOnlyReportParameter)

The report parameter 'Parametre İsmi' is read-only and cannot be modified. (rsReadOnlyReportParameter)
1)) Rapor get latest alınır.
2)) Proje içinden rapor paremetresi Visible ve Prompt dolu hale getirilmelidir.

       3)) Hangi sunucuya devreye alım yapılacak ise,  sunucudan o rapor silinir ( yetki yoksa sildirilir.)

      4))  proje içinden rapor "deploy" yapılır.

1 Temmuz 2014 Salı

Telerik 2014.2.618.35 2014 Q2 Walkthrough

Telerik 2014.2.618.35 2014 Q2 Walkthrough

1- Fix Html Bugs
a) no "not opened tag", no "not closed tag" etc.,
b) same width for the same <td> in different <tr>
c) no duplicate UniqueName   between  <columns></columns> tags
d) GridColumns'  DataFields must exist in the data source  ( is DataField is set to ="XXX" , the datasource must have "XXX" field before the binding)

2- GridBoundColumn Property Tag Rename : Visible to Display
<telerik:GridBoundColumn DataField="BookingId" UniqueName="BookingId" Visible="false"   Display="false">
(Visible="false" columns are no more in the view state)

3- <GridBoundColumn… Display=false >
a) Number of these columns must fewer than other columns number.
b) These columns must be stated at bottom of <columns></columns> block

4- Web Config Settings

Add / Change

<appSettings>
    <add key="Telerik.Grid.Skin" value="2011"/>
    <add key="Telerik.Grid.EnableEmbeddedSkins" value="false"/>
    <add key="Telerik.GridFilterMenu.Skin" value="2011"/>
    <add key="Telerik.GridFilterMenu.EnableEmbeddedSkins" value="false"/>
    <add key="Telerik.Dock.Skin" value="Yna"/>
..
..
..

<controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2014.2.618.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      </controls>
5- if the GridExpandColumn does  not rendered properly

protected void BookingListesiGridView_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
        {
            if (e.Column.ColumnType == "GridExpandColumn")
            {
                e.Column.HeaderStyle.Width = Unit.Pixel(35);
            }
        }

6- RadUpload ContentLenght property is long now. You may need to remove, change or add  the "conversion" code.

7 -Test your pages for different ie versions especially for Document mode 7 (f12 developer tools)

26 Haziran 2014 Perşembe

Telerik.Web.UI.WebResource.Exists System.NullReferenceException dynatrace

1. Check
 
Telerik.Web.UI.dll is in the GAC:
<system.webserver>
<handlers>
    … 
    <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*"    type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=[ASSEMBLY_VERSION], Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
    …
</handlers>
</system.webserver>
 
 
Telerik.Web.UI.dll is not in the GAC:
              
<system.webserver>
<handlers>
    … 
    <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
    …
</handlers>
</system.webserver>
 
 
<httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
      <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
    </httpHandlers>
 
 
 
2. Check
 
IIS7 Integrated Mode: The following statement should be present in the <handlers> section instead of <httpHandlers>:
<handlers> 
<add name="Telerik.Web.UI.WebResource" 
path="Telerik.Web.UI.WebResource.axd" verb="*"  
type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
 
 <handlers>
      <add name="TelerikHandler" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
      <add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </handlers>
  </system.webServer>