Visual Studio Logo

Cannot access namespace or class inside App_Code folder

Occasionally you may come across an issue in Visual Studio 2010 where you place a class inside the App_Code folder but you cannot seem to get a reference to it or the namespace from the rest of your application.

Apparently this is down to a project setting in Visual Studio. To resolve the issue, right click your project icon in solution explorer and select Convert to Web application.

Published by

Mark Taylor

Web developer, based in Bourne, Lincolnshire, UK. builder of web applications, ASP.NET, Web Standards HTML, CSS & JavaScript. SQL Server & MySQL DB developer.

Leave a Reply

Your email address will not be published. Required fields are marked *