ADO.NET Entity Framework (ASP.NET 3.5), SharePoint 2010
Visual Studio 2010
Attempted to 'Update Model from Database'
Received the following error:
Calling 'Read' when the data reader is closed is not a valid operation.
Resolution:
Restarted SQL Server.
Saturday, January 5, 2013
Saturday, September 29, 2012
Azure - The view or its master was not found
The file is not being deployed to Azure because you deleted the original file.
MyView.cshtml > Properties > 'Build Action' > Change from 'None' to 'Content'
MyView.cshtml > Properties > 'Build Action' > Change from 'None' to 'Content'
Thursday, August 2, 2012
InfoPath 2010 - newly promoted columns not showing up
First read Clay Cobb's answer, then read my small addition below:
Clay's Answer:
My Small Addition:
Clay's Answer:
Ribbon > Open in Windows Explorer
Watch the icons slowly appear, and when they all appear, click Page Down, and wait again. Do this until you get to the bottom, then close the window and re-open the form library. For any stragglers, just open them individually and re-submit.
Be careful if you ever use Re-link, because that will trigger any workflows set to run on Edit.
My Small Addition:
After you open in Windows Explorer, change the Windows Explorer view to List as to maximize the number of files in the view.
Tuesday, July 31, 2012
Column Validation +0
If you want to add column validation to a text column, and you want to test if the first four digits are a number, this won't work:
=ISNUMBER(LEFT([MYCOLUMN],4))
... but this will:
=ISNUMBER(LEFT([MYCOLUMN],4)+0)
... another tip:
Upon creation, the column validation will fail.
Resolution: Set the column to be required and add an ISBLANK:
=OR(ISBLANK( MYCOLUMN ),ISNUMBER(LEFT([ MYCOLUMN ],4)+0))
... that way, the item can be created, but when the user tries to save it the first time, it will give the user an error message stating that the field is required.
=ISNUMBER(LEFT([MYCOLUMN],4))
... but this will:
=ISNUMBER(LEFT([MYCOLUMN],4)+0)
... another tip:
Upon creation, the column validation will fail.
Resolution: Set the column to be required and add an ISBLANK:
=OR(ISBLANK( MYCOLUMN ),ISNUMBER(LEFT([ MYCOLUMN ],4)+0))
... that way, the item can be created, but when the user tries to save it the first time, it will give the user an error message stating that the field is required.
Wednesday, May 30, 2012
A World Wide Web browser, such as Windows Internet Explorer, is required to use this feature
Start > Run > C:\Windows\System32\ComputerDefaults.exe > Select the 'Custom' radio button and click the chevron to the right > Choose a default web browser: 'Internet Explorer' radio button > OK
Wednesday, May 16, 2012
SP2010 - web.config debug settings
inetpub\wwwroot\wss\VirtualDirectories\80\web.config
14\TEMPLATE\LAYOUTS\web.config
14\CONFIG\web.config
<configuration>
<SharePoint>
<SafeMode CallStack="true" />
</SharePoint>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
</configuration>
14\TEMPLATE\LAYOUTS\web.config
14\CONFIG\web.config
<configuration>
<SharePoint>
<SafeMode CallStack="true" />
</SharePoint>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
</configuration>
Thursday, April 12, 2012
Win2008 - Always Run App as Admin
Right-click app > 'Properties' > 'Compatibility' tab > 'Privilege Level' > Check 'Run this program as an administrator'
Subscribe to:
Comments (Atom)