Posts

JQuery UI Dialog: Cannot call methods on dialog prior to initialization

My current project (using Angular JS on SharePoint 2010) requires a modal dialog window with some data passed between the different modules. We used dialog-service  from GitHub, which is a great utility for this purpose. All was great until I deployed the solution to a new environment. Suddently, my modal dialog stopped working and was complaining about 'initialization' issues. I stepped through the code and found that the initialization code was being called and  dialog.ref.is(':data(dialog)') was returning true. So what was different? To cut a long story short, the culprit was the Document ID Service (which was enabled on the new environment). It was appending text to the HTML, which was causing all the problems. Two solutions presented themselves: 1. Disable the feature (not likely) or 2. trim the appended text: if (html.indexOf('<html xmlns:') >= 0)    html = html.substring(0, html.indexOf('<html xmlns:')){ } I chose the lat...

Why are my accounts always locking/not authenticating when connecting to an old site in Windows 7?

I recently changed my password and found that all of my old connections were failing. And I was not being prompted to enter new credentials. Fortunately, the fix is pretty simple. Windows 7 has a Credential Manager (in the Control Panel) that stores all the saved information. I updated the relevant passwords and all was well with the world.

SharePoint 2010: How do I set the value multi select lookup column?

A seed data script I was writing required a multi value selection lookup column to be pre populated. Setting a single value is simple - use <Id>;#<Text> - and all is well. But how do you set multiple values? The solution is just as simple; use ;# as the delimiter between items. For example, you could set your column with the following: <ID1>;#<Text1>;#<ID2>;#<Text2> Semi-colon Hash (;#) is the delimiter of choice.

SharePoint 2010: How do I install SharePoint Server on Windows 7?

Once you have download SharePointServer.exe, you will need to extract the files from the executable. From the command prompt run: SharePointServer.exe /extract:c:\sp2010\ This will extract the installation files. Second, you need to 'enable' a Windows 7 installation. In order to do this, you will need to edit one of the configuration files. Navigate to C:\sw\sp2010\Files\Setup and add the following line to the bottom on the config.xml (before the closing Configuration tag). <Setting Id="AllowWindowsClientInstall" Value="True"/> You should be good to go IF YOU HAVE SQL SERVER 2008 R2. If you are running SQL Server 2012, you will need SharePoint Server 2010 SP1.

MVC 4: The required anti-forgery form field "__RequestVerificationToken" is not present

It seems the best things in life come in pairs: If you have a ValidateAntiForgeryToken annotation in your controller, you need to have a @Html.AntiForgeryToken() in your view.

Windows Server 2012: Why cant I install Windows Server 2012 RTM on a Virtual Box?

I encountered this problem today while setting up a SharePoint 2013 Development environment. The solution is to run a simple command: "C:\Program Files\Oracle\VirtualBox\VBoxManage" setextradata [vmname] VBoxInternal/CPUM/CMPXCHG16B 1 For example, my Virtual Box was called SP2013, so my command was: "C:\Program Files\Oracle\VirtualBox\VBoxManage" setextradata SP2013 VBoxInternal/CPUM/CMPXCHG16B 1

Why cant I add a new web application is my Windows 7 Sharepoint environment?

I recently installed a test environment on my Windows 7 laptop [using New-SPConfigurationDatabase] but I was unable to add a new Web Application. I created a new user, added it to the Local Administrators group. Two issues were apparent: A. I could not add a new Farm Administrator as 'I needed Local Administrator rights' [from the ULS] B. I could not create a new Web Application [due to security trimming] The solution lies in the OOTB Administrator account that is provisioned in the Windows 7 installation; it is deactivated by default. I activated the account and, presto, used its credentials to perform all the required activities.