Thursday, August 11, 2016

VM Ware failed to open issues, Failed to lock the file! VMWare vietual disk (vmdk)

Source: http://www.networknet.nl/apps/wp/archives/396/comment-page-1
I copied one of my Windows XP virtual machine running on a VMWare Server 1.02 system locally to my workstation. After the files were copied I opened the vmx file with VMWare Workstation 6 and received the following error below after trying to start the virtual machine. The virrtual machine contained one snapshot on the VMWare Server.

Cannot open the disk ‘C:\VM-machines\Windows XP-001\Windows XP Professional-000001.vmdk’ or one of the snapshot disks it depends on. Reason: Failed to lock the file.

clip_image002
Locate the virtual machine in Windows Explorer and delete any .lck folders
image
Start the virtual machine. If boot process will fail, try to Map the virtual hard disk to Z:\ for example.
image
clip_image008
I then disconnect the virtual hard disk and tried again. The virtual machine boot without any problem and my snapshot was still valid. Deleting the .lck folder saved me a lot of work.

Tuesday, August 9, 2016

Resolution for [Update panel buttons not triggering in SharePoint 2013 web part.] Change in Master Page

Resolution for [Update panel button not working in web part.]

Replace your <body> content with  below content with in SharePoint 2013 master page
 ------------------------------------------------------------------------------------------------------------
 Master Page issue

<body>
        <SharePoint:ImageLink runat="server" />
        <SharePoint:SPNoScript runat="server" />
        <SharePoint:SPClientIDGenerator runat="server" ServerControlID="DeltaPlaceHolderMain;DeltaPlaceHolderPageTitleInTitleArea;DeltaPlaceHolderUtilityContent" />
        <SharePoint:SharePointForm runat="server" onsubmit="if (typeof(_spFormOnSubmitWrapper) != 'undefined') {return _spFormOnSubmitWrapper();} else {return true;}">
            <script type="text/javascript"> var submitHook = function () { return false; }; theForm._spOldSubmit = theForm.submit; theForm.submit = function () { if (!submitHook()) { this._spOldSubmit(); } }; </script>
            <SharePoint:AjaxDelta ID="DeltaSPWebPartManager" runat="server">
                <WebPartPages:SPWebPartManager runat="Server" />
            </SharePoint:AjaxDelta>
            <asp:ScriptManager ID="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />
            <SharePoint:AjaxDelta ID="DeltaDelegateControls" runat="server">
                <SharePoint:DelegateControl runat="server" ControlId="GlobalNavigation" />
                <SharePoint:DelegateControl ControlId="GlobalSiteLink3" Scope="Farm" runat="server" Visible="false" />
            </SharePoint:AjaxDelta>
            <SharePoint:AjaxDelta ID="DeltaPlaceHolderPageTitleInTitleArea" runat="server">
                <asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server">
                </asp:ContentPlaceHolder>
            </SharePoint:AjaxDelta>
            <div id="sideNavBox" class="ms-dialogHidden ms-forceWrap ms-noList">
                <div class="ms-core-navigation">
                    <SharePoint:AjaxDelta ID="DeltaPlaceHolderLeftNavBar" BlockElement="true" CssClass="ms-core-navigation" role="navigation" runat="server">
                        <asp:ContentPlaceHolder ID="PlaceHolderLeftNavBar" runat="server">
                            <asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarTop" Visible="false" runat="server">
                            </asp:ContentPlaceHolder>
                            <asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchTop" Visible="false" runat="server" />
                            <asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarDataSource" Visible="false" runat="server" />
                            <asp:ContentPlaceHolder ID="PlaceHolderCalendarNavigator" Visible="false" runat="server" />
                            <asp:ContentPlaceHolder ID="PlaceHolderLeftActions" Visible="false" runat="server" />
                            <asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchBottom" Visible="false" runat="server" />
                        </asp:ContentPlaceHolder>
                    </SharePoint:AjaxDelta>
                </div>
            </div>
            <div id="TurnOnAccessibility" style="display: none" class="s4-notdlg noindex">
                <a id="linkTurnOnAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
                    <SharePoint:EncodedLiteral runat="server" Text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode" /></a>
            </div>
            <div id="TurnOffAccessibility" style="display: none" class="s4-notdlg noindex">
                <a id="linkTurnOffAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
                    <SharePoint:EncodedLiteral runat="server" Text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode" /></a>
            </div>