Unable to compile the application developed in Visual studio 2003 in Visual studio 2005

Hi All,

I'm facing a problem while trying to compile an application which was originally developed in VS 2003 in VS 2005. In my case, the page name and form id are same.

Compiler Error Message: CS0542: 'PageName': member names cannot be the same as their enclosing type.

And moreover an error is thrown in the line given below.

May i know the exact reason for this error.

 

0 alvin 3/22/2007 12:35:38 PM
Two objects cannot have a same name . You cannot have the Class name and Form Name as Same . Change the Form id it will compile
Ashok Raja
www.iGold.in

Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved.
0 AshokRaja 3/22/2007 2:59:50 PM
Reply:

(Thread closed)