473,385 Members | 1,730 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,385 software developers and data experts.

compilation error only in published version (converted to asp.net 2.0)

my app is running just fine on my home dev box. no compilation errors
at all. when i move the whole file structure to my hosted site i get
the following error when opening the main page:

----------
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'Subodei.Database.History'
exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary
ASP.NET
Files\spherop_globalphatness\e1f1b599\c5add1ce\App _Code.pqe5fcz6.dll'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\spherop_globalphatness\e1f1b599\c5add1ce\ass embly\dl3\c59b5d0c\f0c309bc_9f14c601\Subodei.DLL'

Source Error:

Line 55: private void DisplaySnapshot()
Line 56: {
Line 57: History history = new History();

......

any ideas on what's happening here?

Jan 10 '06 #1
2 1683
Hi,

the Subodei.Database.History class is found in two assemblies. One
compiled from the app_code folder inside Visual Studio 2005. The other
might be left over from porting your application to ASP.NET 2.0. Is it
possible you reference the Subodei.Database DLL? If you do, and also
have the History class in app_code, it might be present two times at
runtime. Throw one away, probably the old one found in the
Subodei.Database dll (if that DLL actually exists, I am guessing here).
Clear the Temporary ASP.NET folder
(c:\windows\Microsoft.NET\Framework\v2.0\)

Grtz, Wouter van Vugt
www.infosupport.com

Jan 10 '06 #2
I had this same problem. I fumed over it for hours, but figured out exactly
what happened. I had a form "register.aspx" which I had been working on in
VS2005. It worked fine in the DEV environment (debug mode) and even when
published.

But, at a critical juncture in my development I got the bright idea to make
a backup of this .aspx. So I went to the file system and did a quick copy
and paste of the file into the same directory as the originial....
"inetpub/wwwroot/register". So now that directory contained both
"register.aspx" and "copy of register.aspx".

After that, I went to publish the project and I didn't notice but it had
compiled the file "copy of register.aspx" into the project. This caused the
class "register" to occur twice in the compiled version and gave me the same
error that you reported.

T

"rs*****@gmail.com" wrote:
my app is running just fine on my home dev box. no compilation errors
at all. when i move the whole file structure to my hosted site i get
the following error when opening the main page:

----------
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'Subodei.Database.History'
exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary
ASP.NET
Files\spherop_globalphatness\e1f1b599\c5add1ce\App _Code.pqe5fcz6.dll'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\spherop_globalphatness\e1f1b599\c5add1ce\ass embly\dl3\c59b5d0c\f0c309bc_9f14c601\Subodei.DLL'

Source Error:

Line 55: private void DisplaySnapshot()
Line 56: {
Line 57: History history = new History();

......

any ideas on what's happening here?

Feb 4 '06 #3

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

Similar topics

4
by: konf | last post by:
Hallo, I tried to compile PGSQL 7.4 and I got error (durring make): ar: command not found What is it? Whe I can found it? I have: $ uname -a SunOS ... 5.8 Generic_108528-03 sun4u sparc...
6
by: Joachim | last post by:
I made some project changes (which seems it doesn't help if I undo) which have created compilation error: " Server Error in '/PCSWebApp1' Application....
2
by: Patrick Huffer | last post by:
When I open a certain page, I receive a "Compilation Error" as follows: Compiler Error Message: CS0117: 'System.Web.UI.HtmlControls.HtmlForm' does not contain a definition for 'ValidateInput'...
0
by: Jie | last post by:
Does anyone know why I keep having the following error. I have to rebuild the solution every time I run it in design mode. thanks jie Server Error in '/ReapPortal' Application....
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
3
by: Robert | last post by:
I have a number of web projects converted from 1.1 to 2.0 in VS2005. I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of...
0
by: Nonee | last post by:
Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. Anyway, I "published" the vb.net...
0
by: Nonee | last post by:
Anyone, anyone? : ) Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. ...
0
by: hypnotik | last post by:
Hello, I published my web project to our production server, and I'm seeing these errors sporadically: Compilation Error Description: An error occurred during the compilation of a resource...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.