Browse by Tags

All Tags » Entity Framework (RSS)

Fix: 'Unable to load one or more of the requested types' Errors by Ken Cox [MVP]

A long time ago, I reported on an intermittent ‘Could not load file or assembly‘ bug where ASP.NET 4 was encountering a bizarre error on start-up in System.Reflection.RuntimeModule.GetTypes(RuntimeModule module). I neglected to post a follow-up here....

Extracting the Date from a DateTime in Entity Framework 4 and LINQ by Ken Cox [MVP]

In my current ASP.NET 4 project, I’m displaying dates in a GridDateTimeColumn of Telerik’s ASP.NET Radgrid control. I don’t care about the time stuff, so my DataFormatString shows only the date bits: <telerik:GridDateTimeColumn FilterControlWidth=...

Entity Framework Code-First to Provide Replacement for ASP.NET Profile Provider by Ken Cox [MVP]

A while back, I coordinated a project to add support for the SQL Table Profile Provider in ASP.NET 4 Web Applications.  We urged Microsoft to improve ASP.NET’s built-in Profile support so our workaround wouldn’t be necessary. Instead, Microsoft plans...

Fix: The version of SQL Server in use does not support datatype 'datetime2'. by Ken Cox [MVP]

This message appeared today after posting a new build to our ASP.NET 4 web app: The version of SQL Server in use does not support datatype 'datetime2'. The DBA doesn’t use datetime2 because it’s new in SQL Server 2008 and the site runs on 2005. ...

Fix: The argument types 'Edm.Guid' and 'Edm.String' are incompatible for this operation. by Ken Cox [MVP]

This one had me going for a while until I found the tip in Julie Lerman’s essential book,  Programming Entity Framework, 2nd Edition . In my ASP.NET 4 project, I create an Entity SQL query to look up a GUID. I cast the GUID as a string and wrap it...

Fed Up With System.Data.Metadata.Edm.ObjectItemAssemblyLoader by Ken Cox [MVP]

I’m fed up with the random errors I’m getting on my ASP.NET 4, Entity Framework 4 web application lately. It seems to stem from something that System.Data.Metadata.Edm is doing with a call to System.Reflection.Assembly.GetTypes(). I keep getting the error...

Fix: The type or namespace name 'EntityDataSource' does not exist by Ken Cox [MVP]

Today’s stupid mistake had me going in circles in my Web application project. The error message was: The type or namespace name 'EntityDataSource' does not exist… As the rest of the error message suggests, I must be missing an assembly reference. Nope...

Monitor Your EF4 Queries with Entity Framework Profiler by Ken Cox [MVP]

Entity Framework is wonderful for non-SQL developers like me. I can implement data access code in VB-like object syntax or with drag’n’drop datasource controls and then let EF turn it into T-SQL. For the most part, I’m happy to be insulated from the SQL...

Unhelpful ASP.NET Error Message: ‘Retrieve the LoaderExceptions property for more information’ by Ken Cox [MVP]

Since I upgraded my file-based web site from ASP.NET 3.5 to 4.0 (including Entity Framework 4), I’ve been getting the following error message far too often: Unable to load one or more of the requested types. Here’s the scenario: I FTP a bunch of new files...

‘Schema specified is not valid’ error on Upgrading to ASP.NET 4 by Ken Cox [MVP]

To take advantage of improvements in ASP.NET 4 and Entity Framework 4, I decided to upgrade my ASP.NET 3.5 site to 4.0. Most everything went smoothly except for the following error: Schema specified is not valid. Errors: error 0194: All artifacts loaded...
More Posts Next page »