altariamx2003
asked on
The underlying provider failed on Open.
one of my friends send me this example to learn about entity framework
but it always show me the following error: "The underlying provider failed on Open." in this code:
Public Function GetAllDepartments() As IEnumerable(Of Department) Implements IDepartmentRepository.GetA llDepartme nts
Return Me.context.Departments.ToL ist()
End Function
You can find the program in the following link: http://www.grupossc.com/VB.zip
but it always show me the following error: "The underlying provider failed on Open." in this code:
Public Function GetAllDepartments() As IEnumerable(Of Department) Implements IDepartmentRepository.GetA
Return Me.context.Departments.ToL
End Function
You can find the program in the following link: http://www.grupossc.com/VB.zip
which version of sql are you running ? if it's sql 2005 then the attached mdf in the source might be 2008 and you may to import in manually..
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.