The namE attribute is not supported in this context

247 Views Asked by At

While i open .EDMX in Visual Studio 2012 means when i click on it, it gives me error like:

The namE attribute is not supported in this context.

and the same error i get in other application/projects also, this happen only with edmx file not other files. Can anyone give me solution for this?

1

There are 1 best solutions below

0
Mahavirsinh Padhiyar On BEST ANSWER

Solved

I am using EntityFramework 6.0 version instead of 5.0.

I fixed it by downloading the dll of EntityFramework 5.0 and remove reference of EntityFramework 6.0 in my Project and give it again reference of EntityFramework 5.0 dll and finally clean and rebuild the project which solved my problem.

Still if anyone get error just try to repair VisualStudio and still give you an error just reinstall/new-install your visual studio by running the setup.