.NET Framework Bookmark and Share   
 index > Regular Expressions > directive or assembly reference for exception
 

directive or assembly reference for exception

hello,

I after using the try {} used catch statement in this manner:
catch (exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine("ERROR");
}

for this i received the following error message:

The type or namespace name 'exception' could not be found (are you missing a using directive or an assembly reference?)

i m using C# on Visual Studio2005

please help me how can i solve my problem




desperate for help
C# is CASE sensitive

try
{

}
catch (Exception e)
{

}
John Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com
JohnGrove
C# is CASE sensitive

try
{

}
catch (Exception e)
{

}
John Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com
JohnGrove
thankyou John Grove this has solved my problem

desperate for help

You can use google to search for other answers

Custom Search

More Threads

• regular expressions
• RegEx performance
• problem with system.text.regularexpressions
• Validate a Decimal enclosed in Parenthesis
• tokenizing a csv file with embedded commas
• Searching For Certain Pattern of Words
• Extracting the mached text
• Regular expression ignore case not working
• searching for a string depending on the existance of something beforhand
• Multiline RegEx long string bombs