Monthly Archives: January 2015

SharePoint 2013 Hosting – ASPHostPortal.com :: Cannot find an SPWeb object with Id or URL

You’ve logged into a farm server with the SharePoint Setup User Administrator account.  You’ve opened a SharePoint management shell with elevated privileges.  You are attempting to import a document library using the SPWeb object but experience this error:

ahp banner sharepoint-01

    Import-SPWeb : Cannot find an SPWeb object with Id or URL : <URL>…

This can occur when the account you are logged in as has not been added to the SharePoint_Shell_Access role of the content and/or farm configuration databases.  Generally, you want your administrator account to be added to this role for all farm content databases and the farm configuration databases so that you can manage them from a PowerShell.

In the following procedure, you will first get the GUIDs associated with the content databases.  Then, you will check each content database and the farm configuration database for the accounts that have had the SharePoint_Shell_Access role added to them.  Lastly, you will add the role to the desired account for each database.

Solutions

  1. Note down the following information:
    1. The account you used trying to perform the import that resulted in the error (call it User.Account)
    2. The name of the content database containing the site into which you wanted to perform the import (call Content_A).
  2. Login to a SharePoint farm server using the SharePoint Setup User Administrator account.
  3. Launch an elevated instance of the SharePoint 2013 Management Shell.
  4. Execute Get-SPContentDatabase.  This returns a list of all farm content databases, along with summary information and including the database GUID.
  5. Note down the content databases and their GUIDs.
  6. Execute Get-SPShellAdmin <GUID> for each GUID noted in step 5).  This will return a list of all user accounts added to the SharePoint_Shell_Access role for that database.
  7. Note down where the account in step 1) above is missing from the role.
  8. Execute: Get-SPShellAdmin.  This will return a list of all user accounts added to the SharePoint_Shell_Access role for the farm configuration database.
  9. Execute: Add-SPShellAdmin -UserName DOMAIN\User.Account <GUID> for each content database identified in step 5). Executing this command adds this role for both the content database and for the farm configuration database.

    If you experience an error trying to add this role to that account, perform the steps in this reference.

  10. Repeat step 6) – 8) to verify that the SharePoint_Shell_Access role has now been added to the desired account.

Best SharePoint 2013 Hosting Recommendation

Following reviewed for Best ASP.NET hosting companies that help with SharePoint 2013, ASPHostPortal is Best ASP.NET Hosting Recommendation for SharePoint 2013. They give 99,99% uptime assured, as well as 30 Days Money back assured, superb customer service, and many more.

SharePoint Hosting :: How to Configure Page Output Caching in SharePoint 2013

This article will explains you how to configure page output caching in SharePoint 2013. In a normal operation, SharePoint generates ASP.NET pages dynamically from page templates and database content. These ASP.NET pages are then converted into HTML and sent to the client browser. This is a resource-intensive process. Page output caching stores the HTML output for specific SharePoint pages in memory, so that SharePoint does not need to regenerate a commonly-requested page every time.

ahp banner sharepoint-01
In addition, the page output cache can also store various versions of the same page. For example, anonymous users and authenticated users may see various versions of a specific page. SharePoint is able to cache both versions so requests from either type of user can be served without regenerating the page. Page output caching in SharePoint applies only to publishing pages. You configure page output caching at the site collection level through the Site Settings menu. The page output caching settings are only available if:

  • The SharePoint Server Publishing Infrastructure site collection-level feature is enabled.
  • The SharePoint Server Publishing site-level feature is enabled.

When it ideal to use page output cache

Page output caching can improve the speed at which commonly-requested pages are served and it can reduce the resource overhead associated with generating a page from database content. However, it does create a memory overhead on WFE servers, because cached pages are stored in memory. Generally speaking, page output caching is more suitable for publishing sites in which many users are likely to see the same content. There is little benefit to enabling page output caching on sites where the user experience is heavily individualized.

Page output cache profiles

You configure page output caching through cache profiles. Cache profiles specify the criteria used to perform caching, such as the retention period, whether items in the cache should be security trimmed and whether various page versions should be cached for specific parameters, HTTP headers, or query strings. When you enable page output caching, you select the cache profile you want to use for that site collection, site, or page layout. You can specify different cache profiles for anonymous and authenticated users.
Use the following procedure to create a new cache profile:

  1. On the root site for your SharePoint site collection, on the Settings menu, click Site settings.
  2. On the Site Settings page, under Site Collection Administration, click Site collection cache profiles.
  3. On the Cache Profiles page, click new item.
  4. Specify the criteria for you cache profile and then click Save.

