Click here to Skip to main content
14,328,723 members
Rate this:
Please Sign up or sign in to vote.
See more:
SMSApplication objsms=new SMSApplication();

Error is like that

"SMSApplication " is a namespace but is used like a type
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 2

Please check that your class and name space name is same..

It happens when the name space and class name are same.
do one thing write the full name of name space when you want to use the namespace.
   
Comments
Sai Prasad anumolu 12-Jun-14 3:00am
   
Class name ......
Rate this:
Please Sign up or sign in to vote.

Solution 1

you might writing Application name instead of class name in smsApplication.
your smsApplication might have some class (like SMSLunch) that you need to instantiate.
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

The error is because "SMSApplication" is a namespace and not a class.
http://stackoverflow.com/questions/15007727/namespace-but-is-used-like-a-type[^]

Next time, when you get any error, go to here, here or here.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100