I tried to made a workflow in Visual Studio 2010 to Sharepoint 2010 and I need to send an error message to user. My code: private void codeActivity1_ExecuteCode(object sender, EventArgs e) { var item = workflowsProperties.Item; foreach(String att in item.Attachments) { if (att.EndWith(…)) { SPUtility.TransferToErrorPage(“This extension is not permited!”); } else { … } }Read more