Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
Hello

We are are replacing the control library used in one of our legacy applications for asp .net ajax and while promoting the changes to our QA environment we are getting the following error:

Server Error in '/' Application.

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond  xxx.xxx.xxx.xxx:443

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.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xxx.xxx.xxx.xxx:443

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:

[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 207.179.132.114:443]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239
   System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224

[WebException: Unable to connect to the remote server]
   System.Net.HttpWebRequest.GetResponse() +5375213
   System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) +69
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +3929371
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +54
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74
   System.Threading.CompressedStack.runTryCode(Object userData) +70
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +108
   System.Xml.XmlTextReaderImpl.OpenUrl() +186
   System.Xml.XmlTextReaderImpl.Read() +208
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
   System.Xml.XmlDocument.Load(XmlReader reader) +108
   System.Xml.XmlDocument.Load(String filename) +87
   AgPortal.Web.gmsNavigationMenu.LoadFromXML(String filename) in D:\projects\agportal\AgPortal 2.3\AgPortalWeb\GMSEntry\UserControls\gmsNavigationMenu.ascx.vb:15
   AgPortal.Web.gmsGrowerBusiness.Page_Load(Object sender, EventArgs e) in D:\projects\agportal\AgPortal 2.3\AgPortalWeb\GMSEntry\MainPages\gmsGrowerBusiness.aspx.vb:7
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

The rest of the application is working fine, just the pages using telerik controls are getting the error and even then everything works fine if the application is executed from individual members of the cluster. 

Any ideas of what is going on here?

Regards,
Alejandro

PD: We are using a single IP two nodes cluster in QA.
Georgi Tunev
Telerik team
 answered on 24 Jun 2011
2 answers
79 views
Hi,

I have got a rad combo box in a page and after post back the rad combo width got decreased. I have tried your KB article
http://www.telerik.com/support/kb/aspnet-ajax/combobox/radcombobox-changes-width-height.aspx

but on running the page i am getting a java script error combo.FixUp is not a function .I am using rad controls of version 2010.1.519.40.If this version of controls does not support this fix up function is there any other solution?
deepak
Top achievements
Rank 2
 answered on 24 Jun 2011
5 answers
352 views
 Hello,

I am using Telerik PanelBar. I am using the version of 2010.3.1317.20. I cant upgrade to the latest version as the framework I am using .Net 2.0.

I have added the PanelBar in the MasterPage, When i Click on any of the item in the panel bar, the Click event is not firing.

The panelbar is populated at runtime. also the NavigateUri is set at runtime.

<telerik:RadPanelBar runat="server" ID="RadPanelNavBar" Visible="false" ExpandMode="MultipleExpandedItems" 
                                        OnItemClick="RadPanelNavBar_ItemClick" EnableViewState="true">
                                </telerik:RadPanelBar>

the below code is how i am adding the RadPanelItems

For Each mnuChildRow As DataRow In dtFilterData.Rows
                                Dim menuAdminChild As New RadPanelItem()                                
                                menuAdminChild.Text = mnuChildRow.Item(Field.DisplayName).ToString()
                                menuAdminChild.NavigateUrl = "../" + mnuChildRow.Item(Field.ResourceName).ToString()
                                menuMFGHeader.Items.Add(menuAdminChild)
                            Next

The click event is below

Protected Sub RadPanelNavBar_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelNavBar.ItemClick
        If e.Item.Items.Count > 0 Then
            If e.Item.Expanded = False Then
                'Label1.Text = "Collapsed panel item - " + e.Item.Text
            Else
                'Label1.Text = "Expanded panel item - " + e.Item.Text
            End If
        Else
            'Label1.Text = "Clicked panel item - " + e.Item.Text
        End If
    End Sub

What finally i require is to have the RadPanelItem as selected on which the user last clicked. rest all remains un selected.

Helen
Telerik team
 answered on 24 Jun 2011
1 answer
81 views
I have radcombox with load on demand=true and allow custom text=false and markfirstmatch=true. we are loading the items from client side with onclientitemsrequested event. when the text entered is not matching the items from list it is not selecting the closest match.

Please suggest me what else settings i need to use to select the closest matched item.


Thanks and Regards
D Praveen
Helen
Telerik team
 answered on 24 Jun 2011
1 answer
104 views
Hi,

How can I used localisation for a fieldEditors like radfilterTextFieldEditor.

Asp :
<telerik:RadFilter ID="RadFilter1" runat="server" Skin="WebBlue">        
        <FieldEditors>                 
            <telerik:RadFilterTextFieldEditor DataType="System.String" DisplayName="Customer account" FieldName="CodeClient" />
         </FieldEditors>
</telerik:RadFilter>

This VB code does'nt work :
Private Sub RadFilter1_FieldEditorCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadFilterFieldEditorCreatedEventArgs) Handles RadFilter1.FieldEditorCreated
        If sculture = "fr-FR" Then
            If e.Editor.FieldName = "CodeClient" Then
                e.Editor.DisplayName = "Code Client"
            End If
        End If
