•22 March 2016 • Leave a Comment
Sometimes, the content editor web part of SharePoint 2013 adds unwanted characters to the text within it. You check once, twice, remove any unnecessary line breaks, spaces etc., but after saving or in the HTML source of the page you find these weird characters: – the zero width spaces (& #8203;)
They can mess up your CSS layout, and frankly, I have not found a solution to force SharePoint not to insert them.
One possible workaround would be to remove them with a library like jQuery, e.g.
var theeditor = $(element);
The selector applies to the content editor webpart of SP2013.
Hope this helps.
•17 March 2016 • Leave a Comment
In SharePoint 2013, when creating a custom display template for an item, sometimes you need to know, which item in the whole search results list it is. In other words, you need the information of which item in the whole sequence that is, and perform your own logic according to the parameter.
I’ve looked for the property quite a while, but finally found it. It is called piSearchResultId.
Practically you can call it like that in your display template:
It’s value is similar to the following:
0_1 for first item in the list
1_1 for the second item
2_1 for the third item
…and so forth.
With such values you can extract the first number, and there you go!
Hope this helps,
•9 February 2016 • Leave a Comment
Recently, when debugging with Fiddler and Visual Studio 2015, I got a lot of requests in the Fiddler list, that weren’t relevant for the work I wanted to accomplish. Actually, they were making a mess, preventing me from finding the desired requests to inspect.
I am talking about the /vshub/… requests, and I mean really a lot of them, like dozens in a second, e.g.:
Continue reading ‘Fiddler full of /vshub/ requests’
•13 October 2015 • Leave a Comment
This is a very nasty error which happens from time to time on Windows 2008 R2 machines.
A user tries to logon to the machine via RDP, or perform a logout. The screen he sees is hanging with the following message:
Please wait for system event notification service
Of course, one solution is to reboot the machine.
What if it is not possible due to certain reasons?
You can read a lot about it on the web, but none of the solutions was suitable for me.
The first option is to go to run services.msc and try to restart the “System Event Notification Service“. In my case it failed with a message, that the service could not be restarted because it did not respond in a timely fashion.
Last resort, a bit hardcore, but working:
- On the machine, run the command prompt as an administrator
- type sc queryex sens
- you’ll get some properties, including the process ID (PID), e.g. 123.
- Now you can kill the process with following command: taskkill /PID 123 , using the PID from previous step
- You should get a message “SUCCESS: The process with PID 123 has been terminated.“
- If it still does not work, use the force parameter, like this: taskkill /PID 123 /F
- Then, go back to services list, and start the System Event Notification Service
Hope it helps.
•13 February 2013 • 10 Comments
recently I encountered a problem trying to start a Windows Phone Emulator from within Visual Studio 2012. In a WP8 project, starting a debugging session effected in loading the emulator box, but then right away stating the following:
The Windows Phone Emulator wasn’t able to connect to the Windows Phone operating system:
The emulator couldn’t determine the host IP address, which is used to communicate with the guest virtual machine.
Some functionality may be disabled.
The WP8 app did not start, all I could see was the main tiled page of the emulated phone. Additionally, Visual Studio reported an error: “Invalid pointer“.
Some sources on the web state that this might me caused by an interference between e.g. VPN client software and the emulator network usage. It was not quite what I would want to do, and luckily I found another solution:
- Started Hyper-V manager
- Virtual Switch Manager
- Removed the “Windows Phone Emulator Internal Switch” from the list, and applied the changes.
Starting the emulator afterwards required an elevation of privileges for the system in order to create the switch again, this time without any conflits.
Et voilá, emulator does not seem to have connectivity problems anymore, the debugging works as it should.
Hope it helps,
•24 January 2013 • Leave a Comment
Hi there, just a quick one this time.
Today I struggled for some time with a Facebook app, which was meant to display as a page tab. A basic functionality: take an external URL and display it within the page tab.
The problem was that the page was not appearing, although the server was publicly available and pasting the URL in a browser worked as expected. After some research, it came out that the URL using commas and semicolons in querystring has to be encoded, otherwise Facebook won’t like it.
Thus, changing from http(s)://www.example.com/page.html?a=1,2&b=3;4
seems to solve the problem and the page gets displayed.
Hope this helps,