Posts

Showing posts with the label troubleshooting

SPFile.MoveTo() not triggering alerts in doc library

SPFile.MoveTo(), at first glance, looks to be a very straightforward method where a file can be moved from one folder to another. Trying to use it and have an alert triggered by your newly copied file? Forget it. MoveTo() copies the binary to the target library as expected, but fails to recreate the item metadata (created, modified, users, dates, etc.) and will not trigger the alerts that your users set up for the target library. To work around this problem, you can create your own method that uses the SPFileCollection.Add(), which allows you to specify metadata, as described here: http://www.u2u.info/Blogs/Patrick/Lists/Posts/Post.aspx?ID=1141

Getting Rid of Errors When Using WordPrint from the InfoPath SDK

I've been messing around with the WordPrint utility and when I reinstalled it I was getting a cryptic error: Runtime Error! Program: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. When you first start using WordPrint, copy the following files to your %Windows%\system32 directory : %Program Files%\Microsoft Office 2003 Developer Resources\Microsoft Office InfoPath 2003 SDK\Tools\WordPrint\WordPrint.dll %Program Files%\Microsoft Office 2003 Developer Resources\Microsoft Office InfoPath 2003 SDK\Tools\WordPrint\ImageDecode.dll %Program Files%\Microsoft Office 2003 Developer Resources\Microsoft Office InfoPath 2003 SDK\Tools\html2xhtml.dll Then run the regsvr32 on each of these .dll's from the system32 directory.

Security issue when calling a WCF service from SharePoint

I've recently been charged with integrating several WCF services into SharePoint and it's been relatively smooth sailing up until I began to receive the following exception: "The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate......." My endpoint configuration originally looked like so: <endpoint address="http://myserver/Services/BackOfficeService/basic" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IBackOfficeService" contract="BackOfficeService.IBackOfficeService" name="BasicHttpBinding_IBackOfficeService" /> Looks ok, right? Wrong! We are missing the 'identity' child of the endpoint element. So, to correct this issue, the final product should look like this: <endpoint address="http://myserver/Services/BackOfficeService/basic" ...

Luke, don't use the '-force' (when reinstalling features)

Just a quick post to document a problem that I was having. I was refreshing my memory on Event receivers and was following this tutorial: http://www.wrox.com/WileyCDA/Section/id-306329.html The only difference between my code and the example was that I put in a comment (<!--like this-->) between the <Receivers> opening tag and the <Receiver> opening tag just to document something....well, SP doesn't like this at all and I got this error: Cannot insert the value NULL into column 'Name', table 'WSS_Content_Portal.dbo.EventReceivers'; column does not allow nulls. INSERT fails. The statement has been terminated. So I took out the comment and reran the install and activate commands (from the command line) and everything worked fine...or so it said (I got the operation completed successfully), message. However when trying to test the sample (after activating), I created a new announcements list and got an error. I checked the logs and lo and behold, the...