Click here to Skip to main content
15,897,518 members
Home / Discussions / Database
   

Database

 
QuestionConversion error in ms sql Pin
seeism3-Aug-10 22:43
seeism3-Aug-10 22:43 
AnswerRe: Conversion error in ms sql Pin
seeism3-Aug-10 23:19
seeism3-Aug-10 23:19 
QuestionMultiple Database Transaction Pin
dataminers3-Aug-10 21:46
dataminers3-Aug-10 21:46 
AnswerRe: Multiple Database Transaction [modified] Pin
Mrityunnjoy6-Aug-10 9:19
Mrityunnjoy6-Aug-10 9:19 
QuestionNew column retrival on Sql Pin
<<Tash18>>3-Aug-10 21:13
<<Tash18>>3-Aug-10 21:13 
AnswerRe: New column retrival on Sql Pin
Goutam Patra3-Aug-10 21:58
professionalGoutam Patra3-Aug-10 21:58 
GeneralRe: New column retrival on Sql Pin
<<Tash18>>3-Aug-10 22:12
<<Tash18>>3-Aug-10 22:12 
QuestionSanity Check : Anyone doing Linq to SQL under 4.0 framework and WCF? Pin
Michael Eber3-Aug-10 13:27
Michael Eber3-Aug-10 13:27 
I converted my 2008 / .NET 2.0 data service to VS2010 with the 4.0 framework.

I can do my normal test: http://localhost:4440/datareflector.svc and I get my wsdl screen.
If I click the link I get all of my WSDL as expected. So nothing is wrong there.

My data structure uses Linq to Sql to connect to he database and extract information.
The applications' service reference has all of the data in it correctly.

When I call the service I get a report that the service terminated.
When I attach my code to the service and enter debug the results totally floor me:

my code pattern is simple:
C#
public things[] GetMyThings( Guid myIdentity )
{
   using ( MyContext context = new MyContext( connectionString ) )
   {
        var mt = from t in context.ThingTable
            where t.Identity == myIdentity
            select t;
        return mt.ToArray();
   }
}*


When I walk through this simplistic code, I can confirm that mt ends up populated with the rows and values expected and goes through the return code just fine. At the end of the walk (the bracket marked with the *) when I hit F11 I get the exception
InvalidOperationException ' Attempting to access an object (context) that has been disposed. '

I cannot, for the life of me, figure this one out. About to wipe my machine and do a full reinstall just to see if that cleans up everything. This is an issue no one seems to have an answer for.

Has ANYONE experienced this kind of issue?
QuestionA Secured Hotel Management System using Visual BAsic 2010 Pin
prog_mafia3-Aug-10 4:20
prog_mafia3-Aug-10 4:20 
AnswerRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
J4amieC3-Aug-10 4:43
J4amieC3-Aug-10 4:43 
GeneralRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
Jason Vetter3-Aug-10 5:21
Jason Vetter3-Aug-10 5:21 
GeneralRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
Simon_Whale3-Aug-10 5:29
Simon_Whale3-Aug-10 5:29 
GeneralRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
hairy_hats3-Aug-10 5:37
hairy_hats3-Aug-10 5:37 
GeneralRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
J4amieC3-Aug-10 6:02
J4amieC3-Aug-10 6:02 
GeneralRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
Simon_Whale3-Aug-10 6:05
Simon_Whale3-Aug-10 6:05 
AnswerRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
Simon_Whale3-Aug-10 5:28
Simon_Whale3-Aug-10 5:28 
AnswerRe: A Secured Hotel Management System using Visual BAsic 2010 PinPopular
dan!sh 3-Aug-10 5:29
professional dan!sh 3-Aug-10 5:29 
AnswerRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
Smithers-Jones3-Aug-10 5:49
Smithers-Jones3-Aug-10 5:49 
AnswerRe: A Secured Hotel Management System using Visual BAsic 2010 Pin
Chris Meech3-Aug-10 8:54
Chris Meech3-Aug-10 8:54 
QuestionHow to get value from outer to inner SELECT Pin
Robert König3-Aug-10 1:59
Robert König3-Aug-10 1:59 
AnswerRe: How to get value from outer to inner SELECT Pin
Tim Carmichael3-Aug-10 5:27
Tim Carmichael3-Aug-10 5:27 
AnswerRe: How to get value from outer to inner SELECT Pin
Bernhard Hiller3-Aug-10 20:55
Bernhard Hiller3-Aug-10 20:55 
GeneralRe: How to get value from outer to inner SELECT Pin
Robert König3-Aug-10 22:35
Robert König3-Aug-10 22:35 
QuestionTemporary freeze updating .SDF file - fixed Pin
hairy_hats3-Aug-10 0:45
hairy_hats3-Aug-10 0:45 
GeneralSelect number of rows [modified] Pin
MathewPV2-Aug-10 21:18
MathewPV2-Aug-10 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.