problem about linq-project-general-Collection of common programming errors
msdn
archived-forums-i-l-forums linq-project-general
I have english XP Pro plus sp2 on my laptop. When i installed LINQ CTP (May 2006), there was a window titled “Visual Studio Just-In-Time Debugger” coming out about 14 times, it says “An unhandled exception (“Object doesn’t support this property or method: “Ver1″) occured in msiexe.exe[1116].”, and gives me the choice to debug or not. I clicked “No” button to not debug the exception, and the install finished eventually. I also noticed this error windo
msdn
archived-forums-i-l-forums linq-project-general
Hi,I am trying to autogenerate the Object Model using Code Generation.In the “Visual Studio 2005 Command Prompt” I type:cd “C:\Programmer\Microsoft\.NET Pet Shop 4.0\LINQLibrary1″”C:\Programmer\LINQ Preview\Bin\SqlMetal.exe” /server:localhost\SQLExpress /database:”C:\Temp\MSPetShop4.mdf” /pluralize /code:mspetshop.csHowever, I get the same frustrating exception, time after time:Unhandled Exception: System.Data.SqlClient.SqlException: Cannot open database &
msdn
archived-forums-i-l-forums linq-project-general
What would cause this error? The site works fine locally. I uploaded the System.Data.Linq 3.5 assembly into the bin directory on the shared hosting site b/c I thought they were using an older version but that didn’t fix it.Server Error in ‘/’ Application.Method not found: ‘Void System.Data.Linq.Table`1.InsertOnSubmit(!0)’. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it
msdn
archived-forums-i-l-forums linq-project-general
I get the following exception on a simple LINQ query to the NorthWindCTP database as follows;[1] Unhandled Exception: System.Data.SqlClient.SqlException: Invalid object name ‘Customers’.I have tryed to permute the SQLMetal command line for the (A) /Pluralize and (B) /map options.Each time I get the same results (using variations of the SQLMetal output).The code is ‘right out of the book’ so to speak.I keep going throught the code but can’t seem to find a problem (it compiles and mostly runs :-).
msdn
archived-forums-i-l-forums linq-project-general
Hi all,I had an IQueryable<Customer> custs, a Customer cust, a CustomerComparer custCp which implements IEqualityComparer<Customer>1. when I callcusts.Contains(cust,custCp)I got an exception:Unhandled Exception: System.NotSupportedException: Unsupported overload used for query operator ‘Contains’.2. when I callcusts.AsEnumerable().Contains(cust,custCp)it worked.I checked the definition of the two:public static bool Contains<TSource>(this IQueryable<TSource>
msdn
archived-forums-i-l-forums linq-project-general
After use SubmitChanges() in my Sql Server 2000 database, the application fails and show the next exception: Unhandled Exception: System.ObjectDisposedException: Cannot access a disposed object.Object name: ‘Transaction’.How can i do to resolve this problem. I use Sql Server 2000 and Windows XP Service Pack 2Thanks.
msdn
archived-forums-i-l-forums linq-project-general
Hi,I tried to run SQLMetal on command prompt in Windows vista, but it does not create the file and throws “Unhandled exception : System.UnauthorizedAccessException : Access to the path C:\ is denied” error. What should I do?? what is the solution for it??Thanks in advance.Maulik Khandwala
msdn
archived-forums-i-l-forums linq-project-general
The DataContext.DetachDatabase method is not implemented yet (as of the May 2006 CTP). It throws the following exception when calling it:Unhandled Exception: System.NotImplementedException: The method or operation is not implemented. at System.Data.DLinq.SqlClient.SqlContext.DetachDatabase() at System.Data.DLinq.DataContext.DetachDatabase() at LINQChapter6.Program.Listing6_S() in c:\Documents and Settings\HP_Administrator\My Documents\Visual Studio 2005\Projects\LINQChapter6\LINQChapter6\
msdn
archived-forums-i-l-forums linq-project-general
When I refer to an inherited class in the following program, it is throwing an Unhandled Exception with the following message: “Bad Key Member: 0: ScheduledTask.ExamPaperID in [ExamPaperID]”.I think this is a bug in the implementation. Is there any work around for now?namespace TestingLinq{ class Program { static void Main(string[] args) { string databaseFileName = @”C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Testing.mdf”;
msdn
archived-forums-i-l-forums linq-project-general
I already sent this to Matt Warren personally but also posted here:…I’m on the verge of insanity here.I can’t really explain how I got into this situation. I was well on the way to making a kick-*** application, then I needed to go back to the database and abstract out some image fields into another table so I could get lazy-load so I didn’t lock up the app UI over a VPN link to a database. The strange thing, is that it all worked before I started messing around. Obviously now I have removed a
msdn
archived-forums-i-l-forums linq-project-general
I mailed mattwarr and mcharles about this, and copied here.Relevant files all here:http://www.developer-x.com/experiments/dlinqproblem/emptysequence/ Dear Mathew,Many thanks for posting your resolution last week. I didn’t reply immediately because I was still confused about testcase1 vs. testcase2 but I stupidly had some UpdateCheck=Never calls in the testcase1 which I should have checked for.I wrote a small 4 line program since then to automatically add the false update checks after code genera
msdn
archived-forums-i-l-forums linq-project-general
I’m having an issue commiting changes in a linq data context. I’m editing a hirarchy of data, but I have direct access to the datacontext the whole time, so I don’t have to worry about detaching or attaching objects, simply commiting changes (which simplifies my life ever so greatly).Here’s the issue. I start a new dc, retreive a few objects using the dc, some of which are join entries, edit them, then commit the changes. The first time through it works beautifully, flawlessly. While running th
Originally posted 2013-11-27 12:29:53.