ASP.NET News from Blogger: WebLog of Ken Cox [MVP]   Get the feed of: WebLog of Ken Cox [MVP]

Total News: 202

By Design? BindingFailure - An assembly failed to load while using XMLSerialization

Heres an issue that cost me several hours and I suspect that theres something in Visual Studio 2010 and the size of my solution thats to blame. I was quite happily working in the MsmqToWcf example ...

Visual Studio 11 UI Update - Improvements in RC

I see by the Visual Studio Blog that Microsoft has backed out the worst of the darkness in the default Visual Studio 11 interface. Many of the ALL CAPS headings are gone and theyve even added some col...

A Small World in ASP.NETNimblePros Acquired by Telerik

A few weeks ago, fellow ASPInsider Steve Smith of NimblePros passed a client to me. Its a part-time tweaks and maintenance gig for a small startup. I was quite happy to take this on. Im mostly retired...

CSS Float: Visual Studio 11 Beta Still No Help

Despite great strides in ASP.NET Design View, CSS float remains problematic for Visual Studio. A simple two column CSS float can be unintelligible at design time. You often have to scroll way to the r...

Not Happy With the Monochrome Visual Studio 11 Beta UI

I cant wait for a third-party to come out with tools to return some colour to the flat, monochrome look of Visual Studio 11 (beta). What bugs me most are the icons. I feel like a newbie when I have ...

Fix: 'Unable to load one or more of the requested types' Errors

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

EULAs are Fun. Mock Them Mercilessly!

In my previous post about the new, free Telerik JustDecompile beta, I made fun of the license terms that specifically forbade you from decompiling their decompiler. As you might expect, this was a cop...

Teleriks Free Decompiler: Just Dont Decompile It!