Enabling page output caching

You can configure page output caching at the site collection level, the site level, or the page layout level.
The site collection-level settings specify default caching settings for the entire site collection. You can then override these settings where required at the site level or the page layout level.

Use the following procedure to configure page output caching at the site collection level:

  1. On the Settings menu, click Site settings.
  2. On the Site Settings page, under Site Collection Administration, click Site collection output cache.
  3. On the Output Cache Settings page, select Enable output cache.
  4. Under Default Page Output Cache Profile, on the Anonymous Cache Profile and Authenticated Cache Profile drop-down lists, click the required cache profile (or click Disabled).
  5. If you want individual sites to be able to override the default cache profile, under Page Output Cache Policy, click Publishing sites can use a different page output cache profile.
  6. If you want individual page layouts to be able to override the default cache profile, under Page Output Cache Policy, click Page layouts can use a different page output cache profile.
  7. If you want to include caching details on the SharePoint Developer Dashboard, under Debug Cache Information, click Enable debug cache information on pages.
  8. Click OK.

Configuring page output caching at the site level

Use the following procedure to configure page output caching at the site level:

  1.  On the Site Settings page, under Site Administration, click Site output cache.
  2.  On the Published Site Output Cache Settings page, under Anonymous Cache Profile, choose whether to inherit the default site collection cache profile or select a different cache profile.
  3.  On the Published Site Output Cache Settings page, under Authenticated Cache Profile, choose whether to inherit the default site collection cache profile or select a different cache profile.
  4.  Click OK.

Configuring page output caching at the page layout level

Use the following procedure to configure page output caching for individual page layouts:

  1. On the Site Settings page, under Web Designer Galleries, click Master pages and page layouts.
  2. On the Master Page Gallery page, locate the page layout you want to configure and then on the drop-down menu, click Edit Properties.
  3. In the Authenticated Cache Profile drop-down box, click the cache profile you want to use.
  4. In the Anonymous Cache Profile drop-down box, click the cache profile you want to use.
  5. Click Save.

 No#1 Best Recommended SharePoint 2013 Hosting

ASPHostPortal.com

ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

SharePoint 2013 Hosting – ASPHostPortal.com :: The Given Key Was Not Present in the Dictionary

You are attempting to register a new managed account to your SharePoint Server 2013 farm.  After entering the account details, and then clicking OK, you see the error, The given key was not present in the dictionary.

ahp banner sharepoint-01 Continue reading

ASPHostPortal.com Proudly Announces Umbraco 7.2.1 Hosting

ASPHostPortal.com, The Best, Cheap and Recommended ASP.NET Hosting offers Umbraco 7.2.1 Hosting with a combination of affordable price, excellent network, and 30 days money back guarantees. ASPHostPortal.com also provides full trust web hosting services for Umbraco 7.2.1 site.

Umbraco is a fully-featured open source content management system with the flexibility to run anything from small campaign or brochure sites right through to complex applications for Fortune 500′s and some of the largest media sites in the world.

Umbraco is easy to learn and use, making it perfect for web designers, developers and content creators alike. Umbraco is strongly supported by both an active and welcoming community of users around the world, and backed up by a rock-solid commercial organization providing professional support and tools. Umbraco can be used in its free, open-source format with the additional option of professional tools and support if required.

ASPHostPortal.com, a windows-based hosting service provider offers the most reliable and stable Umbraco 7.2.1 web hosting infrastructure on the net with great features, fast and secure servers. They has built the network like no other hosting company. Every facet of the network infrastructure scales to gigabit speeds with no single point of failure. All of windows hosting plan supports Umbraco 7.2.1 and customers can install it with just one click.

ASPHostPortal.com offer professional Umbraco 7.2.1 site start from $5/month. The following are the reasons why the customers choose and keep trust with their service:

High Performance and Reliable Server
They never ever overload the server with tons of clients. They always load balance the server to make sure they can deliver an excellent service, coupling with the high performance and reliable server.

Daily Backup Service
They realise that customer’s website is very important to their business and hence, they never ever forget to create a daily backup.

