Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting two below errors.after adding a new procedure to the EDMX.

The type or namespace name 'ObjectResult' could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name 'Object' could not be found (are you missing a using directive or an assembly reference?)
Posted
Comments
Sreekanth Mothukuru 21-Oct-15 6:45am    
First try to delete all the Stored procedures that exist in the edmx file by searching with the SP name (Use Ctrl + Shift + F). Try to add the intended SP again. This time make sure your new stored procedure gets a complex type class generated by entity model to hold the SP return type

1 solution

First try to delete all the Stored procedures that exist in the edmx file by searching with the SP name (Use Ctrl + Shift + F).
Next, try to add the intended SP again. This time make sure your new stored procedure gets a complex type class generated by entity model to hold the SP return type
 
Share this answer
 
Comments
Merajuddin Ansari 28-Oct-15 0:51am    
now problem solved.thanks for your reply.it's working fine now. after replacing using System.Data.Objects; with using System.Data.Entity.Core.Objects and adding the reference System.Data.Entity.dll.
Sreekanth Mothukuru 28-Oct-15 8:20am    
That's nice to hear

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900