Browse by Tags

All Tags » asp.net 4 (RSS)

Explained: EF 6 and “Could not determine storage version; a valid storage connection or a version hint is required.” by Ken Cox [MVP]

I have a legacy ASP.NET 3.5 web site that I’ve upgraded to a .NET 4 web application. At the same time, I upgraded to Entity Framework 6. Suddenly one of the pages returned the following error: [ArgumentException: Could not determine storage version; a...

Assemblies Go Missing in MVC 2 Project! by Ken Cox [MVP]

Sometimes, my MVC 2 project fails during development because an assembly has disappeared from the /bin folder. I have no idea what gremlin is messing with my project, but I wish it would stop! For quite a while, AntiXssLibrary.dll was the target. In the...

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....

Fix: ASP.NET 4 Page on IIS 7 Misbehaves When Browser URL Doesn’t Include Default Page by Ken Cox [MVP]

After deploying an ASP.NET 4 application to the production server, data submitted in a form on the default page went nowhere. I discovered that the page worked normally if I included the name of the default document as in http://mydomain.com/default.aspx...

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 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...

Using the SQL Table Profile Provider in ASP.NET 4 Web Applications (C# & VB) by Ken Cox [MVP]

This post and accompanying projects demonstrate how to use Microsoft's SQL Table Profile Provider with an ASP.NET Web application. ASP.NET's built-in Profile provider (SqlProfileProvider) stores Profile data in an oddball, serialized format that’s hard...

Stupid web.config mistake: Sections must only appear once per config file by Ken Cox [MVP]

Today’s stupid mistake comes to you via the web.config file in an ASP.NET 4 Web application project. At runtime, when navigating to default.aspx, ASP.NET choked with this error message: Parser Error Message: Sections must only appear once per config file...

An ASP.NET 4 Web Application Using the SqlTableProfileProvider – Doable or a Time Sink? by Ken Cox [MVP]

Update: Imar Spaanjaars (MVP) came up with the solution and I did the documentation and packaging . Go for it! Have hundreds of ASP.NET developers been wasting dozens of hours each on something that can’t be made to work in ASP.NET? This is too weird...
More Posts