archive-nl.com » NL » M » MAVENTION.NL

Total: 609

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Find All Activated Web Analytics Features - Blog - Mavention
    Server 2013 even for a site collection in 2010 mode Remove any Web Analytics web parts or features from SharePoint Server 2010 site collections before upgrade Stopping and removing the service application is easy There is probably just one running However there could a lot of features activated if you have a large environment with lots of site collections I guess you ll need a script to do the hard work for you First of all what Web Analytics features are there In my browser favorites list I have a MSDN Blog post summarizing all SharePoint 2010 features http blogs msdn com b mcsnoiwb archive 2010 01 07 features and their guid s in sp2010 aspx So we have 8 features 2 are farm features 2 are for Central Administration and 4 are site collection features Basically the cmdlet Get SPFeature is all you need Take a look at the following code snippet Write Host Checking Farm WAEnterpriseFeatureStapler Web Analytics Enterprise Feature Stapler farmFeature Get SPFeature c0c2628d 0f59 4873 9cba 100dad2313cb Farm ErrorAction SilentlyContinue if Write Host tWeb Analytics Enterprise Feature Stapler NoNewline Write Host f Red Active The Get SPFeature checks if the given FeatureID is active in the Farm If not it throws an exception I like a readable output so long exception messages in read I like to handle that differently That s why I use the variable here It tells you is if the last command was successful True or unsuccessful False If the Get SPFeature commnd was successful the feature is active Next step is to loop through all web applications and site collections This is done using the cmdlet Get SPWebApplication Then loop through the Site Collections using the property Sites of a SPWebApplication object Take a look at the following code snippet allWebApps

    Original URL path: http://www.mavention.nl/blog/find-activated-web-analytics-features (2016-02-18)
    Open archived version from archive


  • New App in Town - Mavention Profile Info - Blog - Mavention
    contains an app part where the list of properties can be defined For each property the internal name and display name is provided For example FirstName First name LastName Last name WorkPhone Telephone number SPS Responsibility Ask Me About SPS HireDate Hire Date WebSite Web site If the Mavention Profile Info app is placed on the About Me page person aspx in the My Site Host site the properties of the selected user profile are shown Now available in the Office Store The Mavention Profile Info app is available in the Office Store now and is totally free of use Get your copy now Once the app is available in your App Catalog you can add it to any site but preferably on the My Site Host site For example Go to the site content page of the my site host site E g http my company com layouts 15 viewlsts aspx Click on the link Add an app Select the Mavention Profile Info app Wait a moment to let SharePoint finish installing the app Go to the About Me page and edit the page Click on the link Add a Web Part in the desired zone From the category

    Original URL path: http://www.mavention.nl/blog/app-town-mavention-profile-info (2016-02-18)
    Open archived version from archive

  • Programmatically check if SharePoint service is online - Blog - Mavention
    service is stopped then the code will throw the UserProfileApplicationNotAvailable exception on the first line of code If this code is part of a custom web part then it depends on how the exception handling is done whether the whole page is blocked or not with the familiar message Something went wrong When searching the net you will find plenty of examples how to retrieve services and their status using the cmdlet Get SPServiceInstance But that s PowerShell I needed C code The SPFarm object is the one I needed From this object I can retrieve all services Let s take a look at the following code snippet 1 2 3 4 5 6 7 8 9 10 11 12 13 14 public static bool IsOnlineService string typeName bool isOnline false SPService service SPFarm Local Services FirstOrDefault s s TypeName Equals typeName if service null SPServiceInstance instance service Instances FirstOrDefault i i Status SPObjectStatus Online isOnline instance null return isOnline This methods takes a string argument that contains the type name of the service like shown in the PowerShell cmdlet screenshot Then I call the SPFarm Local Services and use some LINQ magic to get the one I need For example the User Profile Service If a service is found I retrieve all the instances of that service and once again with some LINQ magic I get the ones with a status Online If an instance is found then the service is online Well I consider this the basics and I can image that their other scenarios to consider authorization perhaps Now we can change our first code snippet to something like this 1 2 3 4 5 6 7 8 9 10 11 12 13 14 UserProfileManager upm null if Utilities IsOnlineService User Profile Service upm new UserProfileManager SPServiceContext

    Original URL path: http://www.mavention.nl/blog/programmatically-check-sharepoint-service-online (2016-02-18)
    Open archived version from archive

  • Blog - Mavention
    all previous versions of SharePoint Aangemaakt op 16 7 2012 door Octavie van Haaften Custom SignIn and SignOut Page One of my customers has implemented an F5 Firewall and that firewall does the authentication for all user s that access SharePoint sites But if you have a claims based web application and FBA SharePoint will show you the regular sign in page Users will have to login again This post is about customizing the sign in page Aangemaakt op 12 6 2012 door Octavie van Haaften changing the application pool for existing web applications There are many articles about SharePoint 2010 and application pool management One of those topics is the number of application pools to be used by your SharePoint web applications There s no need to have an application pool for each web application Aangemaakt op 21 2 2012 door Octavie van Haaften Deploying solutions with Language Packs with PowerShell In previous post s I described deploying your solutions with PowerShell Lately I encountered the situation I had to deploy a solution language pack This is a regular WSP file with the same Solution ID as the original solution but containing localization resources for specific languages The purpose

    Original URL path: http://www.mavention.nl/blog?k=PublishingContactNameOWSTEXT%3a%22Octavie+van+Haaften%22&start=21 (2016-02-18)
    Open archived version from archive

  • Paging not correct when XsltListViewWebParts are added on page - Blog - Mavention
    items Paging controls are rendering fine except when on the last page The Previous button is not present so users cannot page back to previous items I have SharePoint 2013 SP1 running and this is my code snippet 1 2 3 4 5 6 XsltListViewWebPart announcementView new XsltListViewWebPart announcementView ID g announcementViewId Replace announcementView Title Team announcements announcementView ListName announcementList ID ToString B ToUpper announcementView ViewGuid announcementList Views TestPaging ID ToString B ToUpper wpmgr AddWebPart announcementView wpz 0 When I tried the wpmgr SaveChanges right after the AddWebPart call I got the NullReferenceException More time for searching the net was needed Then I stumbled on this article http sharepoint stackexchange com questions 103227 how to add a listviewwebpart by code Yep I have SP1 running Then I started ILSpy so I could analyse the SaveChanges code 1 2 3 4 5 6 7 8 9 10 11 public void SaveChanges WebPart webPart System Guid storageKey this WebPartManager GetStorageKey webPart this WebPartManager SaveChanges storageKey public Guid GetStorageKey WebPart webPart this ThrowIfNotOnPage webPart return WSSProps GetStorageKey webPart this AttachedProperties The call to ThrowIfNotOnPage triggered me While I was adding the webparts to the page using the SPLimitedWebPartManager the page itself was not yet in a final state What if I call the SaveChanges method for the XsltListViewWebParts after the page initially is provisioned In other words let s update the page when the first round of priovisioning is done I added the following code and called it after the page was fully provisioned and saved 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 private void UpdateAllXsltListViewWebParts SPWeb web try SPFile welcomePage web GetFile web RootFolder WelcomePage using SPLimitedWebPartManager wpmgr welcomePage GetLimitedWebPartManager PersonalizationScope Shared foreach System Web

    Original URL path: http://www.mavention.nl/blog/paging-correct-xsltlistviewwebparts-added-page (2016-02-18)
    Open archived version from archive

  • Beware of styling changes after SP1 - Blog - Mavention
    Different Styles Our intranet project has a custom masterpage and stylesheets The header of this intranet project looks like this It has a black header with the logged in user all in white After installing SP1 we noticed that some pages changed to this After some digging into what gets loaded it seemed that after our custom CSS the CoreV15 CSS got loaded as well now What component caused this

    Original URL path: http://www.mavention.nl/blog/beware-styling-sp1 (2016-02-18)
    Open archived version from archive

  • October 2013 CU issue with adding existing content database? - Blog - Mavention
    back to SSMS and opened the properties of the login SP Farm and then navigated to the page User Mappings It is noticeable that the farm account has not become the owner of the content database when using the October 2013 CU The log file shows several exceptions including one mentioning that the role db owner cannot be altered However when I add the existing database using PowerShell the farm account does become the owner Result Looking at the log file again I see the same exceptions in the beginning but altering the role db owner works just fine Now what happens when the SharePoint Farm service account does not own a content database I am still able to create site collections in that content database I have added regular users with contribute permissions on a team site Those users are able to add content to lists and libraries It is still not clear to me what account is used to connect and create update content in the SQL database I will dig into that another time For now it just doesn t feel right What about you Can you reproduce this issue and can you tell me what can go wrong Maybe services that run under the SharePoint Farm account such as OWSTimer Update I have run a SQL Profiler trace for the database PreCreated Content OctoberCU It shows that all actions are executed by two processes OWSTimer and W3WP using respectively the SharePoint farm administrator account and application pool account Then I executed some T SQL statements that showed the database roles and permissions for all database users None of these accounts have the db owner role but do have the role SPDataAccess Role Principle db owner dbo SPDataAccess MAVEN SP Farm SPDataAccess MAVEN SP Content This SPDataAccess

    Original URL path: http://www.mavention.nl/blog/october-2013-cu-issue-adding-existing-content-database (2016-02-18)
    Open archived version from archive

  • Pre-creating content databases or not? - Blog - Mavention
    do not want to lose everything when a drive dies You want to be back online as quick as possible Therefore you must think about your disaster recovery DR plan more than 1 second Also using different drives can give you a performance boost Before you click that OK button do make sure that the locations exist And you must restart the SQL Server instance to take the changes in effect Database settings Let s take a look at some database settings SQL Server uses the model system database as a template for creating database Let s check this model database settings Right click the model database and select Properties In the database properties window go to the page Files Take a good look at the Initial Size column For the data file mdf the initial size of the database is 3Mb You create SharePoint content databases to store more than 3 Mb don t you To have better performance you should increase that value Depending on the kind of content you expect in you SharePoint content database you can increase that value to perhaps 100Mb or even 1000Mb Remember this is the default setting for all new database Each database has this property as well and you can change it for that created content database if needed The same goes for the log file ldf Initially it is set to 1Mb You should increase that as well Especially when you use full recovery mode and I hope you do so in production The next column is Autogrowth What if more space is needed then available This setting automatically increases your database with the given value Now this seems wonderful but it comes with a price When SQL Server needs to grow a database you ll experience that performance decreases So be careful what setting you enter You do not want to grow too many times Growing every time with just 1Mb is just not a good idea You should know to some extend what the content growth could be over time Is it 10Mb per day or 10Gb a week This knowledge determines both the Initial Size and Autogrowth settings Let s do a test These are my settings for the model database I start Central Administration and I add a content database to my web application After adding the content database WSS Content IntranetDemo2 switch back to SQL Server Management Studio and open the properties page of this database Do you see it too The Initial Size settings are applied but the Autogrowth setting is not It is still that 1Mb So you have to adjust your database settings in SQL Server anyway Another great thing to do with SQL Server with your database that you cannot do with Central Administration is creating multiple data files for your database Storing each file on different disks you can gain more performance Click on the Add button to add additional files for your database Enter a logical name the location

    Original URL path: http://www.mavention.nl/blog/pre-creating-content-databases-or-not (2016-02-18)
    Open archived version from archive



  •