Problem: The SharePoint date time control's default behaviour is to returns the current date and time when no date has been selected.
Initial Hypothesis: Validate the control to pre insert to check if it is selected, if no date time is choosen don't update the record.
Resolution: The Property IsDateEmpty returns "false" if the date has been input.
Code:
if (!dtMyBirthday.IsDateEmpty) { // ... User has delected their birthday date so insert into SQL table or list }
Read More:
http://karinebosch.wordpress.com/sharepoint-controls/datetimecontrol-control/
Tuesday, 16 November 2010
Monday, 15 November 2010
Changing service account passwords - The Service is unavailable
Problem: Browsers return the following error "Service Unavailable Http Error 503. The Service is unavailable." on all SharePoint websites including central admin.
Initial Hypothesis: I changed my password yesterday causing the app polls to fail when logging in. The domain account used on my development machine required a password change. Starting the machine causes all the IIS web sites to display the error message "Service Unavailable". I run various services and application polls using my domain account. The services can no longer log on. Application pool cannot be started after the reboot/iisreset.
Resolution: Change the log on details for the application pools used by IIS that run using the domain account that's password was reset. Also start the Windows services that run using the windows domain account.

Ensure the SharePoint services running
Initial Hypothesis: I changed my password yesterday causing the app polls to fail when logging in. The domain account used on my development machine required a password change. Starting the machine causes all the IIS web sites to display the error message "Service Unavailable". I run various services and application polls using my domain account. The services can no longer log on. Application pool cannot be started after the reboot/iisreset.
Resolution: Change the log on details for the application pools used by IIS that run using the domain account that's password was reset. Also start the Windows services that run using the windows domain account.

Ensure the SharePoint services running
Friday, 12 November 2010
Installing SharePoint using a dedicated Installation account
Problem: Best practice is to install SharePoint servers using a dedicated install account. This account is not the farm account. Once the installation is complete, the installation account should be disabled. You need to install in the role of the admin account to install correctly.
Note: If your install and farm account are the same as is often the case, this post does not apply to you.
Initial Hypothesis: It is only worth following this post if you are using at least 5 or more accounts for your farm install. The idea is that the installation account is disabled after installation.
Resolution: The farm account needs the 2 SQL Server security roles namely: dbcreator and securityadmin. The farm account still needs local admin permission rights on each Web Front End (WFE) server. The Installation account does not need any SQL Server permissions.
Using the codeplex AutoSPinstaller. Launch the installer using a cmd prompt using the runs cmd to run in the farm domain admin priviledge.
cmd> runas /user:demo\farm_admin %windir%\system32\cmd.exe
cmd> D:\SP2010\Script>Launch.bat

You can also do the runas shotcut to change the account installing SharePoint.
Update 6 Dec 2010 - Hold down the shift key and right click the cmd prompt program menu, you are given the "run as .." menu option.
Update: 22 June 2011 - the current version of AutoSPInstaller is 2.5, additionallly the codeplex project is called AutoSPIntaller not SPAutoInstaller as previously named.
AutoSPInstaller - Step-by-step guide: http://blog.lekman.com/2010/11/automated-sharepoint-2010-installations.html
Note: If your install and farm account are the same as is often the case, this post does not apply to you.
Initial Hypothesis: It is only worth following this post if you are using at least 5 or more accounts for your farm install. The idea is that the installation account is disabled after installation.
Resolution: The farm account needs the 2 SQL Server security roles namely: dbcreator and securityadmin. The farm account still needs local admin permission rights on each Web Front End (WFE) server. The Installation account does not need any SQL Server permissions.
Using the codeplex AutoSPinstaller. Launch the installer using a cmd prompt using the runs cmd to run in the farm domain admin priviledge.
cmd> runas /user:demo\farm_admin %windir%\system32\cmd.exe
cmd> D:\SP2010\Script>Launch.bat

You can also do the runas shotcut to change the account installing SharePoint.
Update 6 Dec 2010 - Hold down the shift key and right click the cmd prompt program menu, you are given the "run as .." menu option.
Update: 22 June 2011 - the current version of AutoSPInstaller is 2.5, additionallly the codeplex project is called AutoSPIntaller not SPAutoInstaller as previously named.
AutoSPInstaller - Step-by-step guide: http://blog.lekman.com/2010/11/automated-sharepoint-2010-installations.html
Labels:
AutoSPInstaller,
domain accounts,
installation,
runas,
service accounts,
sharepoint 2010 installation
Central Admin is not working correctly - You may be trying to access this site from a secured browser on the server
Problem: Using Central Administration (CA) on SharePoint 2010 you can't use the menu and you see the following information "You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page."
Initial Hypthesis: FireFix work so it is a I.E. 8 issue.
Resolution: As suggested on the MSDN formun turn of the IE
More Info:
http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/4cf3a740-dddf-4c08-bc36-03efc731eff8
http://social.technet.microsoft.com/Forums/en/winservergen/thread/e87585de-d365-48c8-b08f-1050d68724ed
Initial Hypthesis: FireFix work so it is a I.E. 8 issue.
Resolution: As suggested on the MSDN formun turn of the IE
More Info:
http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/4cf3a740-dddf-4c08-bc36-03efc731eff8
http://social.technet.microsoft.com/Forums/en/winservergen/thread/e87585de-d365-48c8-b08f-1050d68724ed
Thursday, 11 November 2010
Branding, Load testing, project success points
Branding - from designer to SharePoint
This is a 4 part series that is a great start for branding with a designer.
http://sharepointmagazine.net/technical/development/sharepoints-branding-limitations-part-1
SharePoint Project Checklist
http://sharepointmagazine.net/technical/administration/avoid-newbie-mistakes-10-steps-to-successful-sharepoint-deployments
Load Testing
http://sharepointmagazine.net/technical/load-testing-reveals-cause-of-sharepoint-server-performance-problem
This is a 4 part series that is a great start for branding with a designer.
http://sharepointmagazine.net/technical/development/sharepoints-branding-limitations-part-1
SharePoint Project Checklist
http://sharepointmagazine.net/technical/administration/avoid-newbie-mistakes-10-steps-to-successful-sharepoint-deployments
Load Testing
http://sharepointmagazine.net/technical/load-testing-reveals-cause-of-sharepoint-server-performance-problem
Wednesday, 10 November 2010
BCS Limitations
A good post by Chakkaradeep Chandran on the limitations of BCS
Access SQL using a different domain account using SQL Windows authentication mode
Problem: Infrastructure has setup a new SQL Server 2008 R2 instance. I can only remote desktop to the machine using the installation account. AS SQL Server is setup to use Windows authentication I can't login using the local "Microsoft SQL Server Management Studio".
Initial Hypothesis: I can't connect remotely to the SQL instance, I can't login using remote desktop access with the appropriate account that has SQL access. I need to remote desktop to the SQL Server using the remote access windows account i.e. demo\Installation and then runas the demo\sqladmin account to get access to the Management Studio.
Resolution: Run SQL Server Management Studio in the rights of the windows account that has SQL access.
Steps:
Initial Hypothesis: I can't connect remotely to the SQL instance, I can't login using remote desktop access with the appropriate account that has SQL access. I need to remote desktop to the SQL Server using the remote access windows account i.e. demo\Installation and then runas the demo\sqladmin account to get access to the Management Studio.
Resolution: Run SQL Server Management Studio in the rights of the windows account that has SQL access.
Steps:
- Remote desktop into the SQLServer using the windows account that has remote desktop access i.e. demo\Installation
- Open you cmd prompt
- Execute the cmd> C:\Users\Installation>runas /user:demo\sqlaccount "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"
- Enter the SqlAccount password
- Management Studio opens up using the demo\SQLAdmin account
Update 6 Dec 2010 - Alternatively, hold down the shift key and right click the SQL Server Management menu, you are given the "run as .." menu option.
Subscribe to:
Posts (Atom)