c# - Connection string hidden somewhere? -


i have 2 databases on 1 machine has 2 different sites running on iis. lets call them site1 & site2 , db1 & db2. second site , bd copys of first one. site2 connects db2 , seems work nice when took offline db1 stoped working wierd since data created using site2 in db2. in fact of site works except 1 method

we use entity framework access database , when trace code looks ok, somehow doesn't work.

in our auto-generated code entity framework traced connectiong string , outcome correct

initial catalog=db2; 

but in next line have code

return ((iobjectcontextadapter) this).objectcontext.executefunction<t_reference_data>(                 "getreferencedata", groupnameparameter); 

and inner exception says:

database 'db1' cannot opened because offline. 

all other methods seem use correct database except one. can't figure out db1 configured or hardcoded

the problem (as usual) stupid hell. of guys defined db on stored procedures. when changed db , copied stored procedures kept using old db. fixed.

thanks help


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -