Monday, July 29, 2013

Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format. Oracle Data Access 64 bit

Hi,
I was try to connect with Oracle.DataAccess dll (64bit) It was working fine with Windows/Console base application but once I try to connect it through Asp.net Application it throws error
Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program

This isssue has solved with 32 bit of Oracle.DataAccess library because I think there is an issue with 64bit Oracle.DataAccess library. I search on other blogs and forums everyone is pointing to the
IIS Pool configuration and Assembly ( target framework ). but in my case nothing worked.But anyhow if we have to downgrade our solution with 32 bit then why not use the stable version of 32 bit itself :)

Please share if anyone has different finding...

Wednesday, July 24, 2013

sharepoint designer 2010 task outcome not updated programmatically

I have a scenario where I have to update the task manually with approver's comments using my custom form.Everything works fine but task out come is not updating and task is still showing In Progress ??????
Here is the key to match your code with the following code:
in my case I forgot to update:  taskDataCollection["WorkflowName"] = SPModerationStatusType.Approved;
Following is complete code:

  Hashtable taskDataCollection = new Hashtable();
                    taskDataCollection[SPBuiltInFieldId.Completed] = "TRUE";
                    taskDataCollection["Completed"] = true;
                    taskDataCollection[SPBuiltInFieldId.PercentComplete] = 1.0f;
                    taskDataCollection["PercentComplete"] = 1.0f;
                    taskDataCollection["Status"] = "Completed";
                    taskDataCollection[SPBuiltInFieldId.TaskStatus] = SPResource.GetString(new CultureInfo((int)task.Web.Language, false), Strings.WorkflowStatusCompleted, new object[0]);
                    taskDataCollection[SPBuiltInFieldId.WorkflowOutcome] = outCome;
                    taskDataCollection["TaskStatus"] = outCome;
                    taskDataCollection["TaskOutcome"] = outCome;
                    taskDataCollection["FormData"] = SPWorkflowStatus.Completed; 
                    taskDataCollection["WorkflowName"] = SPModerationStatusType.Approved;

for more info msdn link can also help you .

Saturday, July 20, 2013

RadioButtonList with ListItem collection datatext and datavalue field issue

Hi ,
Radiobutton list is working fine with List but if we want to bind with listitem collection then , it bind the text value with value field as well.
so, following is the sample code which solves this issue.

 
 RadioButtonList.DataSource = itemCollection; // this is list Item collection
 RadioButtonList.DataTextField = "Text";
 RadioButtonList.DataValueField = "Value";
 RadioButtonList.DataBind();


:)