Similar situation to JohnZ: I have Office 2013, InfoPath 2013, VS 2012 and VSTA for VS 2012, SharePoint Enterprise Server 2013. I've been coding in C# for several weeks within the same form without any errors. Today I tried to open the Code Editor and received the "Famous InfoPath has encountered an error. The operation failed." So I ...