the entity data model designer is unable to display the file you requested

Posts   
 
    
Jakes
User
Posts: 8
Joined: 21-Jun-2010
# Posted on: 25-Jun-2010 10:01:24   

After generating the EF4 files, I try to open the .edmx file with VS 2010 edmx designer, but get the following error:

"the entity data model designer is unable to display the file you requested"

Is there a work around for this? I can query the model, but I would like to view it in the designer.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 25-Jun-2010 10:16:59   

Are there errors in the error widnow? If so would you please list them.

Did you open the file alone, or within the context of a project?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39617
Joined: 17-Aug-2003
# Posted on: 25-Jun-2010 11:42:05   

Jakes wrote:

After generating the EF4 files, I try to open the .edmx file with VS 2010 edmx designer, but get the following error:

"the entity data model designer is unable to display the file you requested"

Is there a work around for this? I can query the model, but I would like to view it in the designer.

This is due to the fact that the EF designer isn't assigned as the tool for the edmx file. if you click the edmx file in the solution explorer in vs.net, you'll see that the 'custom tool' property isn't set to the entity framework designer. If you fill in 'EntityModelCodeGenerator' for 'Custom Tool' in the property grid for the edmx file, it should open in the designer of EF, but it also might still give up, due to the fact that there are no shapes defined for the entity elements in the EDMX file (ef generates visual info in the edmx file as well, we don't do that of course)

The reason this is done this way is that when you assign the ef designer to the edmx file, it also tries to generate a designer.cs file with the entity classes again, which are already generated.

Not sure why you want to look at it in the EF designer btw

Frans Bouma | Lead developer LLBLGen Pro
Jakes
User
Posts: 8
Joined: 21-Jun-2010
# Posted on: 25-Jun-2010 12:09:10   

Otis wrote:

Jakes wrote:

After generating the EF4 files, I try to open the .edmx file with VS 2010 edmx designer, but get the following error:

"the entity data model designer is unable to display the file you requested"

Is there a work around for this? I can query the model, but I would like to view it in the designer.

This is due to the fact that the EF designer isn't assigned as the tool for the edmx file. if you click the edmx file in the solution explorer in vs.net, you'll see that the 'custom tool' property isn't set to the entity framework designer. If you fill in 'EntityModelCodeGenerator' for 'Custom Tool' in the property grid for the edmx file, it should open in the designer of EF, but it also might still give up, due to the fact that there are no shapes defined for the entity elements in the EDMX file (ef generates visual info in the edmx file as well, we don't do that of course)

The reason this is done this way is that when you assign the ef designer to the edmx file, it also tries to generate a designer.cs file with the entity classes again, which are already generated.

Not sure why you want to look at it in the EF designer btw

Thank you.