Friday, January 27, 2012

The expression prefix 'SPUrl' was not recognized

Error Message: The expression prefix 'SPUrl' was not recognized. Please correct the prefix or register the prefix in the section of configuration. First things to check: Are you using SharePoint Foundation? If so, the SPUrl is not available for you to use.

Wednesday, January 25, 2012

Turn on ie9 Developer Tools

Start > Run > gpedit.msc > Computer Configuration > Administrative Templates > Windows Components > Internet Explorer > Toolbars > Double click 'Turn off Developer Tools' > Select the 'Disabled' radio button > OK > Close ie > Open ie > F12.

Wednesday, January 18, 2012

Access this computer from the network

Web Server > Start > Administrative Tools > Local Security Policy > Security Settings > Local Policies > User Rights Assignment > Access this computer from the network > Properties > Add User or Group... > (User or Group) > OK > OK.

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.

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 the tag, 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

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>