Best and Friendly Support
Their support team is extremely fast and can help you with setting up and using Umbraco 7.2.1 on your account. Their customer support will help you 24 hours a day, 7 days a week and 365 days a year.

ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. With the Umbraco 7.2.1 in their hosting deal will make ASPHostPortal continue to be the Best ASP.NET hosting providers. To learn more about Umbraco 7.2.1 Hosting, please visit http://asphostportal.com/Umbraco-Hosting

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. ASPHostPortal.com has ability to support the latest Microsoft and ASP.NET technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. ASPHostPortal include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and architecting highly scalable solutions. ASPHostPortal.com strives to supply probably the most technologically advanced hosting solutions available to all consumers the world over. Protection, trustworthiness, and performance are on the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.

46. Click on SharePoint 2013 Products ...  from all apps

SharePoint 2013 Hosting :: How To Insert Items Into a SharePoint Host Web List Using SharePoint Hosted APP

This article explains how to insert items into a SharePoint Host web list using SharePoint hosted APP.  I would like to share the code to insert items into a host web list using JavaScript.
Use the following JavaScript code to insert an Item:

ahp_freehostSHP(1)

var hostWebUrl;
var appWebUrl;
// This code runs when the DOM is ready and creates a context object which is needed to use the SharePoint object model
$(document).ready(function ()
{
hostWebUrl = decodeURIComponent(manageQueryStringParameter(‘SPHostUrl’));
appWebUrl = decodeURIComponent(manageQueryStringParameter(‘SPAppWebUrl’));
//Insert method
InsertItemToList();
});
//This function is used to get the hostweb url
function manageQueryStringParameter(paramToRetrieve)
{
var params =
document.URL.split(“?”)[1].split(“&”);
var strParams = “”;
for (var i = 0; i < params.length; i = i + 1)
{
var singleParam = params[i].split(“=”);
if (singleParam[0] == paramToRetrieve)
{
return singleParam[1];
}
}
}
//Insert List Item to SP host web
function InsertItemToList()
{
var ctx = new SP.ClientContext(appWebUrl);//Get the SharePoint Context object based upon the URL
var appCtxSite = new SP.AppContextSite(ctx, hostWebUrl);
var web = appCtxSite.get_web(); //Get the Site
var list = web.get_lists().getByTitle(listName); //Get the List based upon the Title
var listCreationInformation = new SP.ListItemCreationInformation(); //Object for creating Item in the List
var listItem = list.addItem(listCreationInformation);
listItem.set_item(“Title”, “Title1″);
listItem.update(); //Update the List Item
ctx.load(listItem);
//Execute the batch Asynchronously
ctx.executeQueryAsync(
Function.createDelegate(this, success),
Function.createDelegate(this, fail)
);
}
function success()
{
alert(“Item added successfully”);
}
function fail(sender, args)
{
alert(‘Failed to get user name. Error:’ + args.get_message());
}

Note
In the AppManifest.xml file provide write permission to the SiteCollection.

Summary

This article explored how to insert list items into a host web list from a SharePoint Hosted app using JavaScript.

BIG DISCOUNT 70% for Windows Shared Hosting on ASPHostPortal.com

Best ASP.NET Hosting :: BIG DISCOUNT Recommendation

Good news for you are searching Best ASP.NET Hosting. ASPHostPortal.com, The Leader of ASP.NET Hosting offer BIG DISCOUNT 70% for their Windows Shared Hosting Plan. They also give uptime and 30 days money back guarantees. There are so many clients prove that ASPHostPortal give fast & stable network, and best technical support. We highly recommend you to host your site on ASPHostPortal.com.

Click the following picture to see their hosting plan. For order and more information please visit ASPHostPortal official site at http://asphostportal.com or please contact them by email at [email protected]

About ASPHostPortal.com

ASPHostPortal.com is Microsoft No #1 Recommended Windows and ASP.NET Spotlight Hosting Partner in United States. Microsoft presents this award to ASPHostPortal.com for the ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch.

SharePoint 2013 Hosting – ASPHostPortal.com :: Creating Web Application From Existing Content Database

There are situations where you want to propagate one SharePoint web application to some other farm/machine. I feel the fastest way is to take content database backup and restore it in your destination farm. I have done so in last couple of weeks and I have leaned how to quickly do that. I was provided with content database backup and source code. That makes be able to restore site and generate wsps from source code.

banner promo-01Creating  content database from backup