End Sub

Have you got an idea to change the DisplayName in this case ?

Anne
Anne
Top achievements
Rank 1
 answered on 24 Jun 2011
4 answers
149 views
I'm stumped on this performance issue.  When paging a RadGrid I get instantaneous results.  However, when I filter any of the columns, the query takes around 10 seconds to complete and any paging applied after the filter remains just as slow.  If I remove the filter the performance is just fine.

Production is a SharePoint 2010 Server which is hosted in-house with a small number of users.  I am using a RadGrid control, version 2009.3..1314.35 that queries a table containing 30,000 records. I am using LINQ to SQL for the back-end.  I have used IE and Firefox in production.  On my development machine there are no performance issues. 

Below is my code.  Any help would be appreciated.

ASPX:
<telerik:RadGrid ID="rdgrdPeople" DataSourceID="people" PageSize="10" AllowPaging="true" AllowAutomaticDeletes="true" AllowMultiRowSelection="true" Skin="Windows7" OnItemDataBound="rdgrdPeople_ItemDataBound"
  AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="false" runat="server">
    <GroupingSettings CaseSensitive="False" />
    <MasterTableView AutoGenerateColumns="false" DataKeyNames="Id" OverrideDataSourceControlSorting="true">
        <Columns>
            <telerik:GridHyperLinkColumn Text="View" UniqueName="View" AllowFiltering="false"  DataNavigateUrlFields="Id,Profile"
                            DataNavigateUrlFormatString="managecontact.aspx?id={0}&profile={1}" />
            <telerik:GridHyperLinkColumn Text="Edit" UniqueName="Edit" AllowFiltering="false"  DataNavigateUrlFields="Id,Profile"
                            DataNavigateUrlFormatString="managecontact.aspx?id={0}&profile={1}" />
            <telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="Delete" CommandName="Delete" Text="Delete" ConfirmText="Are you sure you want to delete this person?" />
 
          <telerik:GridTemplateColumn AllowFiltering="false" SortExpression="Marked" HeaderText="Marked" UniqueName="Marked">
 
               <ItemTemplate>
                 <asp:CheckBox
                   ID="chkbxMarked" runat="server"
                   OnCheckedChanged="ToggleRowSelection"
                   Checked='<%# Eval("Marked") %>'
                   AutoPostBack="True" />
               </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="NamePrefix" SortExpression="NamePrefix" AllowFiltering="false" HeaderText="Name Prefix" />
            <telerik:GridBoundColumn DataField="LastName" SortExpression="LastName"  AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderText="Last Name" />
            <telerik:GridBoundColumn DataField="FirstName" SortExpression="FirstName" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderText="First Name" />
            <telerik:GridBoundColumn DataField="MiddleName" SortExpression="MiddleName" AllowFiltering="false" HeaderText="Middle Name" />
            <telerik:GridBoundColumn DataField="Phone1" SortExpression="Phone1" AllowFiltering="false" HeaderText="Phone" />
            <telerik:GridBoundColumn DataField="Phone1Ext" SortExpression="Phone1Ext" AllowFiltering="false" HeaderText="Ext." />
            <telerik:GridBoundColumn DataField="Email1" SortExpression="Email1" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderText="Email" />
            <telerik:GridBoundColumn DataField="Profile" SortExpression="Profile" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderText="Profile" />    
           
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 
<asp:ObjectDataSource ID="people" runat="server" EnablePaging="true" SelectMethod="FindAllByProfile" DeleteMethod="Delete"
    TypeName="PRA.Business.PersonLogic" StartRowIndexParameterName="rowStart" MaximumRowsParameterName="numRows"
    SelectCountMethod="FindAllByProfileCount" >
    <SelectParameters>
        <asp:ControlParameter ControlID="drplstProfiles" PropertyName="SelectedItem.Value" Name="profileName" />
    </SelectParameters>
    <DeleteParameters>
        <asp:Parameter Name="Id" />
    </DeleteParameters>
</asp:ObjectDataSource>

BLL:
public IList<Person> FindAllByProfile(string profileName, int rowStart, int numRows)
       {
           return profileName == "All" ? _repos.FindAll(rowStart, numRows) : _repos.FindAllByProfile(profileName, rowStart, numRows);
       }
 
       public int FindAllByProfileCount(string profileName)
       {
           return profileName == "All" ? _repos.FindAllCount() : _repos.FindAllByProfileCount(profileName);
       }

Repository:

