Our ASP.NET web forms project was updated from .NET 3.5 to .NET 4.5. This also meant we switched from Classic to Integrated pipeline mode for the App Pool. I began to see this error on pages that loaded the Telerik controls.
'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use
the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager
After referencing the following webpages:
http://dotnetdawgs.com/post/Telerik-Web-UI-WebResource-axd-is-missing-in-webconfig.aspx
http://dotnet4europeanhosting.hostforlife.eu/post/European-ASPNET-Hosting-Amsterdam-How-to-resolve-7e-TelerikWebUIWebResourceaxd-is-missing-in-WebConfig.aspx
http://stackoverflow.com/questions/10889771/issue-with-telerik-web-ui-webresource-axd
http://stackoverflow.com/questions/7776087/when-i-run-asp-net-web-page-using-radgrid-telerik-control-on-server-side-it-gene?rq=1
I made the following changes...
I removed <httpHandlers> and <httpModules> from <system.web>
I removed the reference to the .NET 2 Telerik.Web.Design and Telerik.Web.UI DLLs, and added a reference to the .NET 4 DLLs.
I added <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" /> to the <system.webServer><handlers> section of web.config.
On my local workstation, this fixes the problem.
But, moving to our test web server, it still throws the same exception.
Test Server is confirmed running Windows Server 2008, IIS7, Integrated pipeline mode, .NET 4.5.
I've also tried leaving the <httpHandlers> in place, but that didn't work, either.
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
<add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.1.10.714, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
</httpHandlers>
Hi
I am Creating a Grid dynamically. I dont know how many columns will be there it is based on the login user.
Is there any why to bind that Grid clientside?
Thanks & Regards
Saicharan.D
I am using Radeditor with track changes in aspx page.
but my project implementing in MVC so i want to implement Rad Editor with Track changes in mvc.
is it possible?
Hello,
I have a RadSplitter with 2 RadPanes
In Left pane i am loading TreeView List. In RightPane i am loading Radgrid with 10,000 rows.
Each page load, about 5-7 seconds RadSplitter shows small then expanding(Please see attachment) to full screen.
<
style
type
=
"text/css"
>
html, body, form
{
height: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}
</
style
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/jscript"
>
function pageLoad()
{
var splitter = $find("<%=RadSplitter1.ClientID%>");
splitter.clientHeight = (screen.availHeight - 5) + "px";
}
var minWidth = 1000;
var minHeight = 600;
window.onresize = ResizeSplitter;
function ResizeSplitter() {
var splitter = $find("<%=RadSplitter1.ClientID %>");
if (!splitter) return;
var viewport = $telerik.getViewPortSize();
var widthToSet = viewport.width > 1000 ? viewport.width : 1000;
var heightToSet = viewport.height > 600 ? viewport.height : 600;
splitter.set_width(widthToSet);
splitter.set_height(heightToSet);
var wrapper = $get("ParentDivElement");
}
</
script
>
</
telerik:RadCodeBlock
>
<div id="ParentDivElement" style="height: 100%;">
<
telerik:RadSplitter
ID
=
"RadSplitter1"
runat
=
"server"
Height
=
"100%"
Width
=
"100%"
LiveResize
=
"true"
OnClientLoad
=
"ResizeSplitter"
>
<
telerik:RadPane
ID
=
"TreePane"
runat
=
"server"
Width
=
"25%"
>
<
telerik:RadTreeView
ID
=
"RadTreeMatt"
runat
=
"server"
style
=
"white-space: normal;"
Skin
=
"Windows7"
Font-Size
=
"12pt"
CheckBoxes
=
"True"
TriStateCheckBoxes
=
"true"
CheckChildNodes
=
"true"
onnodeexpand
=
"RadTreeMatt_NodeExpand"
>
</
telerik:RadTreeView
>
</
telerik:RadPane
>
<
telerik:RadSplitBar
ID
=
"RadSplitbar1"
runat
=
"server"
CollapseMode
=
"Forward"
>
</
telerik:RadSplitBar
>
<
telerik:RadPane
ID
=
"GridPane"
runat
=
"server"
Width
=
"75%"
MinHeight
=
"2000"
Scrolling
=
"None"
>
<
div
id
=
"divGrid"
style
=
"width:100%; height:100%;"
>
<
telerik:RadGrid
ID
=
"grdList"
EnableViewState
=
"false"
runat
=
"server"
PageSize
=
"10000"
AutoGenerateColumns
=
"false"
AllowPaging
=
"true"
Skin
=
"Bootstrap"
Width
=
"100%"
Height
=
"100%"
AllowSorting
=
"True"
AllowFilteringByColumn
=
"false"
GridLines
=
"None"
onneeddatasource
=
"grdList_NeedDataSource"
onitemcreated
=
"grdList_ItemCreated"
onitemdatabound
=
"grdList_ItemDataBound"
>
<
ItemStyle
Wrap
=
"false"
></
ItemStyle
>
<
MasterTableView
AllowMultiColumnSorting
=
"true"
TableLayout
=
"Fixed"
>
<
Columns
>
<
telerik:GridClientSelectColumn
UniqueName
=
"ClientSelectColumn"
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Width
=
"2%"
></
HeaderStyle
>
<
ItemStyle
HorizontalAlign
=
"Left"
Width
=
"2%"
></
ItemStyle
>
</
telerik:GridClientSelectColumn
>
<
telerik:GridHyperLinkColumn
HeaderText
=
"Name"
DataTextField
=
"LeadFullName"
AllowFiltering
=
"false"
DataNavigateUrlFields
=
"LeadID,MatterID"
DataNavigateUrlFormatString
=
"javascript:AddorEditorViewLead({0})"
SortExpression
=
"LeadFullName"
UniqueName
=
"LeadFullName"
HeaderStyle-Font-Underline
=
"true"
DataType
=
"System.String"
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Width
=
"12%"
></
HeaderStyle
>
<
ItemStyle
HorizontalAlign
=
"Left"
Width
=
"12%"
/>
</
telerik:GridHyperLinkColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"Address"
DataType
=
"System.String"
DataField
=
"Address"
UniqueName
=
"Address"
SortExpression
=
"Address"
AllowFiltering
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Width
=
"15%"
></
HeaderStyle
>
<
ItemStyle
HorizontalAlign
=
"Left"
Width
=
"15%"
Wrap
=
"true"
></
ItemStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"E-Mail"
DataType
=
"System.String"
DataField
=
"Email"
UniqueName
=
"Email"
SortExpression
=
"Email"
AllowFiltering
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Wrap
=
"false"
Width
=
"13%"
></
HeaderStyle
>
<
ItemStyle
HorizontalAlign
=
"Left"
Width
=
"15%"
Wrap
=
"true"
></
ItemStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"Phone"
DataType
=
"System.String"
DataField
=
"Phone"
UniqueName
=
"Phone"
SortExpression
=
"Phone"
AllowFiltering
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Width
=
"10%"
></
HeaderStyle
>
<
ItemStyle
HorizontalAlign
=
"Left"
Width
=
"10%"
Wrap
=
"true"
></
ItemStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"LinkButtonColumn"
AllowFiltering
=
"false"
>
<
HeaderTemplate
>
<
telerik:RadCodeBlock
ID
=
"codeblaok1"
runat
=
"server"
>
<
asp:ImageButton
runat
=
"server"
ID
=
"btnNew"
ToolTip
=
"Add New Lead"
OnClientClick
=
"AddNew();return false;"
ImageUrl
=
"~/images/buttons/plus_blue.gif"
/>
</
telerik:RadCodeBlock
>
</
HeaderTemplate
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Width
=
"15%"
Wrap
=
"false"
></
HeaderStyle
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"true"
ScrollHeight
=
"500px"
UseStaticHeaders
=
"true"
/>
<
Selecting
AllowRowSelect
=
"True"
UseClientSelectColumnOnly
=
"True"
></
Selecting
>
</
ClientSettings
>
</
telerik:RadGrid
>
</
div
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</div>
We are using RadPivotGrid and was working fine until we change the sessionState to SQLServer. And now getting the error:
Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.
Stack Trace:
[SerializationException: Type 'Telerik.Web.UI.PivotGrid.Core.ViewModels.PivotViewModel' in Assembly 'Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +14052545
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +408
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +420
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder) +532
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder) +270
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +814
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +322
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1487
[HttpException (0x80004005): Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.]
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +2252815
System.Web.SessionState.SessionStateItemCollection.WriteValueToStreamWithAssert(Object value, BinaryWriter writer) +49
System.Web.SessionState.SessionStateItemCollection.Serialize(BinaryWriter writer) +729
System.Web.SessionState.SessionStateUtility.Serialize(SessionStateStoreData item, Stream stream) +336
System.Web.SessionState.SessionStateUtility.SerializeStoreData(SessionStateStoreData item, Int32 initialStreamSize, Byte[]& buf, Int32& length, Boolean compressionEnabled) +99
System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +3538988
System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +1021
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Hi,
I have a diagramming application which uses a RadToolBar to set attributes such as Bold, Italic and Underline - pretty standard stuff.
The RadToolBarButton's need to serve a dual purpose:
I am using the check() method of the item to "highlight" it if the selected shape has that attribute set.
Unfortunately it seems that only 1 item can be checked at a time.
How do I go about checking/selecting/highlighting multiple toolbarbutton's?
Thanks in advance for any suggestion and code snippets.
Jim