intellisense cannot see my functions on wizard-upgraded project

T

timo

I used the wizard in VS2005 (8.0.50727.762) to upgrade my ASP.NET 1.1
project to 2.0 and now none of my classes that used to be accessible
anywhere in the application appear in the Intellisense dropdown:

Partial Class TestPage
Inherits System.Web.UI.Page

Private m_Class as _______

(Here I'd expect Intellisense to list the available classes but mine
are nowhere in the list).


I've moved all classes into App_Code thinking that might be the issue,
but that does not help.

Is this a namespace issue of some sort?

Any suggestions?

Thank you.
 
T

timo

I should add that it appears to be related to the Partial Class of the
codebehind for the page, because if I create another class, Intellisense
IS working fine within that class.

Public Class TestClass

Private x As MYNAMESPACE.SomeClass ' << Intellisense works here

Public Sub New()

End Sub


End Class
 
C

Cowboy \(Gregory A. Beamer\)

Is the application compiling (if a web app)? Or, can you run the web site
and does it work (web site)? If the answer is no to either of these
questions, you have a problem to solve before you start coding.

If the above is not a problem, it guess it could be a namespace issue. One
way to check this is strip the namespaces from the classes in the App_Code.
I don't guarantee this, as I have not run into this issue in a long time
(been on 2.0 exclusively for years).

The model has changed from 1.1 to 2.0. The primary change is 1.1 is a
project based web and 2.0 is projectless. This means a lot of the code is
linked properly via the project file, which is loaded when you load the
project. With projectless, the file has to be found in the project and have
the correct namespace, per either declarations in the web.config or in the
page in question.

With the above in mind, the other option (other than wiping all namespaces
in each file) is to create proper references to the namespaces (ie, Imports
statements). I would assume the app would fail with the incorrect
namespaces, but VB does tend to try to protect developers from themselves,
so it might compile even though it fails to find the files.
 
T

timo

And a third thing: not only does Intellisense not display my classes
when I'm working inside a codebehind Partial Class, any reference to my
class does not compile and is treated as Undefined.
 
A

anujkapoor2000us

Hi,
Any solution to the problem raised above ( And a third
thing: .......treated as Undefined.). Recently i have migrated one
application from framework 1.1 to 3.5. I am facing exactly the same
issues.
-Intellisense don't display my public classes.
-Inside the code behind of one public class any reference to any other
public class doesnot compile and States "Type ClassName is not
defined" . The same code works perfectly fine in 1.1.
Any solution to this issue will be highly appreciated.

Thanks,
Anuj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,573
Members
45,046
Latest member
Gavizuho

Latest Threads

Top