Namespace missing or dll not referenced

ISSUE:

I have a class file called "test.cs" and the namespace is "sajjas.business".

When referencing the namespace in an "default.aspx.cs" file using the construct

using sajjas.business;

It gives me an error stating that the namespace is missing or dll is not referenced.

RESOLUTION

Reviewing the properties of the class "test.cs" found that the property "Build Action" was set to "content" and so the class was not precompiled, so that it could referenced in the default.aspx.cs page. To avoid the issue the value of the property "Build Action" should be set to "Compile".

Comments

Popular posts from this blog

Configuring DB2 Connect Server

Concatenate files using MS-DOS