Parameters supplied is incorrect – Entity Framework Designer

I have faced this error – “Parameters supplied is incorrect”, several times while opening my Entity Model file (.edmx) file using Entity Designer in Visual Studio 2008.

While there is no really sensible explanation to why this error occurs, most of the time it is because of the associations and navigation links get corrupt in the designer. If you open the edmx file using XML editor – (Right click on the file in the Visual Studio Solution Explorer, “Open With”, Select “XML Editor”, and click “Ok”) , you will find the following section at the bottom of the file.

<edmx:Diagrams>
<Diagram Name=”…”  ….. > </Diagram>
</edmx:Diagrams>
Delete the section <Diagram Name=”…”  ….. > </Diagram>. Then save the file and open in the designer. In all cases, it solved my problem.
Hope this helps.
Cheers,
Techie55
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.