What you're describing sounds impossible.
What happens when you create a new file ?
Does it get assigned to 1.1...or to 2.0 ?
Create a new, blank, aspx file and check that.
If it gets assigned to 2.0, just copy the code
in the trouble file to the new file...and delete the old one.
I must confess, though, that I'm having a hard time thinking that
a single file can have a different .net framework version assigned to it.
That's set per application, not per file.
Again, your main problem sems to be that you have 1.1-specific
web.config settings because you have not updated your web.config
to reflect 2.0-specific settings after you upgraded the application to 2.0.
Rename your web.config to web.config.old; create a new web.config;
and make sure your new web.config *only* has 2.0-specific
entries/sections/settings in it.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
> What you're describing sounds impossible.
Yes, it sounds impossible to me too, but it's definitely happening. My
overall application is set to 2.0 but that single individal file comes up as
1.1 every time I right click on it.
> What happens when you create a new file ?
> Does it get assigned to 1.1...or to 2.0 ?
> Create a new, blank, aspx file and check that.
It gets assigned to 2.0.
> If it gets assigned to 2.0, just copy the code
> in the trouble file to the new file...and delete the old one.
Yes, I already did that... but I am obsessive compulsive about things
working so I just wanted to get the old one working. :)
> I must confess, though, that I'm having a hard time thinking that
> a single file can have a different .net framework version assigned to it.
> That's set per application, not per file.
That's what I thought too. But nothing I seem to do changes the setting,
including changing the filename.
> Again, your main problem sems to be that you have 1.1-specific
> web.config settings because you have not updated your web.config
[quoted text clipped - 3 lines]
> and make sure your new web.config *only* has 2.0-specific
> entries/sections/settings in it.
I deleted the entire web.config and added a new blank one to the project ...
but the same problem continues to happen.