473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

inconsistent compile results?

Tim
hi, I'm wondering if anyone else has seen this. I've just built and
published a web site on my developer machine, then copied the
precompiled web to a staging / test machine. The code runs fine on my
machine. On the staging machine I get a compile error:

Compiler Error Message: CS0012: The type 'ASP....is defined in an
assembly that is not referenced. You must add a reference to assembly
'App_Web_box

How can this be? I've already compiled everything on my machine.

Both are running dotnet 2.0 beta 2. I have visual studio running
locally whereas the staging / test machine has only the framework. But
that shouldn't matter, should it? We're hoping to go live with a
similar architecture: staging, test, and live machines have only the
framework.

But this won't be feasible if a successful compile on a developer
machine does not guarantee an identical result on the staging, test, or
live machines.

cheers,

Tim Hanson

Nov 17 '05 #1
2 1257
Do you have the DLL on the staging machine?

That kind of error usually means the page is set to inherit from a class
that .net expects to find in the DLL compiled for the project, but it cann't
find any DLL's with the right class.

"Tim" <t.******@faz.de> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
hi, I'm wondering if anyone else has seen this. I've just built and
published a web site on my developer machine, then copied the
precompiled web to a staging / test machine. The code runs fine on my
machine. On the staging machine I get a compile error:

Compiler Error Message: CS0012: The type 'ASP....is defined in an
assembly that is not referenced. You must add a reference to assembly
'App_Web_box

How can this be? I've already compiled everything on my machine.

Both are running dotnet 2.0 beta 2. I have visual studio running
locally whereas the staging / test machine has only the framework. But
that shouldn't matter, should it? We're hoping to go live with a
similar architecture: staging, test, and live machines have only the
framework.

But this won't be feasible if a successful compile on a developer
machine does not guarantee an identical result on the staging, test, or
live machines.

cheers,

Tim Hanson

Nov 17 '05 #2
Tim
thanks, yes. i copied the whole precompiled web, so, as I understand
it, i have everything of relevance.

discovered an interesting additional clue that solves the problem for
me: if when "publishing" the web site I unclick the box "allow this
precompiled site to be updateable" (disallowing this) one side-effect
is that the compile process was more demanding. i found several of
these missing assembly problems that had been cropping up on the
staging machine. now i had to fix them on my development machine to get
a clean compile/build/publish. i guess I'm still confused why a local
compile is somehow "friendly" in the sense of not complaining about
problems that will crop up later. i assume this is a bug that MS would
be interested in fixing.

thanks again for the question and suggestion.

cheers,

Tim

Nov 17 '05 #3

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

Similar topics

3
by: AbeR | last post by:
I have written a fairly simple reporting app that has been working for a few years without any issues until this past week. The application has a login page with a DSN lookup for login/password...
2
by: Matt | last post by:
I'm new to Java but experienced with PL/SQL. I've found what appears to be strange behaviour (a bug?) when attempting to create java stored objects using the UNIX version of Oracle SQL*PLUS...
1
by: Ellen Manning | last post by:
I've got an A2K continuous form based on a query of 2 tables. The query returns results if the field "Outstanding" = Yes. The form's recordset type is set to Inconsistent Updates. If the user...
5
by: hodari | last post by:
My program compiles correctly in VS 2003 but fails in VS2005 Express Edition - I get a compile error Inconsistent accessibility: return type 'VA.Customer' is less accessible than method...
1
by: Peter Steele | last post by:
I've created an unmanaged C++ DLL and when I compile it I get numerous errors of the form xyz.cpp(nnn): warning C4273: '<somefunction>' : inconsistent dll linkage I have other DLLs that have...
20
by: Francine.Neary | last post by:
I am learning C, having fun with strings & pointers at the moment! The following program is my solution to an exercise to take an input, strip the first word, and output the rest. It works fine...
1
by: catudalg | last post by:
Configuration: Windows 2000 sp3 MS Access 2000 (9.0.4402 SR-1) Visual Foxpro 9.0 detached tables MS VFP Driver 6.01.6830.01 06/19/2003 For example, a simple query like: select * from ddwg1...
12
by: ibloom | last post by:
I've been trying for a couple days to build a program using pyObjC on a mac, I'm stuck on this error: <string>: inconsistent use of tabs and spaces in indentation Traceback (most recent call...
1
by: rnhuch | last post by:
My platform is SQL Server 2005. One of the tables of my db has 28589928 rows and one of the fields is real. When I backup and restore this database to another server (using the SQL Server internal...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.