A web app that I’m writing throws this compiletime error
Error 1 The type or namespace name ‘Web’ does not exist in the namespace ‘ATS.System’ (are you missing an assembly reference?)
for every code file in the assembly the namespace is imported in every file (both System and System.Web)
I’ve also added references (to both) in the References Dir in VS
I don’t know what I’m doing wrong
I suspect the problem is that you’ve got a namespace called
ATS.System– that’s going to confuse things in some cases. If you possibly can, rename the namespace to something else.Here’s some example showing the same problem:
If you move the using directive out of the namespace declaration, i.e. change the second file to:
then it’s okay – but I wonder whether the autogenerated code for ASP.NET puts the using directives inside the namespace declaration instead 🙁 Getting rid of
ATS.Systemis certainly going to make it easier going forward though.