Sunday, November 27, 2011
iTunes - Remember playback position
iTunes > Right-click song > 'Get Info' > 'Options' tab > Check 'Remember playback position' > OK.
Tuesday, November 22, 2011
Error: Mount-SPContentDatabase - SPUnrecoverableException
Problem:
I received an error when running the following cmdlet:
Mount-SPContentDatabase -Name SampleContentDB -DatabaseServer SampleDBServer -WebApplication http://intranet.samplecompany.com/
Error:
InvalidData: (Microsoft.Share...ContentDatabase:SPCmdletMountContentDatabase) [Mount-SPContentDatabase], SPUnrecoverableException
Resolution:
The drive was full. I cleared some space and then it worked.
I received an error when running the following cmdlet:
Mount-SPContentDatabase -Name SampleContentDB -DatabaseServer SampleDBServer -WebApplication http://intranet.samplecompany.com/
Error:
InvalidData: (Microsoft.Share...ContentDatabase:SPCmdletMountContentDatabase) [Mount-SPContentDatabase], SPUnrecoverableException
Resolution:
The drive was full. I cleared some space and then it worked.
Monday, November 21, 2011
XML - Should I Use an Element or an Attribute?
From MSDN...
Elements are used to encapsulate pieces of data, and attributes are generally used to provide accompanying information about an element, rather than to encapsulate raw data itself. Whether you actually use an element or an attribute is up to the needs of your application.
Use attributes if your information requires data of a simple type and:
•Your information requires a default or fixed value.
•Your information requires data that is metadata for an existing element
•If the size of your XML file is an issue, attributes tend to take up fewer bytes than elements
The following list describes the key differences between elements and attributes from a schema perspective:
•A schema can define whether the ordering of elements is significant, but attributes can occur in any order.
•Elements can be nested with thetag, which means one and only one of the listed elements can appear.
•Elements can occur more than once, but attributes cannot.
Source:
http://msdn.microsoft.com/en-us/library/7f0tkwcx(v=vs.71).aspx
Elements are used to encapsulate pieces of data, and attributes are generally used to provide accompanying information about an element, rather than to encapsulate raw data itself. Whether you actually use an element or an attribute is up to the needs of your application.
Use attributes if your information requires data of a simple type and:
•Your information requires a default or fixed value.
•Your information requires data that is metadata for an existing element
•If the size of your XML file is an issue, attributes tend to take up fewer bytes than elements
The following list describes the key differences between elements and attributes from a schema perspective:
•A schema can define whether the ordering of elements is significant, but attributes can occur in any order.
•Elements can be nested with the
•Elements can occur more than once, but attributes cannot.
Source:
http://msdn.microsoft.com/en-us/library/7f0tkwcx(v=vs.71).aspx
Thursday, November 10, 2011
_layouts web.config
Reminder: The following web.config file exists and must be updated for debugging purposes:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config
<configuration>
<system.web>
<customerrors mode="Off">
</system.web>
</configuration>
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config
<configuration>
<system.web>
<customerrors mode="Off">
</system.web>
</configuration>
Using URL Rewrite to Redirect
The following is performed at the web site level in IIS. See 'Resources' below for the 'URL Rewrite' download link, the user reference guide, and a couple other helpful links.
Match URL > Requested URL: 'Matches the Pattern' > Using: 'Regular Expressions' > Pattern:
*Note: Pattern: tests against the <path>, not the entire URL!
http(s)://<host>:<port>/<path>?<querystring>
So if you want to test if a string is in the beggining of the path, you would use ^. For example, if you want to redirect...
http://intranet.samplecompany.com/hr/Pages/default.aspx
... to ...
http://intranet.samplecompany.com/teams/hr/Pages/default.aspx
... you would use:
Pattern: ^hr/.*
Then, Action > Action type: 'Redirect' > Action Properties > Redirect URL:
http://intranet.samplecompany.com/teams/{R:0}
The {R:0} is a back reference variable. You can see it when you use the 'Test pattern...' button in the 'Match URL' section of the form.
*Tip: When using the 'Test pattern...' button > Input data to test:
Use the path, not the entire URL! Remember, the pattern tests against the path, not the entire URL!
*Note: It seems that when using 'Conditions', the path needs a leading forward slash. So for the 'Redirect URL' with no Conditions, one would use the pattern...
^hr/.*
... and the 'Redirect URL'...
http://intranet.samplecompany.com/teams/{R:0}
... but with Conditions, one would use the Condition pattern...
^/hr/.*
... and the 'Redirect URL'...
http://intranet.samplecompany.com/teams{C:0}
*Another Note:
If you attempt to browse to a non-existent page, you will get a 404 error. This is by design, because if the following link doesn't exist here...
http://intranet.samplecompany.com/hr/Pages/sample.aspx
... it's not going to exist here either...
http://intranet.samplecompany.com/teams/hr/Pages/sample.aspx
Resources:
Match URL > Requested URL: 'Matches the Pattern' > Using: 'Regular Expressions' > Pattern:
*Note: Pattern: tests against the <path>, not the entire URL!
http(s)://<host>:<port>/<path>?<querystring>
So if you want to test if a string is in the beggining of the path, you would use ^. For example, if you want to redirect...
http://intranet.samplecompany.com/hr/Pages/default.aspx
... to ...
http://intranet.samplecompany.com/teams/hr/Pages/default.aspx
... you would use:
Pattern: ^hr/.*
Then, Action > Action type: 'Redirect' > Action Properties > Redirect URL:
http://intranet.samplecompany.com/teams/{R:0}
The {R:0} is a back reference variable. You can see it when you use the 'Test pattern...' button in the 'Match URL' section of the form.
*Tip: When using the 'Test pattern...' button > Input data to test:
Use the path, not the entire URL! Remember, the pattern tests against the path, not the entire URL!
*Note: It seems that when using 'Conditions', the path needs a leading forward slash. So for the 'Redirect URL' with no Conditions, one would use the pattern...
^hr/.*
... and the 'Redirect URL'...
http://intranet.samplecompany.com/teams/{R:0}
... but with Conditions, one would use the Condition pattern...
^/hr/.*
... and the 'Redirect URL'...
http://intranet.samplecompany.com/teams{C:0}
*Another Note:
If you attempt to browse to a non-existent page, you will get a 404 error. This is by design, because if the following link doesn't exist here...
http://intranet.samplecompany.com/hr/Pages/sample.aspx
... it's not going to exist here either...
http://intranet.samplecompany.com/teams/hr/Pages/sample.aspx
Resources:
Tuesday, November 8, 2011
CQWP - Date Example
ItemStyle.xsl <xsl:template>
<xsl:value-of select="ddwrt:FormatDateTime(string(@PublicationDate),1033,'MM.dd.yyyy')"></xsl:value-of>
Make sure to include the following in the <xsl:stylesheet> tag:
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
<xsl:value-of select="ddwrt:FormatDateTime(string(@PublicationDate),1033,'MM.dd.yyyy')"></xsl:value-of>
Make sure to include the following in the <xsl:stylesheet> tag:
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
Friday, November 4, 2011
Edit in Notepad
- Open C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\DOCICON.XML
- <Mapping Key="txt" Value="ictxt.gif" EditText="Notepad" OpenControl="SharePoint.OpenDocuments"/>
- Reset IIS
Thursday, September 29, 2011
.NET - Select a ListItem
sampleDropDownList.ClearSelection();
ListItem sampleListItem = sampleDropDownList.Items.FindByValue(sampleValue);
if (sampleListItem != null)
{
sampleListItem.Selected = true;
}
ListItem sampleListItem = sampleDropDownList.Items.FindByValue(sampleValue);
if (sampleListItem != null)
{
sampleListItem.Selected = true;
}
SQL Server - Change Result Set Size
Tools > Options... > SQL Server Object Explorer > Commands > Table and View Options > Value for Edit Top <n> Rows command > 300
Friday, September 2, 2011
The trust relationship between this workstation and the primary domain failed
Disconnect network connection > Log in with domain credentials > Reconnect network connection.
Wednesday, August 3, 2011
Tuesday, July 19, 2011
How to grant the Remote Desktop Users group the "Allow log on through Terminal Services" user right
'Start' > 'Run...' > gpedit.msc > 'Local Computer Policy' > 'Computer Configuration' > 'Windows Settings' > 'Security Settings' > 'Local Policies' > 'User Rights Assignment' > double click 'Allow log on through Terminal Services' > 'Add User or Group...' > Remote Desktop Users > OK > OK
Sunday, July 17, 2011
Windows Server 2008 R2: Enable Sound Over RDP
On the Remote Desktop > Start > Control Panel > Sound > Yes > OK.
On the Remote Desktop > Start > Search programs and files > type 'remote' > click 'Remote Desktop Session Host Configuration' > Connections (Middle Pane) > right-click 'RDP-Tcp' > Properties > 'Client Settings' tab > uncheck 'Audio and video playback' > OK > Start > Log off > Log On > You should hear sound through your client.
References:
How to enable sound over RDP in a Server 2008 R2 Hyper-V guest
Hyper-V Troubleshooting: Enabling Audio Over RDP
On the Remote Desktop > Start > Search programs and files > type 'remote' > click 'Remote Desktop Session Host Configuration' > Connections (Middle Pane) > right-click 'RDP-Tcp' > Properties > 'Client Settings' tab > uncheck 'Audio and video playback' > OK > Start > Log off > Log On > You should hear sound through your client.
References:
How to enable sound over RDP in a Server 2008 R2 Hyper-V guest
Hyper-V Troubleshooting: Enabling Audio Over RDP
Friday, July 15, 2011
I will be speaking at SharePoint Saturday The Conference DC
I will guide you through the obstacles you will encounter as you attempt to put a SharePoint publishing portal up on the Internet. We will mix my recent experiences with audience experiences.
SharePoint 2010 Web Content Management (WCM) Obstacles
Twitter: SPSTCDC
SharePoint 2010 Web Content Management (WCM) Obstacles
Twitter: SPSTCDC
Saturday, May 14, 2011
SP2010 MCM Pre-Reading List
Architecture and Planning
Business Continuity Management
Business Intelligence
Capacity Management
Enterprise Application Development
Enterprise Content Management
Enterprise Search
Monitoring & Operations
Performance Testing & Tuning
Profiles/Social
Security
Storage Planning & Maintenance
Upgrades
Web Content Management
Source: http://www.dynamicevents.com/upload/MCM-MCA/MCM/SharePoint/MCMSharePointPre-Reads.pdf
Configure services (SharePoint Server 2010)Configure a service application by using a Windows PowerShell script (SharePoint Server 2010)Configure the security token service (SharePoint Server 2010)Content MigrationContent Migration OverviewContent Migration TasksHow to: Migrate a Web Site From One Location to AnotherMigrating Security InformationLogging Content Migration EventsContent Migration XML Schema ReferenceDeploymentManifest SchemaDeploymentExportSettings SchemaDeploymentLookupListMap SchemaDeploymentRequirements SchemaDeploymentRootObjectMap SchemaDeploymentSystemData SchemaDeploymentUserGroupMap SchemaDeploymentViewFormsList Schema
Deployment overview (SharePoint Server 2010)Multi Tenancy
Evaluation guide for SharePoint Server 2010 (white paper)Farm topology management (SharePoint Server 2010)
Fundamental site planning (SharePoint Server 2010)
Logical architecture components (SharePoint Server 2010)Manage farm administration settings (SharePoint Server 2010)
Managing privacy (SharePoint Server 2010)Multi-Tenancy in SharePoint 2010Office Web Apps (Installed on SharePoint 2010 Products)
Plan alternate access mappings (Windows SharePoint Services)Plan for collaboration sites (SharePoint Foundation 2010)Plan for server farms and environments (SharePoint Server 2010)
Plan for sites and solutions (SharePoint Server 2010)
Plan site creation and maintenance (SharePoint Server 2010)
Planning and Leveraging SharePoint 2010 Service ApplicationsSandboxed solutions planning (SharePoint Foundation 2010)
Server and server farm administration (SharePoint Server 2010)
Service application and service management (SharePoint Server 2010) ONLY focus on BI and Profile services
Share service applications across farms (SharePoint Server 2010)SharePoint Online OverviewSite and site collection administration (SharePoint Server 2010)
Site and solution administration (SharePoint Server 2010)
Site and solution governance (SharePoint Server 2010)
Understanding SharePoint 2010 TopologyResource Center - Governance in SharePoint Server 2010
Business Connectivity Services
BDCMetadata SchemaBusinessConnectivity Services in SharePoint 2010 and Office 2010Consuming External Data with Business Connectivity Services in SharePoint 2010Creating a Business Data Connectivity ModelDeploying BCS Simple SolutionsDesigning a Business Data Connectivity ModelDifferences Between Using the .NET Assembly Connector and Writing a Custom ConnectorHOW TO: Create a Searchable SharePoint 2010 BDC .NET Assembly Connector Which Reads From A Flat FileHOW TO: Programmatically create a SharePoint 2010 External Content TypeHOW TO: Registeran External Content Type with the SharePoint Search Service to make the data searchableIntegrating Business Data into SharePointMicrosoft Business Connectivity ServicesBusiness Connectivity Services OverviewBusiness Connectivity Services FundamentalsWhat Is Included in Business Connectivity Services?Understanding Business Connectivity Services- Building Solutions with Business Connectivity Services
- Business Connectivity Services: How-tos and Walkthroughs
- Business Connectivity Services: Sample XML and Code Examples
- Business Connectivity Services Programmer's Reference
- Business Connectivity Services Class Libraries
- Business Connectivity Services: FAQ
- Microsoft Business Connectivity Services Model
Plan for Business Connectivity Services (SharePoint Server 2010)- Business Connectivity Services overview (SharePoint Server 2010)
- Business Connectivity Services security overview (SharePoint Server 2010)
- Business Data Connectivity service administration overview (SharePoint Server 2010)
- Plan Business Connectivity Services client integration (SharePoint Server 2010)
- Monitoring and Diagnostic logging in Business Connectivity Services overview (SharePoint Server 2010)
- Plan to upgrade to Business Connectivity Services (SharePoint Server 2010)
Resource Center-Business Connectivity Services in SharePoint Server 2010Working with Complex Data Types in Business Connectivity Services
Business Continuity Management Features in SharePoint 2010Data Protection and RecoveryBacking Up and RestoringOverview of Backing Up and Restoring Data in SharePoint FoundationProgramming with the SharePoint Foundation Backup/Restore Object ModelSharePoint Foundation and the Volume Shadow Copy ServiceOverview of SharePoint Foundation and the Volume Shadow Copy Service- SharePoint Foundation VSS Writer
- VSS Requestors and SharePoint Foundation
- Creating a VSS Requestor for Use with SharePoint Foundation
- Using a VSS Requestor with SharePoint Foundation
How to: Back Up While the Web Application Is Still RunningFine-grained Data Restoration from Unattached DatabaseProgrammatic Administration of Database Mirroring and FailoverProgrammatic Administration of Database SnapshotsDatabase Mirroring OverviewGetting Started: BackupsHigh Availability Solutions OverviewLog Shipping OverviewOptimize TempDB performancePlan for availability (SharePoint Server 2010)Plan for backup and recovery (SharePoint Server 2010)Plan for business continuity management (SharePoint Server 2010)Plan to protect content by using recycle bins and versioning (SharePoint Server 2010)Recovery (SharePoint Server 2010)Resource Center-Business Continuity Management for SharePoint Server 2010Selecting a High Availability Solution
- Business Intelligence Features in SharePoint 2010 (video)
Business intelligence planningChoose the right business intelligence technology to suit your style (white paper)Creating Custom BI Solutions with PerformancePoint ServicesCreating Custom Solutions with Excel ServicesExcel Services 2010 OverviewExcel Services administration (SharePoint Server 2010)Excel Services User-Defined Functions- Exposing Business Intelligence with SharePoint 2010 (video)
Hardware and Software Requirements (PowerPivot for SharePoint)PerformancePoint Services administrationPlan for PerformancePoint Services (SharePoint Server 2010)Plan for Visio Services (SharePoint Server 2010)PowerPivot for SharePoint (MSDN)PowerPivot for SharePoint (TechNet)Reporting Services with SharePoint IntegrationResource Center-Business Intelligence in SharePoint Server 2010Visio Graphics Service administration (SharePoint Server 2010)
Capacity management and sizing for SharePoint Server 2010Resource Center-Capacity Management for SharePoint Server 2010
- Accessing SharePoint 2010 Lists Using LINQ to SharePoint (Video)
- Application Lifecycle Management in SharePoint 2010 (Video)
- Best Practices with SharePoint Foundation
Conceptual Overview of SharePoint Foundation- Creating Sandboxed Solutions (Video)
Deploy customizations - overview (SharePoint Server 2010)Developing, Deploying, and Monitoring Sandboxed Solutions in SharePoint 2010Enterprise Development with SharePoint ServerEssential SharePoint Programming Tasks- Feature Framework and Solution Deployment Improvements (video)
Feature Schema- Get Started Developing on SharePoint 2010(video)
- IT Pro Tools for Customizing SharePoint 2010(video)
- List Enhancements and Customizations in SharePoint 2010(video)
Managing Data with LINQ to SharePoint- Managing SharePoint 2010 Customizations for the IT Pro (video)
Packaging and Deployment- patterns & practices SharePoint Guidance(labs)
Redeploying Customizations and Solutions in SharePoint Foundation 2010 and SharePoint Server 2010- Services Architecture and Extensibility(video)
Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008- SharePoint 2010 Advanced Developer Training(video)
- SharePoint 2010 Development Platform Overview(video)
SharePoint Foundation 2010 General ReferenceSharePoint Foundation Building BlocksSharePoint Foundation Development In DepthSharePoint Foundation Development Tools- SharePoint Server 2010 General Reference(SDK)
Site Types: WebTemplates and Site DefinitionsSolution Schema- User Interface Improvements and Extensibility in SharePoint 2010(video)
- Using the Client Object Model and REST to Access SharePoint 2010(video)
- Visual Studio 2010 SharePoint Developer Tools Overview(video)
- Customizing Enterprise Content Management in SharePoint 2010(video)
- Document Management Capabilities and Features in SharePoint 2010(video)
- Document management planning (SharePoint Foundation 2010)
- Enterprise Content Management
- Enterprise Content Management in SharePoint 2010(video)
- Enterprise content management planning (SharePoint Server 2010)
- Governing Content Types, Policies, and Taxonomy Services in SharePoint 2010(video)
- Managed metadata administration (SharePoint Server 2010)
- Plan managed metadata (SharePoint Server 2010)
- Records Management in SharePoint 2010(video)
- Resource Center - Enterprise Content Management in Microsoft SharePoint Server 2010
- Resource Center-Enterprise Collaboration in SharePoint Server 2010
- Resource Center-Records Management in SharePoint Server 2010
- SharePoint Document Management
- Developing Custom Search Solutions with SharePoint 2010
- Enterprise search administration (SharePoint Server 2010)
- FAST Protocol Documentation http://msdn.microsoft.com/en-us/library/ee629339.aspx
- Planning and architecture (FAST Search Server 2010 for SharePoint)
- Resource Center-Enterprise Search in Microsoft SharePoint Server 2010
- Search Capabilities and Features in SharePoint 2010
- Searching New Content in SharePoint Server Search
- SharePoint Enterprise Search
- Working with federation (Search Server 2008)
Forms
- InfoPath forms administration (SharePoint Server 2010)
- InfoPath Forms Services
- Plan InfoPath Forms Services (SharePoint Server 2010)
- Deployment scenarios (SharePoint Server 2010)
- Initial configuration (SharePoint Server 2010)
- Prepare for deployment (SharePoint Server 2010)
- Resource Center-Installation and Deployment for Microsoft SharePoint Server 2010
- Windows PowerShell in the SharePoint Management Shell
- Timer job reference (SharePoint Server 2010)
- Windows PowerShell for SharePoint Server 2010 reference
- Mastering PowerShell
- Effective Windows PowerShell
- Cache settings operations (SharePoint Server 2010)
- Handling Large Folders and Lists
- Health and Performance
- Measuring .NET Application Performance
- Plan for caching and performance (SharePoint Server 2010)
- SharePoint Logging For Developers
- Testing .NET Application Performance
- Tuning .NET Application Performance
- Working with Large Lists in Office SharePoint Server 2007
- Writing Efficient Code in SharePoint Server
- Configure profile synchronization (SharePoint Server 2010)
- Customizing My Sites and Social Features in SharePoint 2010
- Plan for My Site Web sites (SharePoint Server 2010)
- Plan for social computing and collaboration (SharePoint Server 2010)
- Planning and Deploying SharePoint Server 2010 User Profiles for My Site Web Sites
- Resource Center-Social Computing in SharePoint Server 2010
- User Profile Service administration (SharePoint Server 2010)
- User Profiles and Social Data
- Using Social Capabilities in SharePoint 2010
- Account permissions and security settings (SharePoint Server 2010)
- Administrative and service accounts required for initial deployment (SharePoint Server 2010)
- Assign or remove administrators to a service application (SharePoint Server 2010)
- Claims How Tos
- Configure claims authentication (SharePoint Server 2010)
- Configure Kerberos authentication (SharePoint Server 2010)
- Configure the Secure Store Service (SharePoint Server 2010)
- Configuring Kerberos Authentication for Microsoft SharePoint 2010 Products
- Information Rights Management in SharePoint Foundation
- Manage Excel Services authentication
- Manage permission policies for a Web application (SharePoint Server 2010)
- Plan authentication methods (SharePoint Server 2010)
- Plan Excel Services authentication (SharePoint Server 2010)
- Plan for PerformancePoint Services security (SharePoint Server 2010)
- Plan security hardening (SharePoint Server 2010)
- Plan the Secure Store Service (SharePoint Server 2010)
- Plan Visio Services security (SharePoint Server 2010)
- Restrict or enable access to a service application (SharePoint Server 2010)
- Security and permissions (SharePoint Server 2010)
- Security and Protection (PowerPivot for SharePoint)
- Security In SharePoint 2010
- Security planning for sites and content (SharePoint Server 2010)
- SharePoint Foundation Security
- Using the New SharePoint 2010 Security Model - Part 1
- Using the New SharePoint 2010 Security Model - Part 2
- Database management (SharePoint Server 2010)
- Database types and descriptions (SharePoint Server 2010)
- Databases used by SharePoint have fragmented indices
- Manage Remote BLOB Storage (SharePoint Server 2010)
- Plan for remote BLOB storage (RBS) (SharePoint Foundation 2010)
- Reorganizing and Rebuilding Indexes
- Resource Center - SQL Server and SharePoint Server 2010 Databases
- SQL Server and storage (SharePoint Server 2010)
- Storage and SQL Server capacity planning and configuration (SharePoint Server 2010)
- Implementing and Validating Upgrade Plans for SharePoint 2010
- Preparing to Upgrade to SharePoint 2010
- Resource Center-Upgrade and Migration for Microsoft SharePoint Server 2010
- SharePoint 2010 Upgrade Overview
- SharePoint Products and Technologies customization policy (white paper)
- Testing Upgraded SharePoint 2010 Solutions
- Upgrading Code from SharePoint Server 2007 to SharePoint Server 2010
- Upgrading to SharePoint Server 2010
- Using AAM URL redirection as part of the upgrade process (SharePoint Foundation 2010) (white paper)
- Plan for large Pages libraries (SharePoint Server 2010)
- Plan Web content management (SharePoint Server 2010)
- Resource Center-Web Content Management in SharePoint Server 2010
- Web content management operations (SharePoint Server 2010)
- Estimate Performance and Capacity Requirements for Workflow in SharePoint Server 2010
- Plan workflows (SharePoint Server 2010)
- Workflow administration (SharePoint Server 2010)
- Workflow Enhancements in SharePoint 2010
- Workflows in SharePoint Foundation
Subscribe to:
Posts (Atom)