or
After a few investigations we can confirm, that the error does not happen if we run our web application in only one working process (application pool). Normaly four are default. Now - do you know something about problems with the "ImageEditor" and IIS application pool Working processes? This this a known Bug? I've tried the newest Telerik DLL (Q3 2012) but this does not help anything. Best regards, Felix2012.11.20 17:44:30.988 ThreadId=7 Fatal ErrorsHttpModule
UrlQueryString: /v0/Telerik.Web.UI.WebResource.axd?type=iec&pr=c&key=c695498e-de5a-4dbd-9e85-f4a4e40398c0
REMOTE_ADDR: 192.168.1.38
HTTP_USER_AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
HTTP_REFERER: [...]/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageEditor&Skin=Default&Title=&doid=ad5a5db1-7982-46bf-90b9-2afeea8662e6&dpptn=
HttpApplication.RecordError => HttpApplication.RaiseOnError => CustomExceptionHttpModule.app_Error
m1.eRelCL.WebSite.Exceptions.CustomExceptionHttpModule.app_Error
FatalException
m1.eRelCL.WebSite.Exceptions.CustomException
InnerException
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Telerik.Web.UI.ImageEditor.ImageEditorCacheHandler.SendImage(EditableImage editableImage, HttpContext context, String path, String fileName)
bei Telerik.Web.UI.ImageEditor.ImageEditorCacheHandler.ProcessRequest(HttpContext context)
bei Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
bei Telerik.Web.UI.HandlerRouter.ProcessHandler(HttpContext context)
bei Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Hi,
I have Default.aspx page like this ..
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
'http://www.w3.org/1999/xhtml'
>
<
head
>
<
title
>ASP.NET PanelBar Demo - Dynamic Creation</
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
/>
<
telerik:RadSkinManager
ID
=
"QsfSkinManager"
runat
=
"server"
ShowChooser
=
"true"
/>
<
telerik:RadFormDecorator
ID
=
"QsfFromDecorator"
runat
=
"server"
DecoratedControls
=
"All"
EnableRoundedCorners
=
"false"
/>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadButton1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadPanelBar1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
>
</
telerik:AjaxUpdatedControl
>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
>
</
telerik:RadAjaxLoadingPanel
>
<
div
>
<
telerik:RadPanelBar
runat
=
"server"
ID
=
"RadPanelBar1"
Height
=
"200"
ExpandMode
=
"FullExpandedItem"
>
</
telerik:RadPanelBar
>
</
div
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"RadButton"
>
</
telerik:RadButton
>
</
form
>
</
body
>
</
html
>
Default.aspx.vb :
Imports Telerik.Web.UI
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
End If
End Sub
Protected Sub RadButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadButton1.Click
Dim i As Integer = 0
If RadPanelBar1.Items.Count = 0 Then
Do While (i < 5)
Dim dateItem As New RadPanelItem()
dateItem.Text = "Test" + i.ToString()
RadPanelBar1.Items.Add(dateItem)
Dim control As New RadPanelItem()
Dim Panel1 As New Panel()
Session("testText") = " Label" + i.ToString()
Dim myControl As Control = LoadControl("TestUC.ascx")
Panel1.Controls.Add(myControl)
control.Controls.Add(Panel1)
dateItem.Items.Add(control)
i = i + 1
Loop
End If
End Sub
End Class
ASCX :
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TestUC.ascx.vb" Inherits="TestUC" %>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"Label"
></
asp:Label
>
ASCX.VB :
Partial Class TestUC
Inherits System.Web.UI.UserControl
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Label1.Text = Session("testText")
End If
End Sub
End Class
If I click on RadButton1 2nd time then nothing to do becuase 5 time usercontrol added already in to radpanelbar.. that's why I put condition like this
If RadPanelBar1.Items.Count = 0 ' Add user control here.. End If
Above condition causes nothing loaded in to UI.
Working Image here : https://docs.google.com/open?id=0B2iTYXKyTlBpZU5ZY1J0SV9FaXc
Not Working Image : https://docs.google.com/open?id=0B2iTYXKyTlBpTmNGdXNQTjJCVGs
[XmlArray(
"credentials"
)]
[XmlArrayItem(
"account"
)]
public
List<CustomData> Accounts
{
get
;
set
;
}
[Serializable]
public
sealed
class
CustomData
{
[XmlAttribute(
"CustomerId"
)]
public
string
CustomerId
{
get
;
set
;
}
}
int count = radgrid1.MasterTableView.Items.Count;
if (count > 2)
{
e.Canceled = true;
radgrid1r.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
}
else
{
radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.TopAndBottom;
}
<
telerik:RadComboBox
ID
=
"CaseRadComboBox"
runat
=
"server"
DataSourceID
=
"CaseSqlDataSource"
DataTextField
=
"FullCaseName"
DataValueField
=
"subIdx"
enableautomaticloadondemand
=
"true"
enablevirtualscrolling
=
"true"
itemsperrequest
=
"15"
Filter
=
"Contains"
Width
=
"400px"
AutoPostBack
=
"True"
enableitemcaching
=
"True"
>
</
telerik:RadComboBox
>