Go to your database server and do following:

  • Create a blank database that will be used as content database
  • Restore a database using content database back up from source farm.

Creating a web application:

  • Go to sharepoint central administration and create a new web application
  • While creating a new web application, use existing content database in database section
  • Sometimes if your database is too large, web application creation takes too long and times out. Don’t worry at all. web application is still created successfully. It happened to me 4 times out of 5.

Validating the web application:

  • Go to sharepoint central administration, click on application management. In “Databases” section you will find “Manage content databases”
  • Choose your application and it will show database status and number of site collections. If you are not sure how many site collections are there in backup, anything greater than 0 is good news.

Configure web application to work properly. we are almost done now. Do following:

  • Go to sharepoint central administration
  • Click on “Application Management”
  • In “Site Collections” section click on “Change site collection administrators.
  • choose your web application set proper data in site admins.

Additional optional steps:
After performing all the above steps, it is still possible that you are not able to access your web application.

  • Last thing to do is to install and deploy wsp by using stsadm or your favorite method.

Conclusion:

It is always challenging to move applications from one farm to another. Specially when they are depending upon other service applications. In spent last two weeks to learn how to properly do that. I hope this will help you at some point during your sharepoint development.

SharePoint 2013 Hosting :: Integrate MS Dynamics CRM 2015 With Microsoft SharePoint 2013

In this article we will see the procedure to integrate Microsoft Dynamics CRM 2015 with Microsoft SharePoint 2013, both on-premise installations.

ahp_freehostSHP(1)

Step by step

Step 1: Click on CRM -> Settings -> Document Management as shown below.

sp1

Step 2: You will settings available under the document management settings.

222

Step 3 : Click on Document Management Settings, enter the SharePoint site URL where you want to save documents. Click Next. In case you don’t have the Microsoft Dynamics CRM List Component it will give you the following warning.

sp2

Step 4 : We need to setup SharePoint for this List Component. For that download the List component for the correct version of CRM and upload it into the Solutions Gallery of SharePoint.
sp3

Step 5:  Activate the solution and be sure that the Status is activated.

sp4

You may get errors in activation. To rectify, make sure the Microsoft Dynamics CRM Sandbox Processing Service and Microsoft SharePoint foundation Sandboxed Code Service services are started.

111

Step 6 :  Document management can be enabled for those entities in Microsoft Dynamics CRM that can be customized. By default, document management is enabled only for the following entities in a new installation of CRM.

  •  Account
  •  KbArticle
  •  Lead
  •  Opportunity
  •  Product
  •  Quote
  •  SalesLiterature
You can enable document management for an entity, as shown below.
sp5
Step 7 : Once document management is enabled for an entity, you will see the option for documents as shown below.
sp6
Step 8:  You can add document location for this entity assuming the location is created and the appropriate permissions are set on SharePoint.
Step 9: And if everything goes right, you will see the familiar (at least to me) interface of SharePoint from within Dynamics CRM as shown below. You can start uploading documents and use document management functionality.
sp8
Step 10: In case you do not want to manage the folder structure on your own and let CRM make it for you, if the CRM List Component is installed correctly, you get an option for creating a folder structure based on the entities
sp9

SharePoint 2013 Hosting – ASPHostPortal.com :: Missing Server Side Dependencies

After an installation of SharePoint 2013 (upgrade or even if from bare metal), you may begin to see errors that state “Missing Server Site Dependencies” in which SharePoint says that there are [MissingWebPart] errors in the Administration Database.

ahp_freehostSHP(1)

One of the most common you will see is “[MissingWebPart] WebPart class [28c23aec-2537-68b3-43b6-845b13cea19f] is referenced [x] times in the database :

1bente
So you may wonder why Microsoft would do this to us? Turns out it is simply that certain features have not been installed yet (i.e. Services). So how do you determine what EXACTLY in the Web Part is causing the issue? Well you may have thought “I’ll just go to the content DB and look at the WebParts table” – aha – in 2013, you’ll find that table is gone (it is now called AllWebParts). Using a simple SQL Select you can get the title of the web part that’s missing.

Open up SQL Server Management Studio and open the database. Once there, expand the databases in the object explorer until you see the database names. Make a note of the SharePoint_AdminContent_<GUID> database (provided you have NOT renamed it). FYI – this applies to ANY content database; the Admin is to match the message above.

