This is a migrated thread and some comments may be shown as answers.

the status code received from the server was 500

1 Answer 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Suneetha
Top achievements
Rank 1
Suneetha asked on 31 May 2012, 06:43 PM
Hi,

I have a gridview with image button to edit.My source code for the grid is

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateColumns="False"

 

 

 

CellSpacing="0" GridLines="None" Height="520px" OnNeedDataSource="RadGrid1_NeedDataSource"

 

 

 

OnUpdateCommand="RadGrid1_UpdateCommand" PageSize="20" Skin="WebBlue" Visible="False"

 

 

 

OnPreRender="RadGrid1_PreRender">

 

 

 

<ClientSettings>

 

 

 

<Selecting CellSelectionMode="None" />

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

</ClientSettings>

 

 

 

<MasterTableView Width="100%">

 

 

 

<CommandItemSettings ExportToPdfText="Export to PDF" />

 

 

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Edit" HeaderStyle-Width="4%"

 

 

 

HeaderText="Edit" Text="Edit" UniqueName="EditButton" Visible="true">

 

 

 

<HeaderStyle Width="4%" />

 

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridBoundColumn DataField="Total Items" FilterControlAltText="Filter Total_Items column"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Mapped Items"

 

 

 

ReadOnly="true" SortExpression="Total_Items" UniqueName="Total_Items">

 

 

 

<HeaderStyle Font-Bold="True" Width="6%" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat1" UniqueName="Ariba_Cat1">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catone" runat="server" Text='<%#Eval("Ariba_Cat1") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatone" runat="server" DataSourceID="Ariba_Cat1"

 

 

 

DataTextField="ariba_cat1" DataValueField="ariba_cat1" SelectedValue='<%# Bind("Ariba_Cat1") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat2" UniqueName="Ariba_Cat2">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_cattwo" runat="server" Text='<%#Eval("ariba_Cat2") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacattwo" runat="server" DataSourceID="aribacat2"

 

 

 

DataTextField="ariba_cat2" DataValueField="ariba_cat2" SelectedValue='<%# Bind("ariba_Cat2") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat3" UniqueName="Ariba_Cat3">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catthree" runat="server" Text='<%#Eval("Ariba_Cat3") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatthree" runat="server" DataSourceID="SubCategory"

 

 

 

DataTextField="ariba_cat3" DataValueField="ariba_cat3" SelectedValue='<%# Bind("Ariba_Cat3") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat4" UniqueName="Ariba_Cat4">

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatfour" runat="server" DataSourceID="ds_aribafour"

 

 

 

DataTextField="ariba_cat4" DataValueField="ariba_cat4" SelectedValue='<%# Bind("Ariba_Cat4") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catfour" runat="server" Text='<%#Eval("Ariba_Cat4") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn EditFormHeaderTextFormat="&lt;font color='red'&gt;*&lt;/font&gt;{0}"

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat5" UniqueName="Ariba_Cat5">

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="rcb_aribacatfive" runat="server" DataSourceID="ds_catfive"

 

 

 

DataTextField="ariba_cat5" DataValueField="ariba_cat5" SelectedValue='<%# Bind("Ariba_Cat5") %>'>

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbl_catfive" runat="server" Text='<%#Eval("Ariba_Cat5") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Font-Bold="True" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

<FilterMenu EnableImageSprites="False">

 

 

 

</FilterMenu>

 

 

 

</telerik:RadGrid><%--</asp:Panel>--%>

 


My problem is the edit button working fine in my local mechine but after deploying the application I was trying to edit data.But getting error while clicking on edit button.Error message is

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; InfoPath.3)

Timestamp: Fri, 1 Jun 2012 16:01:18 UTC

 

 

Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Line: 6

Char: 84093

Code: 0

URI: http://10.9.16.61:8082/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2



Please anybody give me the solution.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 05 Jun 2012, 08:28 AM
Hello,

 This is a general error. Probably some of the assemblies have not been deployed correctly to the server which causes the scripts to fail to load properly. Also I suggest temporarily turning off the ajax to see the actual exception and what has generated it.
More information on deployment errors can be found in this help topics:
http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting-production-server.html 
http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html 

Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Suneetha
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or