473,383 Members | 2,005 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,383 software developers and data experts.

Errors in generated ASP .NET Temporary files

j
I am getting this error when trying to compile code generated using
xsd.exe:
The type 'TrailerList' already contains a definition for
'rCMSTrailerListRow' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
ASP.NET Files\photoblobws\4e7bb29f\6f50d4db\App_Code.vnsje qin.4.cs

What could cause this error in a generated file? What should I look for
in the code file to fix it?

Jan 8 '07 #1
2 2245
Usually, that error means that the type is already defined in an assembly
somewhere in the project. The easiest way to eliminate this is to do a
search of your project for that type. You should have only one definition.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"j" <mr*********@gmail.comwrote in message
news:11*********************@42g2000cwt.googlegrou ps.com...
>I am getting this error when trying to compile code generated using
xsd.exe:
The type 'TrailerList' already contains a definition for
'rCMSTrailerListRow'
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
ASP.NET Files\photoblobws\4e7bb29f\6f50d4db\App_Code.vnsje qin.4.cs

What could cause this error in a generated file? What should I look for
in the code file to fix it?

Jan 8 '07 #2
Hi,

"j" <mr*********@gmail.comwrote in message
news:11*********************@42g2000cwt.googlegrou ps.com...
I am getting this error when trying to compile code generated using
xsd.exe:
The type 'TrailerList' already contains a definition for
'rCMSTrailerListRow'
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
ASP.NET Files\photoblobws\4e7bb29f\6f50d4db\App_Code.vnsje qin.4.cs

What could cause this error in a generated file? What should I look for
in the code file to fix it?
Alvin Bruney [MVP] wrote:
Usually, that error means that the type is already defined in an assembly
somewhere in the project. The easiest way to eliminate this is to do a
search of your project for that type. You should have only one definition.
(could you set your newsreader to insert the signature after the quote?
Or post your reply after the quote? With the current settings, I have to
manually copy/paste the OP's reply. Thanks!)

Actually, this error is not what you describe. In ASP.NET, this error
occurs when the same control is declared twice. This often occurs in
ASP.NET 2.0 because the controls found in the ASPX page are
automatically declared in a partial class contained in the file
<pagename>.aspx.designer.cs. If the OP declared the control in the
<pagename>.aspx.cs page (as it was done in ASP.NET 1.1), the compiler
will throw this error.

The solution is to simply remove the control's declaration (protected
ControlType controlName) from the aspx.cs page.

To the OP: ASP.NET related questions are better at home in
microsoft.public.dotnet.framework.aspnet

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jan 9 '07 #3

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

Similar topics

2
by: Kavitha Rao | last post by:
Hi, I am getting the following errors while trying to run this snippet in Microsoft Visual C++.Can't seem to print the crc value stored. /* +++Date last modified: 05-Jul-1997 */ /* Crc - 32...
0
by: Scott Collens | last post by:
Hi all, I have a question regarding web.config. I am ready to flip the application to the production server but when I switch the debug setting in the web.config from <compilation...
2
by: Diogenes Dilone | last post by:
Can anyone help me I keep getting this error on our web application. Access is denied: 'ASPnetMenu'. Description: An unhandled exception occurred during the execution of the current web...
2
by: Brian Henry | last post by:
We get the error below after moving our new app to a windows 2000 server... how do you correct this? we added permission for ASPNET user on the local machine for the folder, but this sitll shows...
1
by: derek | last post by:
I am using Visual Studio .NET Professional (first version) and am trying to view the generated C# file that is created from an ASP.NET (.aspx) page when its first requested. I can see where its...
1
by: murphy | last post by:
Hi, I've been seeing two symptoms with my asp.net site that have started recently after a long period of smooth running. As others on our team make changes to referenced dll's I find that I get...
5
by: Charts | last post by:
I recently upgraded to VS2005. I noticed that in ASP.NET project, the system generated codes are missing from default.aspx.cs file. While I used to be able to see it in VS2003 project. Now, if I...
1
by: Paul Taylor | last post by:
Hello, I wonder if anyone can help with this. I have an ASP.NET 2.0 site that runs correctly on the local machine inside or outside of the IDE. When I build the site, it produces some warning...
7
by: Adam | last post by:
Hello. I do most of my web dev work from a Mac (whose file system is case-insensitive.) I upload my web pages and other files onto a Unix-based host, which is case sensitive. When I look at the...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...

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.