Telerik has released a beta version of its new always free .NET decompiler, JustDecompile. These guys really know their marketing and community support. (Redgate recently disappointed the community by...

Fix: ASP.NET 4 Page on IIS 7 Misbehaves When Browser URL Doesnt Include Default Page

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

Extracting the Date from a DateTime in Entity Framework 4 and LINQ

In my current ASP.NET 4 project, Im displaying dates in a GridDateTimeColumn of Teleriks ASP.NET Radgrid control. I dont care about the time stuff, so my DataFormatString shows only the date bits: <...

Fix: CSS Problems in IE 8 With Over 31 StyleSheets

In my latest Web application, I went crazy trying to find out why a popup/overlay window style was acting up in IE 8 but was fine in the latest version of FireFox. After too many hours of frustra...

Entity Framework Code-First to Provide Replacement for ASP.NET Profile Provider

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.NETs built-in Profile support so our work...

Help A Hacker: Give Em The Windows Source Code

The announcement of another Windows megapatch reminded me of a WikiLeaks story about Microsoft Windows that hasnt attracted much attention. Alarmingly, we learn that the hackers have the Windows sourc...

Fix: The version of SQL Server in use does not support datatype 'datetime2'.

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 doesnt use datetime2 because its new in ...

Standout Component Vendor: Telerik

I guess we all like it when others validate our opinions. I was part of Visual Studio Magazines Editors Choice panel this year. My choice for Top Component Vendor was Telerik and I added this: Telerik...

Fix: The argument types 'Edm.Guid' and 'Edm.String' are incompatible for this operation.

This one had me going for a while until I found the tip in Julie Lermans essential book,  Programming Entity Framework, 2nd Edition . In my ASP.NET 4 project, I create an Entity SQL query to look...

Windows Phone 7 and Simulation Sickness

From the reviews - and my experience developing a tiny app on the emulator - Windows Phone 7 is looking good as another .NET platform. Unfortunately, the touted WP7 interface exacerbates simulation (m...

Congratulations 2010 Microsoft MVP!

Hey folks, Im proud to say Im still a Microsoft Most Valuable Professional!  Ive now been an ASP/ASP.NET MVP for 13 years straight. I just got the notification: Dear Ken Cox, Congratulations! We ...

Get the ASP.NET Patch Now

Hey folks, the permanent fix has been released for the ASP.NET vulnerability. Download and install your copy now before the bad guys mess with your Web server and its sites! http://support.microsoft.c...

Using the SQL Table Profile Provider in ASP.NET 4 Web Applications (C# & VB)

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

Stupid web.config mistake: Sections must only appear once per config file

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

An ASP.NET 4 Web Application Using the SqlTableProfileProvider Doable or a Time Sink?

Have hundreds of ASP.NET developers been wasting dozens of hours each on something that cant be made to work in ASP.NET? This is too weird! Ive scoured the Web in vain looking for an example where som...

Fix: LinkButton Doesnt Looked Disabled in ASP.NET 4

I couldnt figure out why the LinkButtons in my former ASP.NET 3.5 site suddenly wouldnt look disabled even though I was setting lnkbtn.Enabled = False   The quick fix was to check the web.config ...

Fed Up With System.Data.Metadata.Edm.ObjectItemAssemblyLoader

Im fed up with the random errors Im 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.Ref...

Monitor Your EF4 Queries with Entity Framework Profiler

Entity Framework is wonderful for non-SQL developers like me. I can implement data access code in VB-like object syntax or with dragndrop datasource controls and then let EF turn it into T-SQL. For th...

Unhelpful ASP.NET Error Message: Retrieve the LoaderExceptions property for more information

Since I upgraded my file-based web site from ASP.NET 3.5 to 4.0 (including Entity Framework 4), Ive been getting the following error message far too often: Unable to load one or more of the requested ...

Visual Studio Lightswitch - Welcome Advanced Amateurs

There are a lot of people in business who are wizards with tools like Excel, even though their primary job isnt software development. Sometimes their apps become essential to the business process. Lig...

What Does Your Bio Say About You?

Writers and authors are regularly asked to write and submit a bio to accompany their work.  Although written in the third person, these blurbs frequently reveal what the individuals think of them...

Schema specified is not valid error on Upgrading to ASP.NET 4

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

ASP.NET and Visual Studio 2010 Service Pack 1

Want to have a say in what goes into the ASP.NET bits of service pack 1 for VS 2010? Well, spend a few minutes filling out the online survey posted by the ASP.NET team: http://www.surveymonkey.com/s/M...

Value Not Updating? Check for Caching!

Heres todays dumb mistake: A value that was supposedly updated by a routine on one page, wasnt changing on another ASP.NET screen. I carefully traced the progress of the update and everything looked r...

Fix: WCF - The type provided as the Service attribute value in the ServiceHost directive could not be found

I wanted to expose some raw data to users in my current ASP.NET 3.5 web site project. I created a subdirectory called datafeeds and added a WCF Data Service. I wired the dataservice up to the Entity F...

ASP.NET/IIS Fix: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

In my latest ASP.NET project, I refresh the sample data using an Excel spreadsheet from the client. After upgrading to Windows Server 2008 R2, I suddenly discovered this error: The 'Microsoft.Jet.OLED...

EF 4 Pluralization Update

I previously wrote about playing with EF 4s PluralizationService class . Now that OrcsWeb is running ASP.NET 4, you can play with my little pluralization page and its WCF service online. The source co...

Display Select in an ASP.NET DropDownList

A purchaser of my book writes: I would like a drop down list to display the text: "-Select-" initially instead of the first value of the data it is bound to. Here you go   <%@ Page L...

MIX10 Big Announcements Speculation

Whats your speculation on the big announcements to come from MIX10 ? A date for VS 2010 availability on MSDN? A release candidate for Silverlight 4 on the desktop? An SDK for Silverlight on Windows Mo...

I Owe $282.06 for Windows Azure Usage Charges on an MSDN Subscription

Since the launch of Windows Azure, Ive been using my complimentary Microsoft MVP MSDN Premium subscription to play with Azure and enter some deployment contests. Unfortunately, I left up those trivial...

Performance and the Visual Studio 2010 Release Candidate

I think you'll find the performance of the Visual Studio 2010 and .NET Framework 4 Release Candidate to be vastly improved over Beta 2. Microsoft showed wisdom and courage when it chose to delay the r...

Visual Studio 2010 Rescheduled Launch April 12, 2010?

We heard a while back about the delay in the Visual Studio 2010 launch. I dont recall seeing a formal announcement of the rescheduled date. DevConnections is billing its April 12-14 2010 event as the ...

Graffiti CMS is Now Free Open Source

Our friends at Telligent have made the ASP.NET 3.5 source code for their Graffiti CMS (content management system) available on CodePlex . This open source project is a huge gift to the community. Wow!...

Using a Stored Procedure in Entity Framework 4

In my latest contract, the DBA has opted to use SQL Server stored procedures for all data access. Preventing direct table access may ensure maximum security and performance - but it sure reduces the f...

Make Parallel APIs Seamless and Almost Invisible

Microsoft Canadas Adam Gallant gave an excellent presentation today on Whats New with Visual Studio Team System and MSDN. Among Adams demonstrations were the new APIs to support so-called manycore arc...

On Being Blow Away by Technology

While watching Scott Guthrie, Scott Hanselman, and Brian Goldfarb demonstrate Silverlight 4, I had a range of reactions: Wow! Ive got to play with this stuff! Im feeling overwhelmed by the avalanche o...

VS 2010 Product Release Date? March 22, 2010

I don't recall Microsoft announcing a Visual Studio release date this far in advance. The official launch is March 22, 2010 . In the past there have been two product release dates for Visual Studio. T...

Animation on MSDN Web Pages? No Thanks

I may be fighting a losing battle against the Silverlight/Flash animation gurus. The Visual Basic Developer site on MSDN is showing off a preview of its proposed redesign . One of the features is a fl...

Fixing the Telerik.WebControls.GridInsertionObject does not contain a property Error

I really like working with the Telerik ASP.NET AJAX controls. However, I keep forgetting about a problem in the RadGrid that occurs when trying to add a new record using EntityDataSource. If there are...

DropDownList Lookups Failing Due to SQL Char DataType

Heres todays episode of Losing Time on Something Dumb In my ASP.NET 3.5 project (using Teleriks AJAX controls) I filled a RadComboBox with Items and needed to set the selected item to the current valu...

Publishers Prepare for Year End .NET 4.0 Release

While Microsoft is coy about product release plans (When its ready is a common evasive answer to the question), book publishers frequently reveal their (and Microsofts) plans online. If youre curious ...

Fixing the System.Data.UpdateException DefiningQuery and no <InsertFunction> Error

Heres another in my never-ending series of fixes for dumb mistakes. In this episode we lose time with an Entity Framework error. Heres the error message: System.Data.UpdateException was unhandled by u...

Generating PDFs in ASP.NET Pages PDF Duo .Net

In my current contract, I need to generate database-driven PDFs on the fly. Ive done the first prototypes with my copy of Aspose.Pdf for .NET *. Its an enterprise-ready, robust, and extremely function...

View Other bloggers