Monday, December 14, 2015

.NET Framework 3.5 feature + Specify an alternate source path

.NET Framework 3.5 feature + Specify an alternate source path error for SharePoint prerequisite installation error.




Try to install the following Windows update and it may fix your issues.

https://support.microsoft.com/en-us/kb/3002547

in cmd prompt try to enable.

open cmd window as Administrator and run the following command.
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All 

If still fails, try installing Powershell enable powershell and than add this feature. It will work.

Search for this error Code Error: 0x800f0906 and will give relavent steps to fix the issue. 

.NET Framework 3.5 feature + Specify an alternate source path

.NET Framework 3.5 feature + Specify an alternate source path error for SharePoint prerequisite installation error.




Try to install the following Windows update and it may fix your issues.

https://support.microsoft.com/en-us/kb/3002547

in cmd prompt try to enable.

open cmd window as Administrator and run the following command.
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All 

If still fails, try installing Powershell enable powershell and than add this feature. It will work.

Search for this error Code Error: 0x800f0906 and will give relavent steps to fix the issue. 

Thursday, May 07, 2015

Embrassing screen sharing interview : SharePoint

First time in 10 years I am attending new format of interview. Sharing your computer screen and writing code as per interviewer request.

For me to be frank, interviewer was really a good guy, Nicely spoken most understanding. But I am very nervous about exams right from childhood :)

This interview format is too much for me :) My interviewer was asked me to do very simple stuff write a c# code using SharePoint object model to set values in Choice field. Damn, I know the 5 lines of code. I don't know what happened at that time by I am totally blank :( It was so embarrassing for me and I cannot deliver what he asked. I don't know how to prove I am so much better than this. :(

This blog, I am writing after 1 hr of the interview. The code blow is the what is expected. Hope the code will compile I guess.


//get choice field instance

SPFieldChoice LeaveReason = (SPFieldChoice)myList.Fields["Reason"];

//set field format type

LeaveReason.EditFormat = SPChoiceFormatType.Dropdown;

//set the choice strings

LeaveReason.Choices.Add("Sick");
LeaveReason.Choices.Add("Long Service");
LeaveReason.Choices.Add("Casual");

//update the field

LeaveReason.Update();



//update list

myList.Update();

 
I am still cannot understand why I am this bad in interviews.

Sunday, April 19, 2015

Service Token Failure In SharePoint 2013 Farm

Service Token Failure


--





cls
 
 
# This command loads the Microsoft.SharePoint.PowerShell DLL.

# This DLL is required if you are using Windows PowerShell.
 
 
[string]$Snapin="Microsoft.SharePoint.PowerShell"

if ((Get-PSSnapin $Snapin -ErrorAction SilentlyContinue) -eq $null)



{
 
Write-Host "Loading Snapin: $Snapin";

Add-PSSnapin $Snapin



}
 
else
 
 
{
 
Write-Host "Snapin already loaded: $Snapin";



}
 
$h = Get-SPServiceHostconfig




 
$h.Provision()




 
$services = Get-SPServiceApplication




 
foreach ($service in $services) { $service.provision();

write-host $service.name}



Monday, March 09, 2015

STSADM Cmds for Cancel and redeploy Farm Solution


STSADM Cmds for Cancel and redeploy Farm Solution

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\BIN>
stsadm -o execadmsvcjobs
 
stsadm -o enumdeployments
 
stsadm -o canceldeployment -id
 
stsadm -o deletesolution -name .wsp -override

Start Central Administration Via PowerShell

Start the Central Administration via PowerShell

To list the Central Admin list in Farm

Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’}


 following code will start the Central Admin if its not started, if its started and online already it will show you a warning message.

cls
# This command loads the Microsoft.SharePoint.PowerShell DLL.
# This DLL is required if you are using Windows PowerShell.
[string]$Snapin="Microsoft.SharePoint.PowerShell"
if ((Get-PSSnapin $Snapin -ErrorAction SilentlyContinue) -eq $null)
{
Write-Host "Loading Snapin: $Snapin";
Add-PSSnapin $Snapin
}
else
{
Write-Host "Snapin already loaded: $Snapin";
}

Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’} | Start-SPServiceInstance

Hope this helps.  

ASP.NET MVC - Sport Facility Booking system

  The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...