March 28, 2012

Managed metadata service not working

Problem:

The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator

Solution:

After googling for many hours, I was able to fix this problem. Here is the check list to fix it properly.

1.Make sure managed metadata service application pool is started in IIS
2.Make sure managed metadata service aplication pool identity has full access on service's physical folder
3.Go to central admin > Service applications > select managed metadata srevice and click on administrators. Add local farm and system account users to this list
4.Go to central admin > Service applications > select managed metadata service and lcick on permissions, add local farm and system account and allow full control for this
5.reset IIS


Note: Please note that we are trouble shooting this on a developer machine and giving local farm and system administrator account full access doesn't cause any problem, please use appropriate accounts for the same.

Happy administration

If you have any questions you can reach out our SharePoint Consulting team here.

jQuery.find not working in IE7 for xml data

As part of troubleshooting a shareoint functionality, we found that jQuery.find not working.

We were using jQuery.ajax to call a sharepoint web service and in success function, finding an element in response xml to render it on div.

We fixed this and there are couple of options to fix this that we found from stackoverflow.

1. add dataType: 'xml​' in jQuery.ajax and that will fix it.

2. in response, check for browser is IE7 and variable that is having data is blank, do it with another method, here is javascript code:


if ($.browser.msie && liHtml == "") {
xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.loadXML(response);
liHtml = $("XmlTagNameToFind",xml).text();
}

"liHtml" is the variable which has jQuery.find().text() output.

I hope this will help you as well.

If you have any questions you can reach out our SharePoint Consulting team here.

SP.UI.ModalDialog.showModalDialog not working in chrome

In some version of browser, using will not work due to some reason. I found an alternate method to solve this problem, here is the javascript code:

var dialogSP = null;
if (SP.UI.ModalDialog.showModalDialog) {
dialogSP = SP.UI.ModalDialog.showModalDialog(options);
} else {
dialogSP = SP.UI.ModalDialog.commonModalDialogOpen(countryUrl, options, null, {});
}

If you have any questions you can reach out our SharePoint Consulting team here.