SharePoint: Web Application Creation Fails

If you have noticed after you have created a few web applications in SharePoint Central Administration, your new web application doesn’t complete it’s process normally and at the end you see an error message in a dialog saying it can’t find the following URL address.

But if you think that your site has been created successfully, well don’t keep your hopes up because it didn’t. The reason for this is because the more web application is created the time in which it takes to create a web application increases.  As part of the creation process, IIS is reset and by default, the application pool allows 90 seconds for the connections to close off before shutting down. When the number of web application grows above 90 seconds its not enough time for the provisioning to complete. You should have an idea or know how to use Microsoft SharePoint for collaboration to help your organization be more efficient and collaborative.

Don’t worry, I have done some searching around and found a resolution, by increasing the time longer before it shutdowns:

  1. On the same server that is hosting Central Administration, open IIS Manager.
  2. Expand the Application Pools section.
  3. Find the SharePoint Central Administration  application pool. Right click and choose Advance Settings.
  4. In the Process Model section set the Shutdown Time Limit to a higher value. Eg. 300
  5. Restart IIS.

Mini DisplayPort 1.2 to HDMI 2.0 UHD

So I have been trying to buy this adapter for months because Club3D ran out of stock, So just a couple a weeks ago I saw this available on Amazon, so I quickly bought one for my Surface Pro 4, for $30 US dollars plus shipping to Australia.

14052016_02

So you’re asking why did I buy it? Well in one of my previous posts, I blogged about my new 41.5 inch Ultra High Definition (UHD) TV which I am currently using as a monitor, but I was able to get the max resolution of 3840 x 2160 at 30Hz refresh rate. This resolution was just okay for coding and general use. But the problem appears when I’m trying to play some of the games I have in full screen with the max resolution, the game gets really slow.

14052016_03

This is an active adapter which will convert the Mini DisplayPort 1.2 signal to HDMI 2.0 with 60Hz. So now playing all the games in full resolution is awesome, everything runs really smooth and streaming games from my Xbox One.

Click Here if you want to buy one of these from Amazon.

 

Lumia 640, 5 months later…

So I have been actively using the Lumia 640 as my main mobile phone for 5 months now, with Windows 10 Insider’s Preview installed. I taken it overseas, to work, basically everywhere!

14052016_00I have been receiving regular updates for Windows 10 Mobile. Unfortunately not all features are currently working 100% and some are still buggy, which I completely understand. For exampleBluetooth on my car’s hands-free sometimes get cut out and back during the conversation and some custom lock screen features don’t work. But those are just some of the common features I use mostly on daily basis. (more…)

SharePoint: How To Create a SharePoint Permission Group and Add Users Programmatically

Using C# and SharePoint Object Model I will show you how to add a user to an existing or newly created SharePoint Permission Group.

I was working on a project that requires a domain user to be added to the site’s visitors group automatically base on events, and my project is developed in Microsoft Visual Studio so I need write some code to achieve this.

Below is an example code snippet that will show you how to to use SiteGroups.Add() to create a new SharePoint Group and assign the Read permission level by using RoleDefinitionBindings.Add(), add a default user and a group owner:

using (var spSite = new SPSite("SiteURL"))
{
	using (var web = spSite.OpenWeb())
	{
		var groupName = "Group Name";
		var groupDescription = "Group Description";
		var groupOwner = "contoso\\\jbloggs";
		var defaultUser = "contoso\\\jdoe";
		
		
		web.SiteGroups.Add(groupName, groupOwner, defaultUser, groupDescription);
		
		var group = web.SiteGroups[groupName];
		var spRoleAssignment = new SPRoleAssignment(group);
		var permissionName = "Read";
		
		spRoleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions[permissionName]);
		web.RoleAssignments.Add(spRoleAssignment);

		web.Update();
	}
}

(more…)

My Lumia 640

So last month my mobile contract finished and have been thinking about buying a new mobile phone. I have been looking at getting the Windows Lumia 640 for a while, so I did some research and reading up a lot on reviews.

20160124_020637Just at the beginning of the new year 2016 Dicksmith was clearing out the Lumia 640 prepaid phone for only $99.

Since I have moved over to Optus as my provider, I made the jump and bought myself a new mobile phone.

Straight away I downloaded the Microsoft Insider’s App and upgraded my mobile to Windows 10. The look and feel is consistent with the desktop version, but the only disappointment I had was the lack of apps for windows mobile compared to Android and iOS. I was so disappointed that I couldn’t find any of the apps I used to have on my old Android phone. (more…)

Shares