4
Answers

Debug and production using different ASP.NET versions

Anna Hawks

Anna Hawks

16y
2.7k
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
Sam

Sam

NA 157 0 15y

Sam,
Thanks for your good help intentions.
I somehow (not sure) managed to restore the files, but I'm not sure what I did.
I simply collected the files I believed should be in the project and made sure they all are in the right folder with the correct namespace, and the most important (i believe) was getting rid of repetitions.

I find the VS (I use Express) to be extremely (dangerously) sensitive to file handling and lacking good automatic file backup (I used to work with Borland Builder where each build saved full backup of previous builds).
I would nevertheless appreciate any good guidelines that will help me prevent such issues in the future.
Sam
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 15y
Do you still need help?