views:

15

answers:

3

Hi.. I am new to .net ..Is there any difference between exception and Exception in .net I received error while using 'exception'..

A: 

C# is case sensitive (Exception != exception) - in the BCL (Base Class Library), there is an Exception class, but there is no exception class.

Your question however is not very clear - can you post the relevant parts of your code?

Oded
A: 

Assuming you are using c#, the keyword Exception is case-sensitive. If you intend to use the class then you need to use the Exception class than in lowercase.

Sachin Shanbhag
+1  A: 

C# is case sensitive, while VB.NET is not. If your class/page/control is in C#, then there is a difference between Exception and exception, otherwise not.

bdukes