locked
Index was outside the bounds of the array RRS feed

  • Question

  • User1003154671 posted

    Hello,

    I go to files tab of WebMatrix 2 and double click a php file then I see "index was outside the bounds of the array" message on screen. If I do right click to php file and click "Open with WebMatrix", WebMatrix 2 starts not responding. It seems there is a problem with "Microsoft.Html.Editor.HtmlEditor".

    Faulting application name: WebMatrix.exe, version: 7.1.1307.1, time stamp: 0x4e694933
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7bafa
    Exception code: 0xe0434352
    Fault offset: 0x0000b727
    Faulting process id: 0xbb4
    Faulting application start time: 0x01cc85c6bb1f239f
    Faulting application path: C:\Program Files (x86)\Microsoft WebMatrix\WebMatrix.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: 07e8d2ed-f1bb-11e0-bc22-00155d683827


    Application: WebMatrix.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IndexOutOfRangeException
    Stack:
       at Microsoft.Html.Core.DefaultHtmlClosureProvider.AddElements(System.String[][], System.String[])
       at Microsoft.Html.Core.DefaultHtmlClosureProvider..ctor()
       at Microsoft.Html.Core.HtmlClosureProvider..ctor()
       at Microsoft.Html.Core.HtmlTree..ctor(Microsoft.Web.Core.ITextProvider, Boolean, Microsoft.Html.Core.ArtefactCollection)
       at Microsoft.Html.Editor.HtmlEditorTree.Init(Microsoft.Web.Core.ITextProvider, Boolean, Microsoft.Html.Core.ArtefactCollection)
       at Microsoft.Html.Editor.HtmlEditorTree..ctor(Microsoft.VisualStudio.Text.ITextBuffer, Microsoft.Html.Core.ArtefactCollection)
       at Microsoft.Html.Editor.HtmlEditorDocument..ctor(Microsoft.VisualStudio.Text.ITextBuffer, Microsoft.Web.Editor.Workspace.IWebWorkspaceItem)
       at Microsoft.Html.Editor.HtmlTextBufferFactory.CreateTextBuffer(Microsoft.Web.Editor.Workspace.IWebWorkspaceItem, Microsoft.VisualStudio.Text.ITextBuffer)
       at Microsoft.WebMatrix.Editor.EditorVisualStudio.CreateTextDataModel(System.String, Microsoft.VisualStudio.Utilities.IContentType)
       at Microsoft.WebMatrix.Editor.EditorVisualStudio.CreateTextViewHost(System.String, System.String, Microsoft.WebMatrix.Editor.Extensibility.IDefaultTextEditorFactory, Boolean)
       at Microsoft.WebMatrix.Editor.EditorVisualStudio..ctor(Microsoft.WebMatrix.Editor.ModuleGlobals, System.String, System.String, Boolean)
       at Microsoft.WebMatrix.Editor.EditorFactory.CreateTextEditor(System.String, System.String)
       at Microsoft.WebMatrix.FileEditor.EditorView.CreateEditorView(Microsoft.WebMatrix.FileEditor.ModuleGlobals, System.String, Microsoft.WebMatrix.Utility.CodePage, Microsoft.WebMatrix.FileEditor.NavigationRequestData)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFileInEditor(Microsoft.WebMatrix.FileEditor.FileDetails, Microsoft.WebMatrix.FileEditor.NavigationRequestData)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.HandleNavigationRequest(System.Object)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.OpenFileInternal(Microsoft.WebMatrix.FileEditor.NavigationRequestData)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.Microsoft.WebMatrix.Core.IFileEditorModule.OpenFile(Microsoft.WebMatrix.Core.HierarchyInfo, Microsoft.WebMatrix.Core.OpenMode)
       at Microsoft.WebMatrix.FileEditor.HierarchyCommandTarget.ExecuteForceOpenInEditor(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Editor.CommandTargetBase.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.FileEditor.FileEditorHierarchyProvider.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.HierarchyProvider.Microsoft.WebMatrix.Core.ICommandTarget.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.HierarchyPanelWPF.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.Workspace.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.LeftPanel.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.ManagementFrameWPF.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.CommonShellCommands.Microsoft.WebMatrix.Core.ICommandTarget.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.ShellMainWPF.Microsoft.WebMatrix.Core.ICommandTarget.Execute(Microsoft.WebMatrix.Core.Command, System.Object)
       at Microsoft.WebMatrix.Core.CommandManagerImplementation.ExecuteInternal(Microsoft.WebMatrix.Core.Command, System.Object, Boolean)
       at Microsoft.WebMatrix.Core.CommandManagerImplementation.Execute(Microsoft.WebMatrix.Core.CommandId, System.Object)
       at Microsoft.WebMatrix.Core.HierarchyPanelWPF.ExecuteMenuItem(MenuItemData)
       at Microsoft.WebMatrix.Core.HierarchyPanelWPF.ContextMenuItemClicked(System.Object, System.Windows.RoutedEventArgs)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
       at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
       at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
       at System.Windows.Controls.MenuItem.InvokeClickAfterRender(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.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
       at System.Threading.ExecutionContext.runTryCode(System.Object)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       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.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(System.Object)
       at System.Windows.Application.RunInternal(System.Windows.Window)
       at System.Windows.Application.Run(System.Windows.Window)
       at Microsoft.WebMatrix.Core.WebMatrixShellApplication.Execute(Boolean, Boolean, Boolean, Boolean)
       at Microsoft.WebMatrix.Core.ShellApplicationHelper.Microsoft.WebMatrix.Core.Interop.IShellApplication.Execute(Int32)
       at Microsoft.WebMatrix.Core.ShellApplicationHelper.Execute()
       at Microsoft.WebMatrix.EntryPoint.Main()

    Any workaround or hotfix for this? I've tried on two different servers and results are same.

    Server1: Windows 7 x64

    Server2: Windows Server 2008 R2

    Thanks.

    Saturday, October 8, 2011 10:44 AM

All replies

  • User1003154671 posted
    BTW, I removed WebMatrix 2 completely and install WebMatrix 1. There is no problem on WebMatrix 1 editor. After that, i upgraded it to WebMatrix 2. Then Editor starts to give error again.
    Saturday, October 8, 2011 11:26 AM
  • User-1672167363 posted

    Hello,

    I suggest you contact the IIS Team Web Matrix Project Manager   Simtan    http://forums.iis.net/members/simtan.aspx via

         PM or Email to find out how to prepare a Crash Dump to be submitted with your log.

    With the combination of  Crash Dump log information they can help resolve  the issues.

    HTH

    Martin

      

     

    Saturday, October 8, 2011 1:00 PM
  • User797879709 posted
    If it is possible, can you please share the PHP file that you're attempting to open with us? This will help us investigate the problem. Thanks! -Robert
    Saturday, October 8, 2011 6:06 PM
  • User-1672167363 posted

    Hi,

    I suggest you post the PHP code that is causing problems.

    I suggest you uninstall the Web Matrix IIS Express and related items.

    I suggest you get Piriforms CCleaner to clean-up the left-overs for  problems with missing shared dlls

        and registery keys.

    Then using the Web Platform Tool clean the installer cache and do a fresh install

    of the Web Matrix Beta 2 from http://forums.iis.net/t/1181659.aspx the links in the Next page.

    Start with the regular templates and Web Sites then move to the PHP based pages.

    You need to be doing coding and not trouble shooting.

    Martin

     

     

    Friday, October 14, 2011 8:23 PM
  • User-1672167363 posted

    Hi,

    Have you looked at this Web Matrix  http://forums.iis.net/t/1175918.aspx information ?

    You can login to the Microsoft Connect Web site and create

     report(s)  and one of the Web Matrix Engineers can try and reproduce the problems

    your having and suggest what to install / repair or if there is a HotFix for

    the problems.

    Martin

     

     

    Friday, October 28, 2011 10:51 AM
  • User1003154671 posted

    Hello,

    Language and Region settings causes the issue.

    Go to:
    Control Panel -> Language and Region Settings -> Formats

    Change format as "Turkish".

    I haven't tested with other languages like German, but if you use other than English, you can't use WebMatrix 2. I believe this is an important bug and should be fixed soon. Because no one wants to change Format.

    Thanks.

    Yusuf.

    Monday, December 12, 2011 1:03 PM
  • User-1672167363 posted

    Hi Yusuf,

    Thanks for updating this thread.

    Please look at Web Matrix information http://forums.iis.net/t/1175918.aspx 

    and logon to the https://connect.microsoft.com/webmatrix/feedback Connect Web Matrix site

    and create a Feed Back report.

    I agree it is important to report bugs and have them fixed.

    Let the Experts at Connect do the testing "with other languages like German".

    Yes "Because no one wants to change Format."

    Thanks,

    Martin

     

    Tuesday, December 13, 2011 2:12 PM