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