Now click New Query to create a new query window then enter the following SQL:

use [SharePoint_AdminContent_<GUID>]
select DirName,LeafName from dbo.AllDocs where id in
 (select tp_PageUrlID from dbo.AllWebParts where
    (tp_WebPartTypeID=’28c23aec-2537-68b3-43b6-845b13cea19f’)
 )
go

Where ‘SharePoint_AdminContent_<GUID>‘ is your database name.

This query will return the results of the pages where the web parts were found – in the case of [28c23aec-2537-68b3-43b6-845b13cea19f], the query will show you that it’s the Search Web Parts found on the Search Administration pages:

2efbetnJust in case you can’t see the images, the query above returned “SearchAdministration.aspx” and “SearchFarmDashBoard.aspx”

Now you may ask, why not just select the Web Part from the AllWebParts table – that’s because it won’t tell you what it is, just the ID. For example:

USE [SharePoint_AdminContent_<GUID>]
select * from dbo.AllWebParts where
tp_WebPartTypeID=’28c23aec-2537-68b3-43b6-845b13cea19f’

Simply returns the ID’s of pages that the Web Part is on. It won’t tell you the name. Now in the above example, it is pretty easy to see what is missing – the Search Service has not been created so the components are not installed yet.

To find something a little more obscure, once you’ve identified one of the pages the Web Part is on, you can use the old ?contents=1 at the end of the page URL to see the web parts on it.

ASPHostPortal.com Proudly Announces WordPress 4.1 Hosting

ASPHostPortal.com, The Best, Cheap and Recommended ASP.NET Hosting proudly announces WordPress 4.1 Hosting with a combination of affordable price, fast & stable network and uptime guarantees. ASPHostPortal.com provides full trust web hosting services for WordPress 4.1 site.

After nearly four months of development, WordPress 4.1 is available for download. WordPress 4.1 contains several improvements such as a new default theme, an improved distraction free writing experience, and plugin recommendations.

With the release of WordPress 4.1 just a few days ago, millions of people have had the opportunity to use the improved Distraction-free Writing Mode. When you enable Distraction Free Writing mode, the surrounding interface disappears as you type leaving important actions and menu items just a mouse movement away. This mode minimizes distractions without having to go through a clunky transition to access the admin menu or meta boxes. To bring back the menu and meta boxes, move the mouse cursor to the left or right of the editor.

On the Add New plugin page in WordPress 4.1, there are two different tabs to help users discover new plugins: Featured and Popular. The recommendations take into account the plugins you have installed and suggests plugins based on which ones are commonly used together. It’s similar to an e-commerce shopping cart that recommends products other customers have purchased based on what’s in the cart.

ASPHostPortal.com, a windows-based hosting service provider offers the most reliable and stable WordPress 4.1 web hosting infrastructure on the net with great features, fast and secure servers. They has architected its network like no other hosting company. Every facet of the network infrastructure scales to gigabit speeds with no single point of failure. All of windows hosting plan supports WordPress 4.1 and customers can install WordPress 4.1 with just one click. ASPHostPortal offer professional WordPress 4.1 site start from $5/month. The following are the reasons why the customers choose and keep trust with their service:

Structured Recovery System
Recovery becomes easy and seamless with their fully managed backup services. They monitor the server to ensure customer’s data is properly backed up and recoverable so when the time comes, customers can easily repair or recover their data.

Excellent Expertise in Technology
The reason they can provide customers with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within their business. They have not just been providing hosting for many clients for years, they have also been researching, developing, and innovating every aspect of their operations, systems, procedures, strategy, management, and teams.

Uptime & Support Guarantees
They are so confident in their hosting services, they will not only provide customers with a 30 days money back guarantee, but also give 99.9% uptime guarantee.

ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. With the WordPress 4.1 in their hosting deal will make ASPHostPortal continue to be the Best ASP.NET hosting providers. To learn more about WordPress 4.1 Hosting, please visit http://asphostportal.com/WordPress-Hosting

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. ASPHostPortal.com has ability to support the latest Microsoft and ASP.NET technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. ASPHostPortal include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and architecting highly scalable solutions. ASPHostPortal.com strives to supply probably the most technologically advanced hosting solutions available to all consumers the world over. Protection, trustworthiness, and performance are on the core of hosting operations to make certain each and every website and/or software hosted is so secured and performs at the best possible level.