asp.net mvc 4 - Underlying provided failed to open ? mvc4 , wcf -


this code section getting error ideas ?

  public ienumerable<lobinfo> getlobinfo()         {                // var obj = n in lobj.lobinfoes select n;                  return lobj.lobinfoes.select(m=>m).tolist();                // return obj.tolist();         } 

i not using using keyword ?

this issue been while , referred many articles in stackoverflow things looking bad me .

thank suggestions

underlying provider failed open means, @ point database not reached, due wrong connection settings example or previous failure etc...

the code show here allright, except fact write useless .select can drop .select(m=>m) , leave .tolist there.

further, find out causing crash post exact error message inner exception. (and inner exception's inner exception , on...)

next part "lobj.lobinfoes" repository or something? might post code of , code of data access object well.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -