When I try to use the SharePoint 2013 Client Object model in Windows Application I was getting the following error.
"'Form' is an ambiguous reference between 'System.Windows.Forms.Form' and 'Microsoft.SharePoint.Client.Form'"
Reason is there is a conflict between ‘System.Windows.Forms.Form’ and ‘Microsoft.SharePoint.Client.Form’
Solution:
Just after changing the code
To
public partial class MainForm : System.Windows.Forms.Form
{
public MainForm()
{
InitializeComponent();
}
From
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
Problem fixed.
"'Form' is an ambiguous reference between 'System.Windows.Forms.Form' and 'Microsoft.SharePoint.Client.Form'"
Reason is there is a conflict between ‘System.Windows.Forms.Form’ and ‘Microsoft.SharePoint.Client.Form’
Solution:
Just after changing the code
To
public partial class MainForm : System.Windows.Forms.Form
{
public MainForm()
{
InitializeComponent();
}
From
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
Problem fixed.
No comments:
Post a Comment