473,654 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

On all but one dev machine: "Type <this> is not defined" errors

We have a number of development machines in our IT department, all
running the same version of VS 2005 sp 1. Our company website and
several compiled components were all written in VB.Net 2.0 using one of
those machines, our "main dev." When I pull up the website in the VS IDE
on that one machine, everything is fine.

On any of the other machines, however, opening the website opens the
site, then fills the Error List with just over a hundred errors, almost
all of them either "Type <thisis not defined" or "Name <somethingis
not declared." Again, this does not happen with the main dev machine,
only on the secondary dev machines. Also, the secondary machines do not
show the Intellisense navigation, presumably because there are too many
errors.

The site's root web.config includes all of the missing types in
<system.web>/<pages>/<namespaces>. While some of the errors come from
dlls we wrote -- all of which are in the /bin folder -- many are
Microsoft system namespaces which were added to the <namespacessect ion
to avoid having to import them on each and every page. For example,
System.Text and System.Collecti ons.Generic are in <namespaces>; pages
calling StringBuilder or Dictionary do not generate an error on the main
dev but do on the secondary machines. Adding an @Import directive fixes
the "is not defined" errors on the secondary machines, but we can not
get the secondary machines to recognize one of the custom assemblies
from /bin while we can on the main.

Sorry for sounding like a broken record, but I want to be clear that
this seems to be a local problem on the secondary development computers
and not something wrong with the project itself. The website runs fine,
and there are no errors when the project is opened in the VS IDE on the
main dev. This occurs only on the secondary machines.

The only difference I can find between main dev and the others is when I
open Website | Start Options and select References. The dev machine
displays a large number of references with type BIN, all of which are
found in /bin. The other machines display only the small handful of
assemblies in the Global Assembly Cache and no BIN entries. All of the
assemblies that are being flagged as errors have a type of BIN rather
than GAC, except for the Microsoft namespaces; they do not appear as
references on either the main dev or the others.

I have no idea how to fix this, but fix this I must: we sometimes have
several developers working on different sections of the site and only
the lucky person at the main dev machine has Intellisense and the
ability to tell when there actually is a problem. It seems that the
secondary machines are not reading the web.config file or checking the
/bin folder. I am hoping there is a simple fix. Any suggestions?

--
Gregory Gadow
te******@serv.n et

May 23 '07 #1
0 1478

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2793
by: Eric A. Forgy | last post by:
Hello, I am just learning Java and am trying to write a method that does something like //=========================================== public Static List find(double array,double val,String relationalOp) { List list = new ArrayList();
1
6820
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
3
2471
by: H. S. | last post by:
Hi, I am trying to compile these set of C++ files and trying out class inheritence and function pointers. Can anybody shed some light why my compiler is not compiling them and where I am going wrong? I am using g++ (GCC) 3.3.5 on a Debian Sarge system. The compiler complains: //**************************** //**************************** Compiler output starts *********** cd /home/red/tmp/testprogs/
2
5760
by: bissatch | last post by:
Hi, I am trying to use JavaScript to write a table column on a web page. The code is as follows: <html> <head> <script> function displaycount() {
2
6838
by: andrew007 | last post by:
I do xml / xslt transformation using asp.net but I found any value (w/xml format) in xml node html-encoded to &lt and &gt format if it's > or < tag. Since I have sub xml data in a parent xml node as a value. Check out the following problem. I want to convert the value in <WpDatesXml> node to have a valid "<" and ">" instead of &lt or &gt format so that I can use this xml for another use. Please help! <NewDataSet> <Table1>
11
3073
by: Joseph S. | last post by:
Hi all, how do I avoid typing the keyword "$this->" every time I need to reference a member of a class inside the class? (coming from a world of cozy auto-complete enabled Java / .Net IDEs I find it a bit annoying) TIA, JS
11
2226
by: Holger | last post by:
Hi I have not been able to figure out how to do compound statement from C - "<test>?<true-val>:<false-val>" But something similar must exist...?! I would like to do the equivalent if python of the C line: printf("I saw %d car%s\n", n, n != 1 ? "s" : "")
16
9177
by: network-admin | last post by:
We have Problems with Access query on Oracle 10g Database with ODBC Connection. The Query_1 is such as select * from xtable where ycolumn <"S" Result = ODBC Faild ----------------------------------------------------
7
1364
by: psp | last post by:
I'm working on some code and I see in many methods that call other methods of the same class prefix a this-to the method being called, i.e. class X::methodA() { this->methodB(); } And they are not even static methods. Isn't the this-redundant?
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.