public IList<Person> FindAll(int rowStart, int numRows)
      {
          using (PRADbDataContext db = new PRADbDataContext())
          {
              var data = from p in db.persons
                         join c in db.contacts on p.PersKey equals c.PersKey into personContacts
                         from pc in personContacts.DefaultIfEmpty()
                         orderby p.Modified descending
                         select new Person()
                                    {
                                        Id = p.PersKey,
                                        AddressId = p.AddrKey,
                                        DateModified = p.Modified,
                                        Email1 = p.EMail1,
                                        Marked = p.Marked,
                                        Phone1 = p.Phone1,
                                        Phone1Ext = p.PhExt1,
                                        NamePrefix = p.MrMs,
                                        FirstName = p.FName,
                                        LastName = p.LName,
                                        MiddleName = p.MName,
                                        Title = p.Title,
                                        Profile = pc.ProfKey ?? "N/A"
                                    };
              return data.Skip(rowStart).Take(numRows).ToList();
          }
      }
 
public int FindAllCount()
      {
          using (PRADbDataContext db = new PRADbDataContext())
              {
                  var data = from p in db.persons
                             join c in db.contacts on p.PersKey equals c.PersKey
                             select new Person()
                             {
                                 Id = p.PersKey,
                             };
                  return data.Count();
              }
      }


Tsvetoslav
Telerik team
 answered on 24 Jun 2011
6 answers
918 views
I've seen numerous other threads in which the update command is not working, but none of them I have found are exactly like my situation. I am programmatically building multiple RadGrids on a single page, each of which is contained in its own RadPanel, and all of the panels are inside a RadAjaxPanel. I am using a custom implementation of the IBindableTemplate for the RadGrid's EditForm. Everything is working fine when I click the delete button (Delete command is fired and the record is deleted).

When I click the "Add New Record" button, the template appears just fine, I can enter information, press the insert button, and the record is inserted and can be seen in the grid. However, when I click on the edit button, the grid goes into edit mode just fine, all values are populated in the template just as they should be and an "Edit" item command is fired.

However, once inside this edit mode, no events fire. If I click on the update button, no update command is fired, and the same is true for the cancel button. I don't understand why the edit mode fails to work but the insert mode works just fine. Any help would be appreciated!
Pavel
Telerik team
 answered on 24 Jun 2011
3 answers
75 views
Hi,

Is there a specific 'CommandName' that will reference the MoveUp.gif and MoveDown.gif graphics/functions for say the Vista skin for RadGrids?

I don't see anything @ http://www.telerik.com/help/aspnet-ajax/grid-command-reference.html

Thanks!
Tsvetina
Telerik team
 answered on 24 Jun 2011
1 answer
143 views
Hi Team,
               We are  using Rad Controls in our application. We are using AJAX Panel in one screen, We are getting one issue on that page which I highlighted in attachment. Please have a look at it and reply as soon as possible.


Detail description of that Issue:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; MS-RTC LM 8; MS-RTC EA 2)

Timestamp: Wed, 15 Jun 2011 20:12:16 UTC

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near 'tance of an object.|­'.

Line: 6

Char: 62099

Code: 0

URI: http://uat.sengen.com/Sengen/TaxRtnT1/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afab31106-1bd6-4491-9a14-59e0fc4a7081%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.519.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7807982c-d856-4b9c-96d9-4b1b757dd848%3a16e4e7cd%3af7645509%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a58366029%3aaa288e2d%3ac8618e41%3ae4f8f289%3a874f8ea2%3a19620875%3a33108d14%3abd8f85e4

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near 'tance of an object.|­'.

Line: 6

Char: 62099

Code: 0

URI: http://uat.sengen.com/Sengen/TaxRtnT1/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afab31106-1bd6-4491-9a14-59e0fc4a7081%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.519.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7807982c-d856-4b9c-96d9-4b1b757dd848%3a16e4e7cd%3af7645509%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a58366029%3aaa288e2d%3ac8618e41%3ae4f8f289%3a874f8ea2%3a19620875%3a33108d14%3abd8f85e4

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near 'tance of an object.|­'.

Line: 6

Char: 62099

Code: 0

URI: http://uat.sengen.com/Sengen/TaxRtnT1/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afab31106-1bd6-4491-9a14-59e0fc4a7081%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.519.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7807982c-d856-4b9c-96d9-4b1b757dd848%3a16e4e7cd%3af7645509%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a58366029%3aaa288e2d%3ac8618e41%3ae4f8f289%3a874f8ea2%3a19620875%3a33108d14%3abd8f85e4




Please give me a good solution ASAP,
Thanks
Alexis A
Pavlina
Telerik team
 answered on 24 Jun 2011
1 answer
98 views
I'm trying to get a RadRotator to display a set of items, such a news feed, but scrolling appears bugged with the control itself.  For example, lets say I want the RadRotator to have 10 items in a list, and to display 3 items at a time.  It will work for the first cycle (showing items 1,2,3, then items 4,5,6 and then items 7,8,9, then 10.)  The issue start on the next cycle.  It with then show (10, 1, 2, then 3,4,5, etc).  This in and of itself would be fine and I wouldn't consider it a bug, but after a while, it will start only showing the last item in the list.  (so 3, blank space, blank space, then 6, blank space, blank space, etc.)   

Has anyone encountered this before?  Any ideas on what the fix may be?   
Slav
Telerik team
 answered on 24 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?