4
Answers

Debug and production using different ASP.NET versions

Photo of Anna Hawks

Anna Hawks

16y
3k
1
VS2005 - C# - ASP.NET 2.0
This was actually started under a different thread that has been broken somehow. To summarize, I keep getting a variety parser errors that show the attributes in my web.config file are not recognized. The reason is that my web.config is written in 2.0 and it is running in production as 1.1.

The problem is that IIS is set up as 2.0. The assemblies are version 2.0. The program in debug runs as 2.0. But as soon as I try to run it through localhost, it runs it as 1.1.

How can this be?!

Answers (4)

0
Photo of Anna Hawks
NA 193 0 16y
That explains why I never found it! Thanks for your help!
0
Photo of Arshad
NA 958 47.5k 16y
ok, but Poll thing comes under the Windows Server 2003, its not there in the XP,
0
Photo of Anna Hawks
NA 193 0 16y
Well, we have several systems running in 1.1 (and 1.3, I think) so i can't remove it.

I actually found out -- through the guys at BugNET that it was a problem with the application pools on the server -- there was not a separate pool for 2.0.

Now it works perfectly!
0
Photo of Arshad
NA 958 47.5k 16y
Hey you just remove the Framework 1.1 n then check it,Thanks