ASP.NET 3.5 Website Suspended System Namespace Import By Default

I have a VB website project that recently (and mysteriously) stopped importing the default System namespace.

I need to either place the Imports System line at the top of each code behind, or the introduction to everything with System , which is pretty annoying, not to mention redundancy. I can’t understand for life how to return the System namespace back to import by default.

I have already verified that WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config contains the string <add namespace="System"/> - this is so. That was my best advantage.

I have links to several namespaces in the System namespace in the <assemblies> node (for example, System.Design , System.Web.Extensions my website web.config. No <namespaces> node. Recently changed.

I pull out the hair. Anyone have any suggestions?

+4
source share
2 answers

This seems to have been recorded as mysterious, as it broke in the first place. I'm not sure what I did, but now it works. The way it is.

0
source

Just walked through the VB web project in VS 2013.

Many cases of type errors in the system, System.Collections 1 , ...

It turns off when copying the <configSections> element to web.config (as part of adding better logging) I would copy the surrounding <configuration> element as well.

Many oddities followed. I was able to find the problem when I found that I could start the site, and the IIS error page informed me that I had a configuration error.

Now we’ll redo all the changes that I canceled on the way to finding this ...


1 Miracles of serving old code.

0
source

All Articles