SharePoint 2010–Sandboxed Solutions Not Running On Server

So this one took a couple of days.

Long story short, This was showing up in the ULS logs:

SPUCHostService.exe (0x23E8) 0x17B4 SharePoint Foundation Sandboxed Code Service fe8a Medium – – Unable to activate worker process proxy object within the worker process

Did a little searching around, found this script.  Still not totally sure what the ramifications are by allow full control of this registry entry and how insecure I’ve just made my environment, but long story short, it works!

$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName 
$person = [System.Security.Principal.NTAccount]"Users" 
$access = [System.Security.AccessControl.RegistryRights]::FullControl 
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
$propagation = [System.Security.AccessControl.PropagationFlags]::None 
$type = [System.Security.AccessControl.AccessControlType]::Allow 
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
$acl.AddAccessRule($rule) 
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl

SharePoint 2010 – Application pools recycle when memory limits are exceeded (PART 2)

Recently I started seeing this error show up in the Health Analyzer after consolidating some of my SharePoint application pools so as to conserve some server resources.  On this particular farm we had set up a main collaboration site running under it’s own application pool, and then about a dozen web applications that contained custom coding that we ended un consolidating under another application pool.

Now there are actually several reasons for this error to occur.  If you’ve set up a large farm and broken out your app server from your WFE servers, then this error is pretty standard as Microsoft has this rule set up as an all or nothing type rule as documented here.

However, another reason for this error message coming up is if you’ve consolidated your application pools and reassigned your web applications to use one generic pool, while you can safely delete these application pools, SharePoint is still looking for them in order to verify their existence and proper settings.  When it can’t find them, that is when it gives you the MSCryptic and quite wrong error message that there is a problem with the application pool recycle settings.

In order to “fix” the alert, first you need to check and see what application pools the SharePoint farm is still expecting on the servers, to get this list you can open a PowerShell console and enter the following:

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService.ApplicationPools | fl Name, ID

In my case, there were several application pool entries that existed in the ApplicationPools collection whose Web Application had already been reassigned to my GenericPool application pool, and in some case I had already deleted from the servers or showed as having 0 applications connected to them.  These ApplicationPools entries were literally just hanging around with nothing to do other than set off my HA alerts.

The solution is to go through and remove the entries from the ApplicationPools collection so SharePoint HA does not try to iterate through them and check their health settings:

$contentService.ApplicationPools.Remove("<insert application pool ID>")

And now, go into SharePoint Central Admin->Monitoring->Review Problems and Solutions and recheck the "Title Application pools recycle when memory limits are exceeded. " warning, it should go away in a minute or two.

Windows 8–Walkthrough on Building a Windows Store App

No, I’m not going to give you a step by step of how to create the apps here, there is already a great walkthrough located on Microsoft’s site here: http://msdn.microsoft.com/en-us/windows/jj679957

I ran through a few of their tutorials in the last couple of days with regards to XAML and C# in Visual Studio 2012.

I built the traditional “Hello World” application.  It is a nice walk through and of course got to the basics of developing an app for windows 8.  Biggest impression I was left with is that while you may already know how to code an application to function on the Windows platform, the biggest new hurdle will be managing the application state on load, suspend and terminate and handling the presentation visual states for FullScreenLandscape, Filled, FullScreenPortrait and Snapped.  Storyboarding transitions and animations also play an important role in giving the application a polished look.

 

 image

The second application I walked through was the Blog Reader application.  It also is a pretty good walkthrough that really focuses on the transitions and orientations.  However, unlike the previous Hello World I really found myself lost on a couple of the steps.  It was great that they had the full set of code and I could walk through each component, but I really found myself doing the code cut-and-paste, running the app to make sure I pasted in the right spot, and then going off on tangents to figure out why what I just pasted worked and what it actually did.  I swear they probably could have made an entire book out of Part 5 of one of their walkthrough articles.  What I learned from this walkthrough more than anything was that I really need to go off and learn the heck out of how XAML works and is structured for data presentation if I want to be involved with creating a decent UI for a windows store app.

 

image

Overall, I am very excited to learn more and brush up on my UI design skills.  I think with the new interface and layouts it is going to lead to some fun ways of surfacing information and creating some interesting usability situations with some of these applications.  And while the learning curve for developing apps is somewhere between a C# developer and a XAML/Web developer, because this is being developed in the Visual Studio 2012 IDE, it is a pretty comfortable environment for most of us who are used to Microsoft technologies and everything is pretty familiar with a couple extra bells and whistles.  I particularly like how we can start debugging the app in the “simulator” mode and get the on screen image of the Surface to play around with as if it was on the physical device.

I’m hoping this year to have my first Windows Store App published.  First step on that journey has been started and I’ll post more as I walk, run and crawl down this road.

image

Reminder: San Diego SharePoint User Group (SanSpug.org) – Meeting on Tuesday 2/5 at 6pm

Dear SharePoint Colleagues,

Join us for the San Diego SharePoint User Group (SanSpug) meeting on Feb 5th, 2013 at 6PM. Our meeting will include the following topics:

·         Introduction to SharePoint 2013 Search

SanSpug meetings are held at New Horizons Learning Centers and start at 6:00 PM.  Be sure to tell your business colleagues and friends!

7480 Miramar Road

San Diego, CA


Feb 2013 Featured Speaker(s):

Zlatan Dzinic, SharePoint MVP, Hitachi Consulting

Zlatan will review and demonstrate the new features of SharePoint 2013 Search.

Sponsored by:

clip_image001 clip_image002 clip_image004

The San Diego SharePoint User Group (SanSpug) was founded to serve the unmet needs of the Southern California SharePoint Community.  We are a formally structured group made up of members and an elected executive team.  Meetings are free to attend by all, but access to our more exclusive content and events will be presented only to our valued members.  The SanSpug mission is to strive to show and display unique and highly targeted SharePoint content of all flavors.  The information you will walk away with from our meetings will always be rich and interesting!

Meeting Agenda:

Time      

6:00 – 6:30 pm      Social Networking

6:30 – 6:45 pm      Opening welcome

6:45 – 8:30 pm     SharePoint Search 2013

8:30 – 8:45 pm      Closing Announcements

8:45 – 10:00          After meeting socializing in La Jolla

For more information, please see San Diego SharePoint Users Group, or contact Chris Givens at chris@sanspug.org.  Also check out our Social Pages:

clip_image006 clip_image007 clip_image008