473,789 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
'rCMSTrailerLis tRow' c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary
ASP.NET Files\photoblob ws\4e7bb29f\6f5 0d4db\App_Code. vnsjeqin.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 2262
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*********@gm ail.comwrote in message
news:11******** *************@4 2g2000cwt.googl egroups.com...
>I am getting this error when trying to compile code generated using
xsd.exe:
The type 'TrailerList' already contains a definition for
'rCMSTrailerLis tRow'
c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary
ASP.NET Files\photoblob ws\4e7bb29f\6f5 0d4db\App_Code. vnsjeqin.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*********@gm ail.comwrote in message
news:11******** *************@4 2g2000cwt.googl egroups.com...
I am getting this error when trying to compile code generated using
xsd.exe:
The type 'TrailerList' already contains a definition for
'rCMSTrailerLis tRow'
c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary
ASP.NET Files\photoblob ws\4e7bb29f\6f5 0d4db\App_Code. vnsjeqin.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.publi c.dotnet.framew ork.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
2595
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 BIT ANSI X3.66 CRC checksum files */ #include <stdio.h> #include "crc.h"
0
1526
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 defaultLanguage="vb" debug="true" /> to
2
1695
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 request. Please review the stack trace for more information about the error and where it originated in the code.
2
1232
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 up... Server Error in '/WebClient' Application. ---------------------------------------------------------------------------- ---- Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
1
1565
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 being placed but it must be removed after the MSIL code is generated for it. Do you know any way to configure vstudio to keep the generated class files around so I can view them? I would like to analyze the
1
3931
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 the following errors from time to time. Apparently the following procedure alleviates the problems: -Reboot (clears locks on following directory)
5
1670
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 added a SQLSource control for example, I no longer can see system generated code, which could be very valuable for debugging. I know VS2005 use partial class to hide system generated code. However how can I see it when I need? Thanks, Charts
1
1785
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 messages, but no errors. When I come to Publish the site, it fails during precompilation with three "BC30182: Type Expected" errors. The output trace is below: *********** BEGIN TRACE
7
3320
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 errors that were generated on my web site, I find that sometimes people are trying to access, for example, "file.exe", when I uploaded it as "File.exe" with an uppercase letter. Some of these pages and files have had mixed case for years and...
0
9663
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
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
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
10195
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6765
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
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4090
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
3
2906
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.