Welcome to MSDN Blogs Sign in | Join | Help

Notes from a dark corner

Debugging ASP.NET, the CLR and anything that uses clock cycles.

News

  • These postings are provided as is with no warranties, and confers no rights. Additionally, views expressed herein are my own and not those of my employer, Microsoft.
Migrating a web site from Orcas Beta1 to Beta2 - "Unrecognized tag prefix or device filter 'asp'."

I ran into a minor problem with an existing web site I have which was running Orcas Beta1 after I upgraded to Beta2.

It's a content rich site so I spend quite a lot of time just editing pages in between doing actual builds and while editing I kept seeing the error "Unrecognized tag prefix or device filter 'asp'." :

image

I couldn't figure out what was wrong so I ploughed ahead with my edits but eventually wanted to build and at that point found, not surprisingly that it would not:

image

So there I was staring at this error wondering what it meant and finally noticed the error below it - "Could not load file or assembly 'System.Core, Version 2.0.0.0".  It often happens that one error in a build is actually the consequence of another error so if you cannot fix one error look at the others and see if you can fix those.

Double clicking the error took me to the offending line in web.config:

image

 

Ok, so Beta 2 installed ok so surely I've got System.Core.dll? A quick browse to the Global Assembly Cache (GAC) :

image

revealed that System.Core was indeed installed:

image

But look at the version number - 3.5.0.0.

There's the problem, we've revved the version numbers between beta1 and beta2 from 2.0.0.0 to 3.5.0.0.

Turned out that the same is true for System.Web.Extension.dll. This was referenced in multiple places in my web.config so a thorough search and replace was necessary.

Once the version numbers were all changed everything built and the mystery "Unrecognized tag prefix or device filter 'asp'." error disappeared as well.

Hope this helps!

Doug

Posted: Wednesday, August 01, 2007 10:16 AM by dougste
Filed under: ,

Comments

Daniel Moth said:

Unrecognized tag prefix or device filter 'asp'

# August 1, 2007 6:27 AM

Notes from a dark corner said:

Let's be clear from the start, if you read the readme.htm (which I did, uncharacteristically) for Orcas

# August 3, 2007 6:29 PM

Noticias externas said:

Let's be clear from the start, if you read the readme.htm (which I did, uncharacteristically) for

# August 3, 2007 6:36 PM
Anonymous comments are disabled
Page view tracker