Computer: Windows 8, 64-bit, 8GB RAM
I upgraded my DevCraft 2012 Q2 SP2 installation to Q3 today and and VS 2012 is crashing after opening a solution. I have the following components installed:
After installing, I started VS 2012 and took a very long time (perhaps 20 minutes) to get to a responsive state. I watched it in Task Manager and it looks like one core was pegged at 100% during this time and RAM consumed grew to over 500MB.
VS did come back eventually and I loaded a solution. Everything looked for a few seconds and then visual studio crashed. I tried rebooting and restarting VS but it crashes every time I try to load a solution. I went into the Windows EventLog and found this error:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Exception
Stack:
at System.Windows.Application.LoadComponent(System.Object, System.Uri)
at Telerik.VSX.Shell.Xaml.CommonXaml.InitializeComponent()
at Telerik.VSX.Shell.VSWindow..ctor()
at Telerik.VSX.Forms.BaseNotificationForm..ctor(System.IServiceProvider)
at Telerik.VSX.Helpers.NotificationManager..ctor(System.IServiceProvider)
at Telerik.KendoUI.Mvc.VSPackage.VsPackage.GetUpgradeAvailabilityMonitor()
at Telerik.VSX.VSPackage.PackageBase+<>c__DisplayClass5.<OnSolutionOpened>b__2()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
I then restarted VS and instead of loading a solution, I tried running TELERIK\VS Extensions Options... This also failed with a dialog complaining about a missing resource (see the attached image).
I also installed the update on a Windows 7 64-bit machine with both VS 2010 and 2012 installed. VS 2010 did not have the excessively long startup time but it also crashed when I tried loading a solution. VS 2012 seems to be stuck loading a solution right now.
Looks like something is wrong with Kendo. I'm going to try uninstalling it.
While uninstalling all of the Kendo components on my Windows 8/VS2012 machine, I went over to the Windows 7 machine, launched VS 2012 and opened the Telerik\VS Extensions Options... I didn't get an error message this time but the dialog is messed up. See the attached image.
Update: After uninstalling all of the Kendo components on the Windows 8/VS 2012 machine, VS2012 was able to load a solution and work normally. On the Windows 7/VS2010 machine, I'm now seeing VS2010 crash whild loading a solition.
<telerik:RadGrid ID="RadGrid1" runat="server" ShowHeader="False" AutoGenerateColumns="False" > <MasterTableView DataKeyNames="AppID, IDCart, IDOrder"> <Columns> .............. <telerik:GridTemplateColumn UniqueName="TemplateColumn" > <HeaderStyle Width="335px" /> <ItemTemplate> <asp:Literal ID="myLiteral" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> <HeaderStyle Width="15px" /> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> </telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid><telerik:RadAjaxManager ID="RadAjaxManagerCart" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> <telerik:AjaxUpdatedControl ControlID="myLiteral" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager>
<telerik:RadGrid ID="rgUsers" runat="server" BorderWidth="1" BorderColor ="#EBAB00" AutoGenerateColumns="false" AllowSorting="true" > <ClientSettings> <ClientEvents OnCommand="RaiseCommand" /> </ClientSettings> <ItemStyle Font-Size="10pt" Font-Names="Sans-serif" /> <HeaderStyle Font-Size="12pt" Font-Names="Sans-serif" /> <MasterTableView EditMode="InPlace"> <Columns> <telerik:GridBoundColumn UniqueName="UserId" DataField="UserId"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="username" DataField="username"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="level" DataField="level"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="subcatid" DataField="subcatid"></telerik:GridBoundColumn> <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> <telerik:GridClientDeleteColumn ConfirmText="Are you sure you want to delete this user?></telerik:GridClientDeleteColumn> </Columns> </MasterTableView></telerik:RadGrid>Private Sub rgUsers_EditCommand(ByVal sender As Object, ByVal e AsTelerik.Web.UI.GridCommandEventArgs) Handles rgUsers.EditCommand Dim gdi As GridDataItem = CType(e.Item, GridDataItem) Dim UserId As String Dim UserName As String Dim Level As Integer Dim SubCategoryID As Integer UserId = gdi.Item("UserId").Text UserName = gdi.Item("username").Text Level = CType(gdi.Item("level").Text, Integer) SubCategoryID = CType(gdi.Item("subcatid").Text, Integer) MsgBox("EditCommand on " & UserId & " " & UserName & " " & Level.ToString & " " & SubCategoryID.ToString) End Sub
Private Sub rgUsers_UpdateCommand(ByVal sender As Object, ByVal e AsTelerik.Web.UI.GridCommandEventArgs) Handles rgUsers.UpdateCommand Dim rg As RadGrid = CType(sender, RadGrid) Dim gdie As GridDataItem = CType(e.Item, GridDataItem) Dim UpdatedRow As Integer = gdie.ItemIndex Dim MasterTable As GridTableView = rg.MasterTableView Dim gdim As GridDataItem = MasterTable.Items(UpdatedRow) Dim cell As TableCell Dim i As Integer MsgBox(gdim.SavedOldValues("UserId").ToString) MsgBox(gdim.SavedOldValues("username").ToString) MsgBox(gdim.SavedOldValues("level").ToString) MsgBox(gdim.SavedOldValues("subcatid").ToString) i = 0 For Each cell In gdie.Cells MsgBox(i.ToString & " " & cell.Text) i += 1 Next i = 0 For Each cell In gdim.Cells MsgBox(i.ToString & " " & cell.Text) i += 1 NextEnd Sub
var txt = $find("<%= txtValue.ClientID %>");
var item = eventArgs.get_item();
var value = item.get_value();
switch(value)
{
case "CUST_NU":
txt.MaxLength = 8;
break;
case "NAME":
txt.MaxLength = 30;
break;
case "CIC":
txt.MaxLength = 4;
break;
case "INVOICE_NU":
txt.MaxLength = 10;
break;
}
Then checked for the maxlength via alert(txt.MaxLength) and it shows the new maxlength value but the textbox still doesn't change to the new length.
onclientRequestSuccess does not seem to have the updated firstDayStart(). I thought I had figured it out, but its not working:
As I navigate in the calendar, changing months, it does not reflect the right day - what am I doing wrong?
function onClientRequestSuccess(scheduler, eventArgs) { if (typeof loadList == 'function') { var start = scheduler.get_firstDayStart(); var end = start; var curView = scheduler.get_selectedView(); if (curView == 0) { // day view end.setHours(start.getHours() + 24); } else if (curView == 1) { // week view end.setHours(start.getHours() + (24 * 7)); } else if (curView == 2) { // week view end.setMonth(start.getMonth() + 1); // need to find out if we are on a Saturday.. If not, we need to add days until we get there } alert(start + " **- " + end); loadList(start.getTime(), end); }}protected void rgGeneralSearch_ItemDataBound(object sender, GridItemEventArgs e)<br> {<br><br> if (e.Item is GridDataItem)<br> {<br> GridDataItem gridDataItem = (GridDataItem)e.Item;<br> Button btnAdd =<br> (Button)gridDataItem["Add"].FindControl("btnAdd");<br> RadNumericTextBox txtQuantity =<br> (RadNumericTextBox)gridDataItem["Quantity"].FindControl("txtQuantity");<br><br><br> //btnAdd.Attributes["onclick"] = "btnAddClick('" + txtQuantity.ClientID + ", "+ rgGeneralSearch.MasterTableView.GetColumn("Code") + "')";<br> btnAdd.Attributes["onclick"] = "btnAddClick('" + txtQuantity.ClientID + "', '"+ e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Code"] +"')";<br> //btnAdd.Attributes["href"] = "#";<br> btnAdd.Attributes.Add("ajax", "");<br> }<br> }function btnAddClick(Quantity, Code) {<br> alert($get(Quantity).value);<br> alert(Code);<br><br> var SenderType = 1;<br> var SenderId = 22;<br> var ProductId = 333;<br> var CustomerId = 99;<br> var SalesmanId = 88;<br> var DiscSpecial = 23;<br> var TerminalNumber = 234;<br><br> var webMethod = "http://localhost:5261/WS/Basket_WS.asmx/InsertBasket"; <br> var parameters = "{'SenderType':'" + SenderType + "', 'SenderId':'" + SenderId + "', 'ProductId':'" + ProductId + "', 'CustomerId':'" + CustomerId + "', 'SalesmanId':'" + SalesmanId + "', 'Quantity':'" + 22 + "','DiscSpecial':'" + DiscSpecial + "','TerminalNumber':'" + TerminalNumber + "'}"; <br> $.ajax({<br> type: "GET",<br> url: webMethod,<br> data: parameters,<br> contentType: "application/json; charset=utf-8",<br> dataType: "json",<br> success: OnGetSuccess,<br> error: OnGetError<br> });<br>}