Server SSL Certificate is issued by

Server SSL certificate is issued by a certificate authority that is unfamiliar.

When trying to download from Technet or MSDN I would receive the error above.  After messing around with IE for way too long, I found the issue.

For one reason or another Akamai is/was blocked at my office.  Microsoft File Transfer Manager appears to connect to other sites to host the files in the Technet or MSDN accounts.

Fix?

Added the root site that Microsoft File Transfer Manger was trying to connect to in the Safe Sites list in IE.

Example:

https://a248.e.akamai.net/global.geo.ds.microsoft.com/anyfile.ext
fp-pr1.ds.microsoft.com
Added https://*akamai.net
to the safe sites list in IE.

VMware Player VMwareDnD

Dear VMware,

Please fix the copy/paste function in your VMware Player.  Every time I copy a file from the client to the host, Player will make ANOTHER copy of the file.  This is nice when you are trying to figure out why your host is running out of drive space.

What I have done is create a small batch file that will truncate the VMwareDnD folder on Startup.

1. Create a batch file.

2. In that batch file you will want to provide the path to your VMwareDnD folder.

@echo off
del C:\Users\YOUR COMPUTER WHATEVER HERE\AppData\Local\Temp\VMwareDnD\”.” /Q /s >nul
3. Save the file and copy or cut and paste it to here
C:\Users\YOUR COMPUTER WHATEVER HERE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Event Handler ItemAdded returns null value

use the following code to get the item from ItemAdded Event.

Public Overrides Sub ItemAdded(ByVal properties As SPItemEventProperties)
Using spsSite As SPSite = New SPSite(properties.WebUrl)
Using spwWeb As SPWeb = spsSite.OpenWeb

Dim iSPl As SPListItem

If spwWeb.GetFile(properties.AfterUrl).Exists Then
iSPl = spwWeb.GetFile(properties.AfterUrl).Item

ElseIf spwWeb.GetFolder(properties.AfterUrl).Exists Then
iSPl = spwWeb.GetFolder(properties.AfterUrl).Item
End If

End Using
End Using
End Sub

You must restore to an empty web site

not following the directions caused me to get stuck on this one.

using SharePoint Designer, backup the site you want.

Site –>Administration –>Backup Web Site –> Select a location and save

create an empty site. (this is where i messed up)

to create an empty site do the following:

File –> Web Site –> General –> Empty Web Site –> Enter a site name

Then you will have a empty site to restore to.

Site –>Administration –>Restore Web Site –> Select your backup file –> Click Advanced  (make sure your new empty site name is there) –> Click OK

 

infopath object reference not set to an instance of an object

using VSTA / codebehind i was getting a object reference not set to an instance of an object error.

turned out i fat-fingered some code.

make sure to check the fields you are referencing.

example:

bad –

Dim sAttchID As XPathNavigator = nav.SelectSingleNode(“/my:theAttachmentLibID“, Me.NamespaceManager)

good –

Dim sAttchID As XPathNavigator = nav.SelectSingleNode(“//my:theAttachmentLibID”, Me.NamespaceManager)

The Web application at SITE could not be found.

Error:

The Web application at http://site/Forms/AllItems.aspx could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)

at Microsoft.SharePoint.SPSite..ctor(String requestUrl)

at MOVE.FormCode.CTRL1_5_Clicked(Object sender, ClickedEventArgs e)

at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)

at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)

/error

I spent the better part of week working on this error. The problem was related to my trying to use InfoPath Forms when I should have been using Browser enabled forms. Once I published the  form and uploaded into to Central Administration I was able to use Managed Code.

InfoPath Hyplerlink opens as Read Only

Recently ran into an issue where you place a hyperlink on a InfoPath form, user clicks the link, the item opens as read-only, no Edit Document option.

The fix is to do a regedit to allow for editing of the document.

example

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Internet]
“OpenDocumentsReadWriteWhileBrowsing”=dword:00000001

in the Common\Internet folder you would create a new DWORD value OpenDocumentsReadWriteWhileBrowsing and assign it a Value of 1.

http://support.microsoft.com/kb/870853

InfoPath Loop in a Repeating Table

This will help you loop through a Repeating Table in InfoPath.  group2 is the name of my Repeating Table. sFunction is a function I use to check if a value has been updated in a SharePoint Library or List. If the value returned from the function does not match what I have in my drop down list, I update it with the function value.

 

Dim rootX As XPathNavigator = MainDataSource.CreateNavigator
Dim rowX As XPathNodeIterator = rootX.Select(“/my:myFields/my:group1/my:group2”, NamespaceManager)

While rowX.MoveNext
Dim sStatus As String = rowX.Current.SelectSingleNode(“my:field4”, NamespaceManager).Value
Dim sI As String = rowX.Current.SelectSingleNode(“my:field2”, NamespaceManager).Value
Dim sS As String = sFunction(sI)

If sStatus <> sS Then
rowX.Current.SelectSingleNode(“my:field4”, NamespaceManager).SetValue(sS)
End If
End While