Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a class

C#
public class DictN
{

public static Dictionary<int,navial> checkne=new Dictionary<int,navial>();

public DictN()
{

}
}


NAvial is struct

the above class is defined in App_code folder

I call it is

DictN.checkne.Clear();

In

I have also copied the DictN.cs class file in project root path

but i get error as

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'DictN' does not exist in the current context

Source Error:


C#
Line 101:        XmlNodeList parentNode = xmlDoc.GetElementsByTagName("hotel");
Line 102:        
Line 103: DictN.checkne.Clear(); Line 104:
Line 105:        int ij=0;

Pls advice what the problem is



This error is at server
Posted
Updated 28-Sep-13 1:49am
v2
Comments
ZurdoDev 28-Sep-13 12:09pm    
The error is clear. Intellisense should help you though.

1 solution

Add the appropriate using directive that introduces the name to the curent source file.
Cheers
Andi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900